GetMetaFileA function (wingdi.h)
[GetMetaFile is no longer available for use as of Windows 2000. Instead, use GetEnhMetaFile.]
The GetMetaFile function creates a handle that identifies the metafile stored in the specified file.
Syntax
HMETAFILE GetMetaFileA(
[in] LPCSTR lpName
);
Parameters
[in] lpName
A pointer to a null-terminated string that specifies the name of a metafile.
Return value
If the function succeeds, the return value is a handle to the metafile.
If the function fails, the return value is NULL.
Remarks
This function is not implemented in the Win32 API. It is provided for compatibility with 16-bit versions of Windows. In Win32 applications, use the GetEnhMetaFile function.
Note
The wingdi.h header defines GetMetaFile as an alias that automatically selects the ANSI or Unicode version of this function based on the definition of the UNICODE preprocessor constant. Mixing usage of the encoding-neutral alias with code that is not encoding-neutral can lead to mismatches that result in compilation or runtime errors. For more information, see Conventions for Function Prototypes.
Requirements
Requirement | Value |
---|---|
Target Platform | Windows |
Header | wingdi.h (include Windows.h) |
Library | Gdi32.lib |
DLL | Gdi32.dll |