DeActivateBTDevice

Windows CE 5.0 Not SupportedWindows Embedded NavReady 2009 Supported

10/16/2008

This function deactivates a Bluetooth device profile.

Syntax

DWORD DeActivateBTDevice(
  BT_ADDR   btDevice, 
  USHORT    nProfileID
);

Parameters

  • btDevice
    [in] A BT_ADDR type specifying the Bluetooth address of the device.
  • nProfileID
    [in] A Service Class UUID that specifies the service class (Profile) to deactivate.

Return Values

Returns the following standard Win32 error codes.

Code Description

ERROR_SUCCESS

Success.

ERROR_BUSY

The Bluetooth device is in the process of pairing.

ERROR_ACCESS_DENIED

The service is not initialized or the Bluetooth device is off.

ERROR_INVALID_PARAMETER

A parameter is invalid.

ERROR_NOT_FOUND

The profile specified in the nProfileID parameter is not found or is not active.

ERROR_OPEN_FAILED

The specified profile does not have a valid RFComm channel assigned.

Remarks

This function disconnects the Bluetooth COM driver from the logical port and frees the port.

Requirements

Header btpairapi.h
Library btpairapi.lib
Windows Embedded CE Windows CE 5.0, Windows Embedded NavReady 2009

See Also

Reference

Bluetooth Pairing API Functions
ActivateBTDevice