Metafile::GetMetafileHeader(HMETAFILE,constWmfPlaceableFileHeader*,MetafileHeader*) method (gdiplusheaders.h)

The Metafile::GetMetafileHeader method gets the metafile header of this metafile.

Syntax

Status GetMetafileHeader(
  HMETAFILE                    hWmf,
  const WmfPlaceableFileHeader *wmfPlaceableFileHeader,
  MetafileHeader               *header
);

Parameters

hWmf

Window handle to a metafile.

wmfPlaceableFileHeader

Pointer to a placeable metafile header.

header

Pointer to a MetafileHeader object that receives the copy of the metafile header.

Return value

Type: Status

If the method succeeds, it returns Ok, which is an element of the Status enumeration.

If the method fails, it returns one of the other elements of the Status enumeration.

Requirements

Requirement Value
Header gdiplusheaders.h

See also

Metafile

Metafile::Metafile

MetafileHeader

Loading and Displaying Metafiles