Partager via


SetDevicePowerState (Compact 2013)

3/26/2014

This function requests that the bus driver set this device to the power state specified by PowerState.

Syntax

BOOL SetDevicePowerState (
  HANDLE hBusAccess,
  CEDEVICE_POWER_STATE PowerState,
  PVOID pReserved
);

Parameters

  • PowerState
    [in] Power state to set the device to, specified by the CEDEVICE_POWER_STATE structure.
  • pReserved
    [in] Reserved; set to NULL.

Return Value

Returns TRUE if successful. Otherwise, it returns FALSE.

Requirements

Header

ceddk.h

Library

CEDDK.lib

See Also

Reference

Ceddk.dll Bus Access Functions
CEDEVICE_POWER_STATE
CreateBusAccessHandle