BthSwitchRole (Windows Embedded CE 6.0)
1/6/2010
This function changes the current role to the specified role.
Syntax
int BthSwitchRole (
BT_ADDR* pbt,
USHORT usRole
);
Parameters
pbt
[in] Pointer to the Bluetooth address as a BT_ADDR type. BT_ADDR is defined in Ws2bth.h:typedef ULONGLONG bt_addr, *pbt_addr, BT_ADDR, *PBT_ADDR;
- usRole
[in] Specifies the new role. Master (0) and slave (1).
Return Value
This function returns ERROR_SUCCESS when it completes successfully.
Other standard error codes may be returned as appropriate.
Requirements
Header | bt_api.h |
Library | Btdrt.lib |
Windows Embedded CE | Windows Embedded CE 6.0 and later |