Share via


IObex::EnumTransports (Compact 2013)

3/26/2014

This method returns a pointer to the ITransportEnum interface that enumerates known transports.

Syntax

HRESULT EnumTransports(
  IPropertyBagEnum** ppTransportEnum
);

Parameters

  • ppTransportEnum
    [out] Pointer to the ITransportEnum interface. A property bag enumerator containing a property bag that lists the globally unique identifiers (GUIDs) of the data transfer methods that the Object Exchange (OBEX) Protocol object supports.

Return Value

This method returns the standard values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, and E_FAIL, as well as the following:

  • S_OK
    The method completed successfully.

Remarks

The ITransportEnum interface enumerates a list of IpropertyBag2 interfaces. Each property bag interface has a globally unique identifier (GUID) associated with it and a list of properties for that transport. An OBEX service can use this list of properties to determine what needs to be configured for a particular transport.

This method is rarely used; however, to create an object that supports a wide array of data transfer types, use the IObex::EnumTransports method to enumerate those types.

Requirements

Header

obex.h,
obex.idl

Library

uuid.lib

See Also

Reference

IObex
OBEX Interfaces