GetMetaFileW 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.
HMETAFILE GetMetaFileW(
[in] LPCWSTR lpName
);
[in] lpName
A pointer to a null-terminated string that specifies the name of a metafile.
If the function succeeds, the return value is a handle to the metafile.
If the function fails, the return value is NULL.
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.
Requirement | Value |
---|---|
Target Platform | Windows |
Header | wingdi.h (include Windows.h) |
Library | Gdi32.lib |
DLL | Gdi32.dll |