Metafile::GetMetafileHeader method

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

Syntax

Status GetMetafileHeader(
  IN HMETAFILE                    hWmf,
  IN const WmfPlaceableFileHeader *wmfPlaceableFileHeader,
  OUT 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

   
Header gdiplusheaders.h

See Also

Metafile

Metafile::Metafile

MetafileHeader

Loading and Displaying Metafiles