Export (0) Print
Expand All
Expand Minimize

DevicePowerOpen function

Initializes a device list by querying all the devices.

Syntax


BOOLEAN WINAPI DevicePowerOpen(
    ULONG Flags
);

Parameters

Flags [optional]

Reserved; must be 0.

Return value

If the function succeeds, the return value is nonzero.

If the function fails, the return value is zero.

Examples

For an example that uses this function, see Using the Device Power API.

Requirements

Minimum supported client

Windows Vista [desktop apps only]

Minimum supported server

Windows Server 2008 [desktop apps only]

Header

PowrProf.h

Library

PowrProf.lib

DLL

PowrProf.dll

See also

Device Power Management

 

 

Community Additions

ADD
Show:
© 2014 Microsoft