public static extern bool QueryServiceConfigA([In] ref SC_HANDLE__ hService, IntPtr lpServiceConfig, uint cbBufSize, [Out] out uint pcbBytesNeeded);
public static extern bool QueryServiceObjectSecurity([In] ref SC_HANDLE__ hService, uint dwSecurityInformation, IntPtr lpSecurityDescriptor, uint cbBufSize, [Out] out uint pcbBytesNeeded);
public static extern bool QueryServiceLockStatusA([In] ref SC_HANDLE__ hSCManager, IntPtr lpLockStatus, uint cbBufSize, [Out] out uint pcbBytesNeeded);
public static extern bool QueryServiceStatus([In] ref SC_HANDLE__ hService, [Out] out SERVICE_STATUS lpServiceStatus);
public static extern bool QueryServiceStatusEx([In] ref SC_HANDLE__ hService, SC_STATUS_TYPE InfoLevel, IntPtr lpBuffer, uint cbBufSize, [Out] out uint pcbBytesNeeded);
public static extern bool QueryServiceConfig2A([In] ref SC_HANDLE__ hService, uint dwInfoLevel, IntPtr lpBuffer, uint cbBufSize, [Out] out uint pcbBytesNeeded);
public static extern IntPtr LockServiceDatabase([In] ref SC_HANDLE__ hSCManager);
public static extern IntPtr OpenServiceA([In] ref SC_HANDLE__ hSCManager, [In][MarshalAs(UnmanagedType.LPStr)] string lpServiceName, uint dwDesiredAccess);