You can do
SYSTEM_POWER_CAPABILITIES spc = { 0 };
NTSTATUS nRet = CallNtPowerInformation(SystemPowerCapabilities, NULL, 0, &spc, sizeof(spc));
and check spc.AoAc
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Do not use CMD command(powercfg /a) to view
You can do
SYSTEM_POWER_CAPABILITIES spc = { 0 };
NTSTATUS nRet = CallNtPowerInformation(SystemPowerCapabilities, NULL, 0, &spc, sizeof(spc));
and check spc.AoAc
Hello,
Welcome to Microsoft Q&A!
Have you tried GetDevicePowerState? According to System Power States, Systems that support Modern Standby do not use S1-S3.
I'm afraid there is no direct WinAPI to check Modern Standby.
Thank you.
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.