c++ - 可以检索 Windows 待机计时器吗?

标签 c++ windows

Windows 待机计时器是否可用?我如何使用 C++ 检索它?

最佳答案

我认为您需要传递 SystemPowerInformation 的 CallNtPowerInformation。返回的 SYSTEM_POWER_INFORMATION.TimeRemaining 应该是相关的。

关于c++ - 可以检索 Windows 待机计时器吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4400446/

相关文章:

c++ - 使用 g++ 编译多线程代码(-Wl,--no-as-needed 不工作)

windows - 用于监视某个程序的 CPU 使用率并对其使用react的批处理脚本

c++ - 未找到 MinGW msys 包 : General advice how to proceed

node.js - 如何在 Windows 7 上加密 "npm install"

windows - Get-ScheduledTask 命令在 Windows Server 2008 R2 中不起作用

windows - powershell windows 8.1 中的 cURL : "A drive with the name ' localhost' does not exist"

当且仅当测试失败时,c++ gtest在测试结束时打印附加信息

c++ - boost::bind 和类成员函数

c++ - 我可以在 C++ 中有一个可变修改的 vector 吗?

c++ - 使用 unicode 字符串作为 std::vector<unsigned short>