packages/Windows API Code Pack 1.1/source/WindowsAPICodePack/Core/PowerManagement/Power.cs
/// <summary>
/// Registers the application to receive power setting notifications 
/// for the specific power setting event.
/// </summary>
/// <param name="handle">Handle indicating where the power setting 
/// notifications are to be sent.</param>
/// <param name="powerSetting">The GUID of the power setting for 
/// which notifications are to be sent.</param>
/// <returns>Returns a notification handle for unregistering 
/// power notifications.</returns>
Registers the application to receive power setting notifications
for the specific power setting event.
Registers the application to receive power setting notifications for the specific power setting event .
internal static int RegisterPowerSettingNotification(
            IntPtr handle, Guid powerSetting)
        {
            int outHandle = PowerManagementNativeMethods.RegisterPowerSettingNotification(
                handle,
                ref powerSetting,
                0);
            return outHandle;
        }
internal static int RegisterPowerSettingNotification ( IntPtr handle , Guid powerSetting ) { int outHandle = PowerManagementNativeMethods . RegisterPowerSettingNotification ( handle , ref powerSetting , 0 ) ; return outHandle ; }
Registers the application to receive power setting notifications
for the specific power setting event.
Registers the application to receive power setting notifications for the specific power setting event .
Returns a notification handle for unregistering
power notifications.
Returns a notification handle for unregistering power notifications .
handle
IntPtr
Handle indicating where the power setting
notifications are to be sent.
Handle indicating where the power setting notifications are to be sent .
powerSetting
Guid
The GUID of the power setting for
which notifications are to be sent.
The GUID of the power setting for which notifications are to be sent .