Share via


OEMSetBthPowerState (Compact 2013)

3/26/2014

This function changes the Bluetooth state to on or off.

HRESULT OEMSetBthPowerState(
  DWORD dwState
);

Parameters

  • dwState
    [in] The state to which Bluetooth is to be set.

Return Values

Returns S_OK on success. Otherwise failure is assumed.

Remarks

This function is only called if it is enabled in the registry.

When this registry enabled function is enabled the function is used as follows:

  • When all wireless functionality is disabled OEMSetBthPowerState is called with dwState set to 0 to signify that Bluetooth should be powered off.
  • When one or more wireless devices are enabled, OEMGetBthPowerState is called and you should store 0 in pdwState to signify that Bluetooth is currently switched off. OEMSetBthPowerState is then called with dwState set to the value previously obtained from OEMGetBthPowerState when the user disabled wireless functionality.

Requirements

Header

Developer Implemented

Library

Developer Implemented

See Also

Reference

Bluetooth AG Service Callbacks
OEMGetBthPowerState