网站首页  词典首页

请输入您要查询的函数:

 

术语 writepwrscheme
释义 WritePwrScheme
语法:
C++
BOOLEAN WINAPI WritePwrScheme(
__in PUINT puiID,
__in LPWSTR lpszName,
__in_opt LPWSTR lpszDescription,
__in PPOWER_POLICY pPowerPolicy
);
WritePwrScheme功能
[WritePwrScheme都可以在指定的要求部分使用的操作系统。它可能被改变或在后续版本中不可用。见备注。]
写入策略设置是唯一的指定电源使用方案。
参数
puiID [in]
该项权力的计划指标写入。如果具有相同指数已经存在的电源使用方案,它被替换。否则,一个新的电源方案被创建。
lpszName [in]
在电源使用方案的名称。
lpszDescription [中,可选]
在电源使用方案的说明。
pPowerPolicy [in]
一个 POWER_POLICY结构,它包含政策的权力要写入设置指针。
返回值
如果函数成功,返回值为非零。
如果函数失败,返回值是零。为了获得更多错误信息,调用GetLastError。
备注
这种变化不会影响现行制度的权力的政策。以应用此更改当前系统电源的政策,请与本电源使用方案索引SetActivePwrScheme功能。
电力政策,计划书,用WritePwrScheme永久在系统注册表配置单元存储,并保持在电源选项控制面板程序,或通过的权力计划的后续调用API的使用。要永久删除系统的电源使用方案,调用DeletePwrScheme功能。
从Windows Vista中,使用PowerEnumerate函数来枚举指定计划的权力设置和职能的权力写入写个人设置。
有关使用PowrProf.h信息,请参见电源使用方案。
要求:
最低支持:client-Windows 2000专业版
最低支持server-Windows 2000服务器
HeaderPowrProf.h
LibraryPowrProf.lib
DLLPowrProf.dll
参见
电源使用方案
电源管理功能
DeletePwrScheme
POWER_POLICY
ReadPwrScheme
SetActivePwrScheme
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年7月30日
==英文原文==WritePwrScheme Function
[WritePwrScheme 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 policy settings that are unique to the specified power scheme.
Syntax
C++
BOOLEAN WINAPI WritePwrScheme(
__in PUINT puiID,
__in LPWSTR lpszName,
__in_opt LPWSTR lpszDescription,
__in PPOWER_POLICY pPowerPolicy
);
Parameters
puiID [in]
The index of the power scheme to be written. If a power scheme with the same index already exists, it is replaced. Otherwise, a new power scheme is created.
lpszName [in]
The name of the power scheme.
lpszDescription [in, optional]
The description of the power scheme.
pPowerPolicy [in]
A pointer to a 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
This change does not affect the current system power policy. To apply this change to the current system power policy, call the SetActivePwrScheme function with the index of this power scheme.
Power policy schemes written using WritePwrScheme are permanently stored in the system registry hives, and remain available for use in the Power Options control panel program, or by subsequent calls to the power scheme API. To permanently remove a power scheme from the system, call the DeletePwrScheme function.
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 Schemes
Power Management Functions
DeletePwrScheme
POWER_POLICY
ReadPwrScheme
SetActivePwrScheme
Send comments about this topic to Microsoft
Build date: 7/30/2009
==原始网址==http://msdn.microsoft.com/en-us/library/aa373253(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:27:44