ReleasePowerRequirement (advapi32)
Last changed: anonymous

.
Summary

C# Signature:

[DllImport("advapi32.dll", SetLastError=true)]
static extern int ReleasePowerRequirement(int hPowerReq);

Alternative Managed API:

Do you know one? Please contribute it!

Notes:

You can get hPowerReq by calling SetPowerRequirement.

Tips & Tricks:

Please add some!

Sample Code:

int backlightHandle;

public KeepBacklightAlive()

{

    backlightHandle = NativeMethods.SetPowerRequirement("BKL1:", DevicePowerState.D0, 1, null, 0);

}

public void StopKeepingBacklightAlive()

{

    NativeMethods.ReleasePowerRequirement(backlightHandle);

}

Documentation