网站首页  词典首页

请输入您要查询的函数:

 

术语 writeprocessorpwrscheme
释义 WriteProcessorPwrScheme
语法:
C++
BOOLEAN WINAPI WriteProcessorPwrScheme(
__in UINT ID,
__in PMACHINE_PROCESSOR_POWER_POLICY pMachineProcessorPowerPolicy
);
WriteProcessorPwrScheme功能
[WriteProcessorPwrScheme都可以在指定的要求部分使用的操作系统。它可能被改变或在后续版本中不可用。见备注。]
写入指定的电源使用方案处理器电源策略设置。
参数
编号 [in]
该项权力的计划指标写入。
pMachineProcessorPowerPolicy [in]
一个 MACHINE_PROCESSOR_POWER_POLICY结构,它包含政策的权力要写入设置指针。
返回值
如果函数成功,返回值为非零。
如果函数失败,返回值是零。为了获得更多错误信息,调用GetLastError。
备注
这种变化不会影响现行制度的权力的政策。以应用此更改当前系统电源的政策,调用SetActivePwrScheme功能,使用这项权力的计划指标。
与Windows Vista,电力系统的管理配置处理器开始是通过GUID_PROCESSOR_SETTINGS_SUBGROUP电源设置控制分组。使用PowerEnumerate函数来枚举单独的设置。
有关使用PowrProf.h信息,请参见电源使用方案。
要求:
最低支持client-Windows XP
最低支持serverWindows服务器2003
HeaderPowrProf.h
LibraryPowrProf.lib
DLLPowrProf.dll
参见
电源使用方案
电源管理功能
MACHINE_PROCESSOR_POWER_POLICY
ReadProcessorPwrScheme
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年7月30日
==英文原文==WriteProcessorPwrScheme Function
[WriteProcessorPwrScheme 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 processor power policy settings for the specified power scheme.
Syntax
C++
BOOLEAN WINAPI WriteProcessorPwrScheme(
__in UINT ID,
__in PMACHINE_PROCESSOR_POWER_POLICY pMachineProcessorPowerPolicy
);
Parameters
ID [in]
The index of the power scheme to be written.
pMachineProcessorPowerPolicy [in]
A pointer to a MACHINE_PROCESSOR_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, using the index of this power scheme.
Starting with Windows Vista, power management configuration of the system's processor is controlled through the GUID_PROCESSOR_SETTINGS_SUBGROUP power settings subgroup. Use the PowerEnumerate function to enumerate individual settings.
For more information on using PowrProf.h, see Power Schemes .
Requirements
Minimum supported clientWindows XP
Minimum supported serverWindows Server 2003
HeaderPowrProf.h
LibraryPowrProf.lib
DLLPowrProf.dll
See Also
Power Schemes
Power Management Functions
MACHINE_PROCESSOR_POWER_POLICY
ReadProcessorPwrScheme
Send comments about this topic to Microsoft
Build date: 7/30/2009
==原始网址==http://msdn.microsoft.com/en-us/library/aa373251(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:22:33