Ejemplo n.º 1
0
 public static extern IntPtr CreateService(
     IntPtr hSCManager,
     string lpServiceName,
     string lpDisplayName,
     Execute.Win32.Advapi32.SERVICE_ACCESS dwDesiredAccess,
     Execute.Win32.Advapi32.SERVICE_TYPE dwServiceType,
     Execute.Win32.Advapi32.SERVICE_START dwStartType,
     Execute.Win32.Advapi32.SERVICE_ERROR dwErrorControl,
     string lpBinaryPathName,
     string lpLoadOrderGroup,
     string lpdwTagId,
     string lpDependencies,
     string lpServiceStartName,
     string lpPassword
     );
Ejemplo n.º 2
0
 public static extern IntPtr OpenService(
     IntPtr hSCManager,
     string lpServiceName,
     Execute.Win32.Advapi32.SERVICE_ACCESS dwDesiredAccess
     );