Desktop Functions: Smart Device Functions:
|
ReleasePowerRequirement (advapi32)
C# Signature:
[DllImport("advapi32.dll", SetLastError=true)] 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); } Please edit this page!Do you have...
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). |
|