Inheritance: System.Runtime.InteropServices.SafeHandle
Ejemplo n.º 1
0
 public static extern bool ControlService(SafeServiceHandle hService, uint control, out SERVICE_STATUS serviceStatus);
Ejemplo n.º 2
0
 public static extern bool ChangeServiceConfig2(SafeServiceHandle handle, uint dwInfoLevel, IntPtr pInfo);
Ejemplo n.º 3
0
 public static extern bool CloseServiceHandle(SafeServiceHandle handle);
Ejemplo n.º 4
0
 public static unsafe extern bool ChangeServiceConfig2(SafeServiceHandle hService, ServiceInfoLevel dwInfoLevel, void* lpInfo);
Ejemplo n.º 5
0
 public static extern bool ChangeServiceConfig(SafeServiceHandle handle, uint serviceType, SERVICE_START_TYPE startType, uint errorControl, string binaryPathName, string loadOrderGroup, IntPtr tagId, string dependencies, string serviceStartName, string password, string displayName);
Ejemplo n.º 6
0
 public static extern bool QueryServiceConfig(SafeServiceHandle handle, IntPtr pBuffer, uint bufferSize, out uint bytesNeeded);
Ejemplo n.º 7
0
 public static extern bool QueryServiceStatus(SafeServiceHandle handle, out SERVICE_STATUS serviceStatus);
Ejemplo n.º 8
0
 public static extern bool QueryServiceObjectSecurity(
     SafeServiceHandle hService,
     SECURITY_INFORMATION dwSecurityInformation,
     byte[] lpSecurityDescriptor,
     int cbBufSize,
     out int pcbBytesNeeded);
Ejemplo n.º 9
0
 public static extern bool QueryServiceStatus(SafeServiceHandle hService, ref SERVICE_STATUS dwServiceStatus);
Ejemplo n.º 10
0
 public static extern SafeServiceHandle OpenService(SafeServiceHandle hSCManager, string lpServiceName, ACCESS_MASK dwDesiredAccess);
Ejemplo n.º 11
0
 public static extern bool StartService(SafeServiceHandle hService, int dwNumServiceArgs, string lpServiceArgVectors);
Ejemplo n.º 12
0
 public static extern bool DeleteService(SafeServiceHandle hService);
Ejemplo n.º 13
0
 public static extern SafeServiceHandle CreateService(SafeServiceHandle hSCManager, string lpServiceName, string lpDisplayName, ACCESS_MASK dwDesiredAccess, ServiceType dwServiceType, ServiceStartType dwStartType, ServiceErrorControl dwErrorControl, string lpBinaryPathName, string lpLoadOrderGroup, int lpdwTagId, string lpDependencies, string lpServiceStartName, string lpPassword);
Ejemplo n.º 14
0
 public static extern bool ControlService(SafeServiceHandle hService, ServiceControl dwControl, ref SERVICE_STATUS lpServiceStatus);
Ejemplo n.º 15
0
 public static extern IntPtr LockServiceDatabase(SafeServiceHandle hSCManager);
Ejemplo n.º 16
0
 public static extern bool SetServiceObjectSecurity(
     SafeServiceHandle hService,
     SECURITY_INFORMATION dwSecurityInformation,
     byte[] lpSecurityDescriptor);
Ejemplo n.º 17
0
 public static extern SafeServiceHandle OpenService(SafeServiceHandle hSCManager, string serviceName, SERVICE_ACCESS_TYPE desiredAccess);
Ejemplo n.º 18
0
 public static unsafe extern bool EnumServicesStatus(
     SafeServiceHandle hSCManager,
     ServiceType dwServiceType,
     ServiceStateQuery dwServiceState,
     byte* lpServices,
     int cbBufSize,
     ref int pcbBytesNeeded,
     ref int lpServicesReturned,
     ref int lpResumeHandle);
Ejemplo n.º 19
0
 public static extern bool QueryServiceLockStatus(SafeServiceHandle hSCManager, IntPtr lpLockStatus, uint cbBufSize, out uint pcbBytesNeeded);
Ejemplo n.º 20
0
 public static unsafe extern bool QueryServiceStatusEx(
     SafeServiceHandle hService,
     SC_STATUS_TYPE InfoLevel,
     void* lpBuffer,
     int cbBufSize,
     out int pcbBytesNeeded);
Ejemplo n.º 21
0
 public static extern bool StartService(SafeServiceHandle hService, uint numArgs, string[] args);
Ejemplo n.º 22
0
 public static extern bool ChangeServiceConfig(
     SafeServiceHandle hService,
     ServiceType dwServiceType,
     ServiceStartType dwStartType,
     ServiceErrorControl dwErrorControl,
     string lpBinaryPathName,
     string lpLoadOrderGroup,
     int lpdwTagId,
     string lpDependencies,
     string lpServiceStartName,
     string lpPassword,
     string lpDisplayName);