I am writing a windows service application in .NET/C#
.
My service has to be notified when the system enters in hibernation(S4)
. How to do this in code?
Looks like ServiceBase.OnPowerEvent()
method does not notify about the hibernation(S4) event.