Search
Module:
Directory

   Desktop Functions:

   Smart Device Functions:


Show Recent Changes
Subscribe (RSS)
Misc. Pages
Comments
FAQ
Helpful Tools
Playground
Suggested Reading
Website TODO List
Download Visual Studio Add-In

Search Results for "SetPowerRequirement" in [All]

advapi32

.
Summary
.

You can get hPowerReq by calling SetPowerRequirement.

.

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

.

static extern int SetPowerRequirement(string DeviceName, DevicePowerState State, uint dwDeviceFlags, string Name, ulong Reserved);

.

Declare Function SetPowerRequirement Lib "coredll.dll" Alias "SetPowerRequirement" (ByVal DeviceName As String, ByVal state As DevicePowerState, ByVal dwDeviceFlags As UInteger, ByVal name As String, ByVal Reserved As ULong) As Integer

.

          SetPowerRequirement("BKL1:",DevicePowerState.D0,POWER_NAME,null,0);

.
Documentation
[SetPowerRequirement] on MSDN

 
Access PInvoke.net directly from VS: