Share via


GetDeviceList (Compact 7)

3/12/2014

This method retrieves a list of devices and the supported services from the registry.

Syntax

HRESULT GetDeviceList (
  IBTDevice **ppBTList, 
  int *pNDevices, 
  const GUID *pServiceUUID
);

Parameters

  • ppBTList
    [out] Pointer to the address of an array of IBTDevice interfaces.
  • pNDevices
    [out] Pointer to the number of devices in the array.
  • pServiceUUID
    [in] Pointer to a service identifier to list only devices that support the specified service. Set to NULL to list all trusted devices.

Return Value

Returns S_OK on success; otherwise returns standard HRESULT values as appropriate.

Remarks

This function populates an array of IBTDevice interfaces representing the Bluetooth devices that support the service specified by pServiceUUID.

Requirements

Header

bthutil_p.h

Library

Bthutil.lib

See Also

Reference

Bluetooth API Miscellaneous Functions