Compartilhar via


BthGetRole (Compact 2013)

3/26/2014

This function retrieves the current role for a peer Bluetooth device.

Syntax

int BthGetRole 
  BT_ADDR *pbt,
  USHORT *pusRole
);

Parameters

  • pbt
    [in] Pointer to the device address.
  • pusRole
    [out] Pointer to the current role. Master device (0) and subordinate device (1).

Return Value

Returns ERROR_SUCCESS on success; otherwise returns standard HRESULT errors.

Requirements

Header

bt_api.h

Library

Btdrt.lib

See Also

Reference

Bluetooth API Management Functions
Bluetooth AG Service Functions