[DllImport("powrprof.dll", SetLastError = true)] public static extern IntPtr PowerRegisterSuspendResumeNotification( uint Flags );
Microsoft documentation: Link
Last updated 2 months ago