Type a page name and press Enter. You'll jump to the page if it exists, or you can create it if it doesn't.
To create a page in a module other than powrprof, prefix the name with the module name and a period.
/// <summary>
/// Full call to Vista method PowerSettingAccessCheck() supporting empty power setting identifier.
/// </summary>
/// <param name="accessFlags">One or more check specifier flags</param>
/// <returns></returns>
internal static UInt32 PowerSettingAccessCheck(PowerSettingAccessFlags accessFlags)
{
return PowerSettingAccessCheck(accessFlags, IntPtr.Zero);
}
#region Group Policy Access FlagsAttribute
[Flags]
public enum PowerSettingAccessFlags
{
/// <summary>
/// Check for overrides on AC power settings.
/// </summary>
ACCESS_AC_POWER_SETTING_INDEX = 0x0,
/// <summary>
/// Check for overrides on DC power settings.
/// </summary>
ACCESS_DC_POWER_SETTING_INDEX = 0x1,
/// <summary>
/// Check for restrictions on specific power schemes.
/// </summary>
ACCESS_SCHEME = 0x10,
/// <summary>
/// Check for restrictions on active power schemes.
/// </summary>
ACCESS_ACTIVE_SCHEME = 0x13,
/// <summary>
/// Check for restrictions on creating or restoring power schemes.
/// </summary>
ACCESS_CREATE_SCHEME = 0x14
};
#endregion
VB Signature:
Declare Function PowerSettingAccessCheck Lib "powrprof.dll" (TODO) As TODO
User-Defined Types:
None.
Alternative Managed API:
Do you know one? Please contribute it!
Notes:
This function is only available from Vista.
Tips & Tricks:
Please add some!
Sample Code:
Please add some!
Please edit this page!
Do you have...
helpful tips or sample code to share for using this API in managed code?
corrections to the existing content?
variations of the signature you want to share?
additional languages you want to include?
Select "Edit This Page" on the right hand toolbar and edit it! Or add new pages containing supporting types needed for this API (structures, delegates, and more).