Partager via


SetDevicePowerState (Windows Embedded CE 6.0)

1/6/2010

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 for future use. Set to NULL.

Return Value

Returns TRUE if successful. Otherwise, it returns FALSE.

Requirements

Header ceddk.h
Library CEDDK.lib
Windows Embedded CE Windows CE 5.0 and later

See Also

Reference

CEDDK Dynamic-Link Library Bus Access Functions
CreateBusAccessHandle

Other Resources

CEDEVICE_POWER_STATE