Esempio n. 1
0
 public static extern IntPtr CreateService(
     IntPtr hSCManager,
     string lpServiceName,
     string lpDisplayName,
     Winsvc.dwDesiredAccess dwDesiredAccess,
     Winsvc.dwServiceType dwServiceType,
     Winsvc.dwStartType dwStartType,
     Winsvc.dwErrorControl dwErrorControl,
     string lpBinaryPathName,
     string lpLoadOrderGroup,
     string lpdwTagId,
     string lpDependencies,
     string lpServiceStartName,
     string lpPassword
     );
Esempio n. 2
0
 public static extern IntPtr OpenService(IntPtr hSCManager, string lpServiceName, Winsvc.dwDesiredAccess dwDesiredAccess);