EnumMetaFileProc

  int CALLBACK EnumMetaFileProc(hDC, lpHTable, lpMFR, nObj, lpClientData)    
  HDC hDC; /* handle of device context */
  HANDLETABLE FAR *lpHTable; /* address of metafile handle-table */
  METARECORD FAR *lpMFR; /* address of metafile record */
  int nObj; /* count of objects */
  LPARAM lpClientData; /* address of optional data */

The EnumMetaFileProc function is an application-defined callback function that processes metafile records. This function is called by the EnumMetaFile function.

Parameters

hDC

Identifies a metafile device-context.

lpHTable

Points to a table of handles associated with the graphic objects (pens, brushes, and so on) in the metafile.

lpMFR

Points to one of the records in the metafile.

nObj

Specifies the number of objects with associated handles in the handle table.

lpClientData

Points to any application-supplied data.

Return Value

This function must return a nonzero value to continue enumeration; to stop enumeration, it must return zero.

Comments

An application must register the function by passing its address to the EnumMetaFile function.

EnumMetaFileProc is a placeholder for the application-supplied function name. The actual name must be exported by including it in an EXPORTS statement in the application's module-definition file.

See Also

EnumMetaFile