网站首页  词典首页

请输入您要查询的函数:

 

术语 getpwrcapabilities
释义 GetPwrCapabilities
语法:
C++
BOOLEAN WINAPI GetPwrCapabilities(
__out PSYSTEM_POWER_CAPABILITIES lpSystemPowerCapabilities
);
GetPwrCapabilities作用
信息检索系统供电能力。
参数
lpSystemPowerCapabilities [out]
一个 SYSTEM_POWER_CAPABILITIES结构,接收信息的指针。
返回值
如果函数成功,返回值为非零。
如果函数失败,返回值是零。为了获得更多错误信息,调用GetLastError。
备注
此函数检索有关当前系统电源管理的硬件资源和能力的详细资料。这包括对硬件的功能,如电源按钮,盖开关状态信息,和电池。其他细节,包括对当前返回的电源管理功能和配置,可以动态改变,如目前的最低支持睡眠状态,这可能改变,新的驱动程序,信息已经进入系统,或系统的休眠文件的存在介绍。
这些信息也可通过CallNtPowerInformation功能,使用SystemPowerCapabilitiesLevel。
有关使用PowrProf.h信息,请参见电源使用方案。
要求:
最低支持:client-Windows 2000专业版
最低支持server-Windows 2000服务器
HeaderPowrProf.h
LibraryPowrProf.lib
DLLPowrProf.dll
参见
电源管理功能
CallNtPowerInformation
SYSTEM_POWER_CAPABILITIES
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年7月30日
==英文原文==GetPwrCapabilities Function
Retrieves information about the system power capabilities.
Syntax
C++
BOOLEAN WINAPI GetPwrCapabilities(
__out PSYSTEM_POWER_CAPABILITIES lpSystemPowerCapabilities
);
Parameters
lpSystemPowerCapabilities [out]
A pointer to a SYSTEM_POWER_CAPABILITIES structure that receives the information.
Return Value
If the function succeeds, the return value is nonzero.
If the function fails, the return value is zero. To get extended error information, call GetLastError .
Remarks
This function retrieves detailed information about the current system power management hardware resources and capabilities. This includes information about the presence of hardware features such as power buttons, lid switches, and batteries. Other details returned include information about current power management capabilities and configurations that can change dynamically, such as the minimum sleep state currently supported, which may change as new drivers are introduced into the system, or the presence of the system hibernation file.
This information is also available through the CallNtPowerInformation function, using the SystemPowerCapabilities level.
For more information on using PowrProf.h, see Power Schemes .
Requirements
Minimum supported clientWindows 2000 Professional
Minimum supported serverWindows 2000 Server
HeaderPowrProf.h
LibraryPowrProf.lib
DLLPowrProf.dll
See Also
Power Management Functions
CallNtPowerInformation
SYSTEM_POWER_CAPABILITIES
Send comments about this topic to Microsoft
Build date: 7/30/2009
==原始网址==http://msdn.microsoft.com/en-us/library/aa372691(VS.85).aspx\n
随便看

 

windows api函数参考手册包含2258条windows api函数文档,详细介绍nodejs、java、rust调用windows api的方法技巧,是学习windows api编程的入门中文文档。

 

Copyright © 2004-2023 Winrtm.com All Rights Reserved
京ICP备2021023879号-40 更新时间:2024/10/6 13:17:35