Compartilhar via


IObex::EnumTransports (Windows CE 5.0)

Send Feedback

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

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 Values

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

Smartphone: Smartphone 2002 and later

Pocket PC: Pocket PC 2002 and later

OS Versions: Windows CE .NET 4.0 and later.

Header: Obex.h, Obex.idl.

Link Library: Uuid.lib.

See Also

IObex | OBEX Interfaces

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.