Click or drag to resize

WindowsApiOpenService Method

Win32 OpenService function.

Namespace: GSF.Interop
Assembly: GSF.Core (in GSF.Core.dll) Version: 2.4.244-beta+c33f622c070b2c1078a06bcb41bdeb4c19d19a0b
Syntax
[DllImportAttribute("advapi32.dll", SetLastError = true)]
public static IntPtr OpenService(
	IntPtr hSCManager,
	string lpServiceName,
	int dwDesiredAccess
)
View Source

Parameters

hSCManager  IntPtr
 
lpServiceName  String
 
dwDesiredAccess  Int32
 

Return Value

IntPtr
See Also