Creates an object that implements IEnumFORMATETC over a static array of FORMATETC structures.
HRESULT CreateFormatEnumerator(
UINT cfmtetc, //Number of FORMATETC structures in rgfmtetc
FORMATETC *rgfmtetc,
//Static array of formats.
IpenumFORMATETC **ppenumfmtetc
//Address of output variable that receives the
// IEnumFORMATETC interface pointer
);
The CreateFormatEnumerator function creates an enumerator object that implements IEnumFORMATETC over a static array of FORMATETC structures. The cfmtetc parameter specifies the number of these structures. With the pointer, you can call the standard enumeration methods to enumerate the structures, as described in the IEnumXXX reference.
Windows NT: Use version 5.0 or later.
Windows: Unsupported.
Windows CE: Unsupported.
Header: Declared in objbase.h.
Import Library: Included as a resource in ole32.dll.
RegisterFormatEnumerator, RevokeFormatEnumerator