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 );
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.
The wingdi.h header defines GetMetaFile as an alias which 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 not encoding-neutral can lead to mismatches that result in compilation or runtime errors. For more information, see Conventions for Function Prototypes.
|Header||wingdi.h (include Windows.h)|