Beispiel #1
0
 public static extern int ChangeServiceConfig(
     IntPtr hService,
     ServiceType dwServiceType,
     ServicesStartType dwStartType,
     ServicesErrorControl dwErrorControl,
     string lpBinaryPathName,
     string lpLoadOrderGroup,
     int lpdwTagId,
     string lpDependencies,
     string lpServiceStartName,
     string lpPassword,
     string lpDisplayName
     );
Beispiel #2
0
        public static extern IntPtr CreateService(
            IntPtr hSCManager,
            string lpServiceName,
            string lpDisplayName,

            ServicesAccessType dwDesiredAccess,
            ServiceType dwServiceType,
            ServicesStartType dwStartType,
            ServicesErrorControl dwErrorControl,
            string lpBinaryPathName,
            string lpLoadOrderGroup,
            int lpdwTagId,
            string lpDependencies,
            string lp,
            string lpPassword
            );