Exemplo n.º 1
0
 public static extern bool QueryServiceStatus(SafeServiceHandle hService, out SERVICE_STATUS dwServiceStatus);
Exemplo n.º 2
0
 public static extern bool DeleteService(SafeServiceHandle hService);
Exemplo n.º 3
0
 public static extern bool StartService(SafeServiceHandle hService, int dwNumServiceArgs,
                                        [MarshalAs(UnmanagedType.LPArray, SizeParamIndex = 1)] string[] lpServiceArgVectors);
Exemplo n.º 4
0
 public static extern bool ChangeServiceConfig2(SafeServiceHandle hService,
                                                SERVICE_CONFIG dwInfoLevel, IntPtr lpInfo);
Exemplo n.º 5
0
 public static extern SafeServiceHandle OpenService(SafeServiceHandle hSCManager,
                                                    string lpServiceName, SERVICE_ACCESS dwDesiredAccess);
Exemplo n.º 6
0
 public static extern SafeServiceHandle CreateService(SafeServiceHandle hSCManager,
                                                      string lpServiceName, string lpDisplayName, SERVICE_ACCESS dwDesiredAccess,
                                                      SERVICE_TYPE dwServiceType, ServiceStartType dwStartType, SERVICE_ERROR dwErrorControl,
                                                      string lpBinaryPathName, string lpLoadOrderGroup, IntPtr lpdwTagId,
                                                      char[] lpDependencies, string lpServiceStartName, string lpPassword);