Beispiel #1
0
 public static extern int CreateServiceA(
     int hSCManager,
     string lpServiceName,
     string displayName,
     ApiEnums.ServiceControlManagerType dwDesiredAccess,
     ApiEnums.ServiceType dwServiceType,
     ApiEnums.ServiceStartType dwStartType,
     ApiEnums.ServiceErrorControl dwErrorControl,
     string lpBinaryPathName, string lpLoadOrderGroup,
     string lpdwTagId,
     string lpDependencies, string lpServiceStartName, string lpPassword);
Beispiel #2
0
 public static extern int OpenSCManagerA(
     string lpMachineName, string lpDatabaseName, ApiEnums.ServiceControlManagerType dwDesiredAccess);