// ntpoapi.h
typedef struct _PO_SPR_ACTIVE_SESSION_DATA {
BOOLEAN Start;
GUID ActiveSessionGuid;
} PO_SPR_ACTIVE_SESSION_DATA, *PPO_SPR_ACTIVE_SESSION_DATA;
View the official Windows Driver Kit DDI referenceNo description available.
Stores information that indicates whether a System Power Report's Active Session is starting or ending.
StartA boolean value that indicates whether the session is starting or ending.
ActiveSessionGuidThe Active session GUID for the session.
To register for System Power Report's Active Session notifications, you must call PowerSettingRegisterNotification function with these values:
If the registration is successful, the DEVICE_NOTIFY_CALLBACK_ROUTINE callback is invoked with these value:
PowerSettingRegisterNotification
DEVICE_NOTIFY_CALLBACK_ROUTINE