IDataObject.EnumFormatEtc(Int32, IntPtr) IDataObject.EnumFormatEtc(Int32, IntPtr) IDataObject.EnumFormatEtc(Int32, IntPtr) IDataObject.EnumFormatEtc(Int32, IntPtr) Method

Definition

Retrieves a pointer to an object that can enumerate the FORMATETC enumerator types that this implementation supports.

public:
 int EnumFormatEtc(int a, IntPtr b);
public int EnumFormatEtc (int a, IntPtr b);
abstract member EnumFormatEtc : int * nativeint -> int
Public Function EnumFormatEtc (a As Integer, b As IntPtr) As Integer

Parameters

a
Int32 Int32 Int32 Int32

A value from the DATADIR indicating the direction of the data.

b
IntPtr IntPtr IntPtr IntPtr

An output variable address receiving the IEnumFORMATETC.

Returns

The EnumFormatEtc method supports the standard return values E_INVALIDARG and E_OUTOFMEMORY, as well as the following return values:

Return value Description
S_OK This call to the EnumFormatEtc method successfully created the enumerator object.
E_NOTIMPL The specified direction is not supported.
OLE_S_USEREG A request to OLE to enumerate the formats from the registry.

Remarks

For more information about programming with the IDataObject interface and the Microsoft Management Console (MMC), see the MMC Programmer's Guide.

Applies to