[DllImport("Advapi32.dll", SetLastError = true)][return: MarshalAs(UnmanagedType.SysUInt)] public static extern IntPtr OpenService( IntPtr hSCManager, string lpServiceName, uint dwDesiredAccess );
Microsoft documentation: Link
Last updated 1 year ago