Function Reference


_WinAPI_ExtractIconEx

Creates an array of handles to large or small icons extracted from a file

#include <WinAPIIcons.au3>
_WinAPI_ExtractIconEx ( $sFilePath, $iIndex, $paLarge, $paSmall, $iIcons )

Parameters

$sFilePath Name of an executable file, DLL, or icon file from which icons will be extracted
$iIndex Specifies the 0-based index of the first icon to extract
$paLarge Pointer to an array of icon handles that receives handles to the large icons extracted from the file.
If this parameter is 0, no large icons are extracted from the file.
$paSmall Pointer to an array of icon handles that receives handles to the small icons extracted from the file.
If this parameter is 0, no small icons are extracted from the file.
$iIcons Specifies the number of icons to extract from the file

Return Value

Returns the number of icons contained in the specified file, when $iIndex is -1, $paLarge parameter is 0, and $paSmall is 0.
Otherwise, the return value is the number of icons successfully extracted from the file.

See Also

Search ExtractIconEx in MSDN Library.

Example

#include <MsgBoxConstants.au3>
#include <WinAPIIcons.au3>

MsgBox($MB_SYSTEMMODAL, "ExtractIconEx", "# of Icons in file shell32.dll: " & _WinAPI_ExtractIconEx("shell32.dll", -1, 0, 0, 0))