|
WindowsApiOpenService Method
|
Win32 OpenService function.
Namespace: GSF.InteropAssembly: GSF.Core (in GSF.Core.dll) Version: 2.4.251-beta+c370f3da3791592278238855631f53a5ff418c68
Syntax[DllImportAttribute("advapi32.dll", SetLastError = true)]
public static IntPtr OpenService(
IntPtr hSCManager,
string lpServiceName,
int dwDesiredAccess
)
<DllImportAttribute("advapi32.dll", SetLastError := true>]
Public Shared Function OpenService (
hSCManager As IntPtr,
lpServiceName As String,
dwDesiredAccess As Integer
) As IntPtr
public:
[DllImportAttribute(L"advapi32.dll", SetLastError = true)]
static IntPtr OpenService(
IntPtr hSCManager,
String^ lpServiceName,
int dwDesiredAccess
)
[<DllImportAttribute("advapi32.dll", SetLastError = true)>]
static member OpenService :
hSCManager : IntPtr *
lpServiceName : string *
dwDesiredAccess : int -> IntPtr
GSF.Interop.WindowsApi.OpenService = function(hSCManager, lpServiceName, dwDesiredAccess);
View SourceParameters
- hSCManager IntPtr
-
- lpServiceName String
-
- dwDesiredAccess Int32
-
Return Value
IntPtr
See Also