Partager via


IObex::EnumTransports

A version of this page is also available for

Windows Embedded CE 6.0 R3

4/8/2010

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 OBEX 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
Windows Embedded CE Windows CE .NET 4.0 and later
Windows Mobile Pocket PC 2002 and later, Smartphone 2002 and later

See Also

Reference

IObex:IUnknown
OBEX Interfaces