public static extern SafeServiceHandle OpenSCManager(
     string lpMachineName,
     string lpDatabaseName,
     ServiceControlAccessRights dwAccess);
 public static extern IntPtr OpenSCManager(
     string machineName,
     string databaseName,
     ServiceControlAccessRights desiredAccess);