BthGetRemoteCOD (Windows Embedded CE 6.0)
1/6/2010
This functions retrieves the class of device (COD ) for a specified device that has a baseband connection with the local device.
Syntax
int BthGetRemoteCOD (
BT_ADDR* pbt,
unsigned int* pcod
);
Parameters
- pbt
[in] Pointer to the Bluetooth address of the peer device.
- pcod
[out] Pointer to the adapter's class of device. Potential values are defined in the Bluetooth Assigned Numbers document that is available on the Bluetooth Web site.
Return Value
This function returns ERROR_SUCCESS when it completes successfully.
A return value of ERROR_SERVICE_NOT_ACTIVE indicates that the Bluetooth stack is not present.
Other standard error codes may be returned as appropriate.
Remarks
The Bluetooth stack cannot always retrieve the COD if the local device initiates the connection and an inquiry has not occurred, or the inquiry occurred a long time ago and the cached inquiry results no longer exist.
Requirements
Header | bt_api.h |
Library | Btdrt.lib |
Windows Embedded CE | Windows CE .NET 4.2 and later |