Access SYSTEM_POWER_STATE_CONTEXT from user mode code

I am wondering if there is a way (even if without documents) to get access to SYSTEM_POWER_STATE_CONTEXT from a local Windows service written in C ++ that works in the goof mode?

My goal is to distinguish between a system of wakefulness from sleep versus sleep mode, similar to what they describe here .

+4
source share

All Articles