I'm curious if there's a way (even if undocumented) to access SYSTEM_POWER_STATE_CONTEXT from a Windows local service written in C++ running in user-mode?
My goal is to distinguish between the system waking from sleep vs. hibernation, similar to what they describe here.