PowerRegisterSuspendResumeNotification

[DllImport("powrprof.dll", SetLastError = true)]
public static extern IntPtr PowerRegisterSuspendResumeNotification(
   uint Flags
);

Microsoft documentation: Link

Last updated