Beispiel #1
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
            );
Beispiel #2
0
 public static extern IntPtr OpenService(
     IntPtr hSCManager,
     string lpServiceName,
     ServicesAccessType dwDesiredAccess
     );