BthGetRemoteCOD (Windows CE 5.0)
This functions retrieves the class of device (COD ) for a specified device that has a baseband connection with the local device.
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 Values
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
OS Versions: Windows CE.NET 4.2 and later.
Header: Bt_api.h.
Link Library: Btdrt.lib.
See Also
Bluetooth OS Functions | Bluetooth Application Development
Send Feedback on this topic to the authors