Наследование: System.Runtime.InteropServices.SafeHandle
Пример #1
0
 public static extern bool ControlService(SafeServiceHandle hService, uint control, out SERVICE_STATUS serviceStatus);
Пример #2
0
 public static extern bool ChangeServiceConfig2(SafeServiceHandle handle, uint dwInfoLevel, IntPtr pInfo);
Пример #3
0
 public static extern bool CloseServiceHandle(SafeServiceHandle handle);
Пример #4
0
 public static unsafe extern bool ChangeServiceConfig2(SafeServiceHandle hService, ServiceInfoLevel dwInfoLevel, void* lpInfo);
Пример #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);
Пример #6
0
 public static extern bool QueryServiceConfig(SafeServiceHandle handle, IntPtr pBuffer, uint bufferSize, out uint bytesNeeded);
Пример #7
0
 public static extern bool QueryServiceStatus(SafeServiceHandle handle, out SERVICE_STATUS serviceStatus);
Пример #8
0
 public static extern bool QueryServiceObjectSecurity(
     SafeServiceHandle hService,
     SECURITY_INFORMATION dwSecurityInformation,
     byte[] lpSecurityDescriptor,
     int cbBufSize,
     out int pcbBytesNeeded);
Пример #9
0
 public static extern bool QueryServiceStatus(SafeServiceHandle hService, ref SERVICE_STATUS dwServiceStatus);
Пример #10
0
 public static extern SafeServiceHandle OpenService(SafeServiceHandle hSCManager, string lpServiceName, ACCESS_MASK dwDesiredAccess);
Пример #11
0
 public static extern bool StartService(SafeServiceHandle hService, int dwNumServiceArgs, string lpServiceArgVectors);
Пример #12
0
 public static extern bool DeleteService(SafeServiceHandle hService);
Пример #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);
Пример #14
0
 public static extern bool ControlService(SafeServiceHandle hService, ServiceControl dwControl, ref SERVICE_STATUS lpServiceStatus);
Пример #15
0
 public static extern IntPtr LockServiceDatabase(SafeServiceHandle hSCManager);
Пример #16
0
 public static extern bool SetServiceObjectSecurity(
     SafeServiceHandle hService,
     SECURITY_INFORMATION dwSecurityInformation,
     byte[] lpSecurityDescriptor);
Пример #17
0
 public static extern SafeServiceHandle OpenService(SafeServiceHandle hSCManager, string serviceName, SERVICE_ACCESS_TYPE desiredAccess);
Пример #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);
Пример #19
0
 public static extern bool QueryServiceLockStatus(SafeServiceHandle hSCManager, IntPtr lpLockStatus, uint cbBufSize, out uint pcbBytesNeeded);
Пример #20
0
 public static unsafe extern bool QueryServiceStatusEx(
     SafeServiceHandle hService,
     SC_STATUS_TYPE InfoLevel,
     void* lpBuffer,
     int cbBufSize,
     out int pcbBytesNeeded);
Пример #21
0
 public static extern bool StartService(SafeServiceHandle hService, uint numArgs, string[] args);
Пример #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);