Merge pull request #3224 from ludovic-henry/iolayer-extract-wait-handle
[mono.git] / mcs / class / System.ServiceProcess / System.ServiceProcess / Win32ServiceController.cs
index f15d4a59b25c6da81549df81f95bc21faedc1d6a..fee6147202eec4b96a90408dce6fe7519b55cfc1 100644 (file)
@@ -591,13 +591,8 @@ namespace System.ServiceProcess
                        IntPtr buffer = IntPtr.Zero;
 
                        try {
-#if NET_2_0
                                scHandle = OpenServiceControlManager (machineName, 
                                        SERVICE_MANAGER_RIGHTS.SC_MANAGER_ENUMERATE_SERVICE);
-#else
-                               scHandle = OpenServiceControlManager (machineName,
-                                       SERVICE_MANAGER_RIGHTS.SC_MANAGER_ENUMERATE_SERVICE, true);
-#endif
 
                                uint bufferSize = 0;
                                uint bytesNeeded = 0;