Metafile.GetMetafileHeader(HMETAFILE, const WmfPlaceableFileHeader*, MetafileHeader*) method

Applies to: desktop apps only

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

Syntax

static Status GetMetafileHeader(
  [in]   HMETAFILE hWmf,
  [in]   const WmfPlaceableFileHeader *wmfPlaceableFileHeader,
  [out]  MetafileHeader *header
);

Parameters

  • hWmf [in]
    Type: HMETAFILE

    Window handle to a metafile.

  • wmfPlaceableFileHeader [in]
    Type: const WmfPlaceableFileHeader*

    Pointer to a placeable metafile header.

  • header [out]
    Type: MetafileHeader*

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

Return value

Type:

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

Minimum supported client

Windows XP, Windows 2000 Professional

Minimum supported server

Windows 2000 Server

Product

GDI+ 1.0

Header

Gdiplusmetafile.h (include Gdiplus.h)

Library

Gdiplus.lib

DLL

Gdiplus.dll

See also

Metafile

Metafile::Metafile

MetafileHeader

Loading and Displaying Metafiles

Metafiles

 

 

Send comments about this topic to Microsoft

Build date: 3/6/2012