网站首页  词典首页

请输入您要查询的函数:

 

术语 canuserwritepwrscheme
释义 CanUserWritePwrScheme
语法:
C++
BOOLEAN WINAPI CanUserWritePwrScheme(void);
CanUserWritePwrScheme功能
[CanUserWritePwrScheme都可以在指定的要求部分使用的操作系统。它可能被改变或在后续版本中不可用。为Windows Vista编写的应用程序,后来应使用PowerSettingAccessCheck代替。]
确定当前用户是否具有足够的权限写一个电源使用方案。
参数
这个函数没有参数。
返回值
如果当前用户具有足够权限写一个电源方案,该函数返回TRUE。
如果函数失败,返回值是零。为了获得更多错误信息,调用GetLastError。可能的错误值包括以下内容。
ErrorMeaning
ERROR_ACCESS_DENIEDThe当前用户没有足够的权限写电源使用方案。
备注
此功能非常有用,如果您的应用程序模拟一个用户。
有关使用PowrProf.h信息,请参见电源使用方案。
要求:
最低支持:client-Windows 2000专业版
最低支持server-Windows 2000服务器
HeaderPowrProf.h
LibraryPowrProf.lib
DLLPowrProf.dll
参见
电源使用方案
电源管理功能
WritePwrScheme
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年7月30日
==英文原文==CanUserWritePwrScheme Function
[CanUserWritePwrScheme 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 PowerSettingAccessCheck instead.]
Determines whether the current user has sufficient privilege to write a power scheme.
Syntax
C++
BOOLEAN WINAPI CanUserWritePwrScheme(void);
Parameters
This function has no parameters.
Return Value
If the current user has sufficient privilege to write a power scheme, the function returns TRUE.
If the function fails, the return value is zero. To get extended error information, call GetLastError . Possible error values include the following.
ErrorMeaning
ERROR_ACCESS_DENIEDThe current user does not have sufficient privilege to write a power scheme.

Remarks
This function is useful if your application is impersonating a user.
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
WritePwrScheme
Send comments about this topic to Microsoft
Build date: 7/30/2009
==原始网址==http://msdn.microsoft.com/en-us/library/aa372676(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:23:22