Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
SHCreateStdEnumFmtEtc
Collapse the table of content
Expand the table of content

SHCreateStdEnumFmtEtc function

[SHCreateStdEnumFmtEtc is available for use in the operating systems specified in the Requirements section. It may be altered or unavailable in subsequent versions.]

Creates an IEnumFORMATETC object from an array of FORMATETC structures.

Syntax


HRESULT SHCreateStdEnumFmtEtc(
  _In_        UINT           cfmt,
        const FORMATETC      afmt[],
  _Out_       IEnumFORMATETC **ppenumFormatEtc
);

Parameters

cfmt [in]

Type: UINT

The number of entries in the afmt array.

afmt

Type: const FORMATETC[]

An array of FORMATETC structures that specifies the clipboard formats of interest.

ppenumFormatEtc [out]

Type: IEnumFORMATETC**

When this function returns successfully, receives an IEnumFORMATETC interface pointer. Receives NULL on failure.

Return value

Type: HRESULT

If this function succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Requirements

Minimum supported client

Windows XP [desktop apps only]

Minimum supported server

Windows Server 2003 [desktop apps only]

End of client support

Windows XP with SP2

End of server support

Windows Server 2003

Header

Shlobj.h

Library

Shell32.lib

DLL

Shell32.dll (version 5.0 or later)

 

 

Community Additions

ADD
Show:
© 2015 Microsoft