예제 #1
0
 public static extern bool QueryServiceStatus(SafeServiceHandle hService, out SERVICE_STATUS dwServiceStatus);
예제 #2
0
 public static extern bool DeleteService(SafeServiceHandle hService);
예제 #3
0
 public static extern bool StartService(SafeServiceHandle hService, int dwNumServiceArgs,
                                        [MarshalAs(UnmanagedType.LPArray, SizeParamIndex = 1)] string[] lpServiceArgVectors);
예제 #4
0
 public static extern bool ChangeServiceConfig2(SafeServiceHandle hService,
                                                SERVICE_CONFIG dwInfoLevel, IntPtr lpInfo);
예제 #5
0
 public static extern SafeServiceHandle OpenService(SafeServiceHandle hSCManager,
                                                    string lpServiceName, SERVICE_ACCESS dwDesiredAccess);
예제 #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);