Beispiel #1
0
 private static extern IntPtr CreateService(
     IntPtr hSCManager,
     string lpServiceName,
     string lpDisplayName,
     ServiceManager.ServiceRights dwDesiredAccess,
     int dwServiceType,
     ServiceManager.ServiceBootFlag dwStartType,
     ServiceManager.ServiceError dwErrorControl,
     string lpBinaryPathName,
     string lpLoadOrderGroup,
     IntPtr lpdwTagId,
     string lpDependencies,
     string lp,
     string lpPassword);
Beispiel #2
0
 private static extern IntPtr OpenService(
     IntPtr hSCManager,
     string lpServiceName,
     ServiceManager.ServiceRights dwDesiredAccess);