GetWirelessState (Compact 7)

3/12/2014

This function retrieves the global state of wireless devices from the registry.

Syntax

HRESULT GetWirelessState(
    BOOL *bState
);

Parameters

  • bState
    [out] Receives the global state of all wireless devices.

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 global state of all wireless devices is stored under the following registry key:

HKLM\System\CurrentControlSet\Control\Power\State
Wireless

You can change the global state by calling the ChangeWirelessState function.

Requirements

Header

wrlspwr.h

Library

ossvcs.lib

See Also

Reference

Wireless Device Power Management Functions