网站首页  词典首页

请输入您要查询的函数:

 

术语 getcurrentpowerpolicies
释义 GetCurrentPowerPolicies
语法:
C++
BOOLEAN WINAPI GetCurrentPowerPolicies(
__out PGLOBAL_POWER_POLICY pGlobalPowerPolicy,
__out PPOWER_POLICY pPowerPolicy
);
GetCurrentPowerPolicies功能
目前的检索系统电源策略设置。
参数
pGlobalPowerPolicy [out]
一个 GLOBAL_POWER_POLICY结构,接收目前全球电源策略设置指针。
pPowerPolicy [out]
一个 POWER_POLICY结构,接收电源策略设置,特有的有源电力计划指针。
返回值
如果函数成功,返回值为非零。
如果函数失败,返回值是零。为了获得更多错误信息,调用GetLastError。
备注
要更新目前的权力策略设置,调用WriteGlobalPwrPolicy或WritePwrScheme功能。
有关使用PowrProf.h信息,请参见电源使用方案。
要求:
最低支持:client-Windows 2000专业版
最低支持server-Windows 2000服务器
HeaderPowrProf.h
LibraryPowrProf.lib
DLLPowrProf.dll
参见
电源使用方案
电源管理功能
GLOBAL_POWER_POLICY
POWER_POLICY
WriteGlobalPwrPolicy
WritePwrScheme
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年7月30日
==英文原文==GetCurrentPowerPolicies Function
Retrieves the current system power policy settings.
Syntax
C++
BOOLEAN WINAPI GetCurrentPowerPolicies(
__out PGLOBAL_POWER_POLICY pGlobalPowerPolicy,
__out PPOWER_POLICY pPowerPolicy
);
Parameters
pGlobalPowerPolicy [out]
A pointer to a GLOBAL_POWER_POLICY structure that receives the current global power policy settings.
pPowerPolicy [out]
A pointer to a POWER_POLICY structure that receives the power policy settings that are unique to the active power scheme.
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
To update the current power policy settings, call the WriteGlobalPwrPolicy or WritePwrScheme functions.
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 Schemes
Power Management Functions
GLOBAL_POWER_POLICY
POWER_POLICY
WriteGlobalPwrPolicy
WritePwrScheme
Send comments about this topic to Microsoft
Build date: 7/30/2009
==原始网址==http://msdn.microsoft.com/en-us/library/aa372689(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 11:31:49