网站首页  词典首页

请输入您要查询的函数:

 

术语 enumpwrschemes
释义 EnumPwrSchemes
语法:
C++
BOOLEAN WINAPI EnumPwrSchemes(
__in PWRSCHEMESENUMPROC lpfnPwrSchemesEnumProc,
__in LPARAM lParam
);
EnumPwrSchemes功能
[EnumPwrSchemes都可以在指定的要求部分使用的操作系统。它可能被改变或在后续版本中不可用。为Windows Vista编写的应用程序,后来应使用PowerEnumerate代替。]
枚举所有电源方案。对于每个电源方案列举的函数调用与计划有关的资料的权力回调函数。
参数
lpfnPwrSchemesEnumProc [in]
A到回调函数的指针为每个电源方案称为枚举。有关更多信息,请参见备注。
lparam的 [in]
一个用户定义的值传递给回调函数。
返回值
如果函数成功,返回值为非零。
如果函数失败,返回值是零。为了获得更多错误信息,调用GetLastError。
备注
对于每个电源方案列举的回调函数使用下列参数要求:
typedef布尔(回调* PWRSCHEMESENUMPROC)(
机组uiIndex,/ /电源方案指数
双字节值dwName,/ /的sName字符串的大小,以字节为单位
LPWSTR sName,/ /电力计划名称
双字节值dwDesc,/ /的sDesc字符串的大小,以字节为单位
LPWSTR sDesc,/ /描述字符串
PPOWER_POLICY页,/ /接收功率政策
lparam的lparam的/ /用户定义的值
);
在sName和sDesc参数是空终止Unicode字符串。的PP参数是一个结构的POWER_POLICY载有权力的政策计划的指针。要继续下去,直到所有电源方案已经列举,回调函数必须返回TRUE。要停止枚举,在回调函数必须返回FALSE。
有关使用PowrProf.h信息,请参见电源使用方案。
要求:
最低支持:client-Windows 2000专业版
最低支持server-Windows 2000服务器
HeaderPowrProf.h
LibraryPowrProf.lib
DLLPowrProf.dll
参见
电源使用方案
电源管理功能
POWER_POLICY
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年7月30日
==英文原文==EnumPwrSchemes Function
[EnumPwrSchemes is available for use in the operating systems specified in the Requirements section. It may be altered or unavailable in subsequent versions. Applications written for Windows Vista and later should use PowerEnumerate instead.]
Enumerates all power schemes. For each power scheme enumerated, the function calls a callback function with information about the power scheme.
Syntax
C++
BOOLEAN WINAPI EnumPwrSchemes(
__in PWRSCHEMESENUMPROC lpfnPwrSchemesEnumProc,
__in LPARAM lParam
);
Parameters
lpfnPwrSchemesEnumProc [in]
A pointer to a callback function to be called for each power scheme enumerated. For more information, see Remarks.
lParam [in]
A user-defined value to be passed to the callback function.
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
For each power scheme enumerated, the callback function is called with the following parameters:

typedef BOOLEAN (CALLBACK* PWRSCHEMESENUMPROC)(
UINT uiIndex, // power scheme index
DWORD dwName, // size of the sName string, in bytes
LPWSTR sName, // name of the power scheme
DWORD dwDesc, // size of the sDesc string, in bytes
LPWSTR sDesc, // description string
PPOWER_POLICY pp, // receives the power policy
LPARAM lParam // user-defined value
);
The sName and sDesc parameters are null-terminated Unicode strings. The pp parameter is a pointer to a POWER_POLICY structure containing the power policy scheme. To continue until all power schemes have been enumerated, the callback function must return TRUE. To stop the enumeration, the callback function must return FALSE.
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
POWER_POLICY
Send comments about this topic to Microsoft
Build date: 7/30/2009
==原始网址==http://msdn.microsoft.com/en-us/library/aa372687(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:19:10