Partager via


IObex::EnumDevices

This method returns a pointer to the IDeviceEnum interface that enumerates the list of known devices.

HRESULT EnumDevices(
  IDeviceEnum** ppDeviceEnum, 
  REFCLSID uuidTransport
);

Parameters

  • ppDeviceEnum
    [out] Pointer to the IDeviceEnum interface.
  • uuidTransport
    [in] Specifies the UUID of the particular transport to do device enumeration. This allows device enumeration to be limited to one transport if so desired. If device enumeration for all transports is desired, this value should be set to CLSID_NULL.

Return Values

The appropriate HResult is returned.

Remarks

This method should not be called before calling the IObex::StartDeviceEnum method or it will return a failure.

If the device has been cached by the discovery mechanism below OBEX, it may not be connectable.

Requirements

OS Versions: Windows CE .NET 4.0 and later.
Header: Obex.h, Obex.idl.
Link Library: Uuid.lib.

See Also

IObex::StartDeviceEnum | IObex | IDeviceEnum | OBEX Interfaces

 Last updated on Friday, April 09, 2004

© 1992-2003 Microsoft Corporation. All rights reserved.