EnumerateMetafileProc callback function (gdiplustypes.h)

EnumerateMetafileProc is the signature of a callback function that you implement in your application for the Graphics::EnumerateMetafile method (and overloads).

In turn, your implementation can call Metafile::PlayRecord to play the record that was just enumerated.

Syntax

EnumerateMetafileProc Enumeratemetafileproc;

BOOL Enumeratemetafileproc(
  EmfPlusRecordType unnamedParam1,
  UINT unnamedParam2,
  UINT unnamedParam3,
  const BYTE *unnamedParam4,
  VOID *unnamedParam5
)
{...}

Parameters

unnamedParam1

Type: EmfPlusRecordType

The WMF, EMF, or EMF+ record type.

unnamedParam2

Type: UINT

Flags; always 0 for WMF/EMF records.

unnamedParam3

Type: UINT

The size of the record data (in bytes), or 0 if no data.

unnamedParam4

Type: BYTE*

A pointer to the record data, or NULL if no data.

unnamedParam5

Type: VOID*

A pointer to callbackData, if any.

Return value

Return FALSE to abort the enumeration process; return TRUE to continue it.

Requirements

Requirement Value
Minimum supported client Windows 10 Build 20348
Minimum supported server Windows 10 Build 20348
Header gdiplustypes.h