Compartir a través de


CreateFormatEnumerator

A version of this page is also available for

Windows Embedded CE 6.0 R3

4/8/2010

This function creates an object that implements the IEnumFORMATETC interface over a static array of FORMATETC structures.

Syntax

HRESULT CreateFormatEnumerator(
  UINT cfmtetc,
  FORMATETC* rgfmtetc,
  IEnumFORMATETC** ppenumfmtetc
);

Parameters

  • cfmtetc
    [in] Unsigned integer value that contains the number of FORMATETC structures in the static array specified by the rgfmtetc parameter. The cfmtetc parameter cannot be zero.
  • rgfmtetc
    [in] Address of a static array of FORMATETC structures.
  • ppenumfmtetc
    [out] Address of a pointer to the IEnumFORMATETC interface on the enumerator object.

Return Value

Returns S_OK if successful or E_INVALIDARG if one or more parameters are invalid.

Requirements

Header urlmon.h, urlmon.idl
Library urlmon.lib
Windows Embedded CE Windows CE .NET 4.0 and later
Windows Mobile Windows Mobile Version 5.0 and later