Function Reference


_WinAPI_GetEnhMetaFileDescription

Retrieves an optional text description from an enhanced-format metafile

#include <WinAPIGdi.au3>
_WinAPI_GetEnhMetaFileDescription ( $hEmf )

Parameters

$hEmf Handle to the enhanced metafile.

Return Value

Success: 0 if the optional text description does not exist, otherwise an array that contains the following information:
    [0] - Application name
    [1] - Picture name
Failure: sets the @error flag to non-zero.

See Also

Search GetEnhMetaFileDescription in MSDN Library.

Example

#include <WinAPIGdi.au3>

Local $hEmf = _WinAPI_GetEnhMetaFile(@ScriptDir & '\Extras\Flag.emf')
Local $aData = _WinAPI_GetEnhMetaFileDescription($hEmf)
_WinAPI_DeleteEnhMetaFile($hEmf)

ConsoleWrite('Application: ' & $aData[0] & @CRLF)
ConsoleWrite('Picture:     ' & $aData[1] & @CRLF)