다음을 통해 공유


UpdateRadioStoredState (Compact 2013)

3/26/2014

This function updates the desired state for the specified wireless device.

Syntax

HRESULT UpdateRadioStoredState(
    RDD* pDev,
    DWORD dwState
);

Parameters

  • dwState
    Specifies the new value to set for the desired state.

Return Value

The following table shows the return values for this function.

Value

Description

S_OK

Successfully set the state of the radio.

E_FAIL

Radio state could not be changed.

S_FALSE

Radio was already in the desired state.

Remarks

The desired state of wireless devices is stored as a DWORD in the registry under the HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Power\State <device name> value. For power-managed devices, <device name> is a string that the device reports to the power manager.

Requirements

Header

wrlspwr.h

Library

ossvcs.lib

See Also

Reference

Wireless Device Power Management Functions