Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.
A version of this page is also available for
4/8/2010

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

Syntax

HRESULT EnumTransports(
  IPropertyBagEnum** 
ppTransportEnum
);

Parameters

ppTransportEnum

[out] Pointer to the ITransportEnuminterface. 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 ITransportEnuminterface enumerates a list of IpropertyBag2interfaces. 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::EnumTransportsmethod 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