网站首页  词典首页

请输入您要查询的函数:

 

术语 writeglobalpwrpolicy
释义 WriteGlobalPwrPolicy
语法:
C++
BOOLEAN WINAPI WriteGlobalPwrPolicy(
__in PGLOBAL_POWER_POLICY pGlobalPowerPolicy
);
WriteGlobalPwrPolicy功能
[WriteGlobalPwrPolicy都可以在指定的要求部分使用的操作系统。它可能被改变或在后续版本中不可用。见备注。]
写入全球大国策略设置。
参数
pGlobalPowerPolicy [in]
一个 GLOBAL_POWER_POLICY结构,它包含政策的权力要写入设置指针。
返回值
如果函数成功,返回值为非零。
如果函数失败,返回值是零。为了获得更多错误信息,调用GetLastError。
备注
函数替换任何现有的全球大国的策略设置。每个用户都有一个单独的全球性大国的计划,其中包含电源策略设置应用到该用户的所有电源方案。
从Windows Vista中,使用PowerEnumerate函数来枚举指定计划的权力设置和职能的权力写入写个人设置。
有关使用PowrProf.h信息,请参见电源使用方案。
要求:
最低支持:client-Windows 2000专业版
最低支持server-Windows 2000服务器
HeaderPowrProf.h
LibraryPowrProf.lib
DLLPowrProf.dll
参见
电源管理功能
GLOBAL_POWER_POLICY
ReadGlobalPwrPolicy
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年7月30日
==英文原文==WriteGlobalPwrPolicy Function
[WriteGlobalPwrPolicy is available for use in the operating systems specified in the Requirements section. It may be altered or unavailable in subsequent versions. See Remarks.]
Writes global power policy settings.
Syntax
C++
BOOLEAN WINAPI WriteGlobalPwrPolicy(
__in PGLOBAL_POWER_POLICY pGlobalPowerPolicy
);
Parameters
pGlobalPowerPolicy [in]
A pointer to a GLOBAL_POWER_POLICY structure that contains the power policy settings to be written.
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
The function replaces any existing global power policy settings. Each user has a separate global power scheme, which contains power policy settings that apply to all power schemes for that user.
Starting with Windows Vista, use the PowerEnumerate function to enumerate power settings for a specified scheme and the power write functions to write individual settings.
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
GLOBAL_POWER_POLICY
ReadGlobalPwrPolicy
Send comments about this topic to Microsoft
Build date: 7/30/2009
==原始网址==http://msdn.microsoft.com/en-us/library/aa373250(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 更新时间:2025/1/9 4:13:37