Partager via


OnBthDeviceAdded (Compact 2013)

3/26/2014

This callback function is called when the device pairs with another peer Bluetooth device.

Syntax

typedef void (*TONBTHDEVICEADDED)(
  const BT_ADDR*, 
  const GUID*, 
    LPVOID
); 

Parameters

  • BT_ADDR*
    Points to BT_ADDR that stores the address of the peer Bluetooth.
  • GUID*
    Points to the GUID of the remote service that triggered the callback.
  • LPVOID
    Equals the DWORD, set in the registry, typecast as LPVOID.

Return Value

None.

Remarks

Implement an OnBthDeviceAdded function in your application to receive notifications when a remote device is connected that supports a specified service. The stack calls only those OnBthDeviceAdded callbacks that are registered for the supported services on the new device.

GUID of the advertised remote service is set in the registry under the HKEY_LOCAL_MACHINE\Software\Microsoft\Bluetooth\Services key.

This callback is invoked in the context of the Bluetooth pairing application, not the kernel mode stack.

Requirements

Header

bthutil_p.h

Library

Developer Implemented

See Also

Reference

Bluetooth Application Development Callbacks
OnBthDeviceRemoved