函数参考


_WinAPI_ExtractIcon

Extracts an icon from the specified executable file, DLL, or icon file.

#Include <WinAPIEx.au3>
_WinAPI_ExtractIcon ( $sIcon, $iIndex [, $fSmall] )

参数

$sIcon The name of an executable file, DLL, or icon file from which icons will be extracted.
$iIndex The zero-based index of the icon to extract. If this value is a negative number, the function extracts
the icon whose resource identifier is equal to the absolute value of $iIndex.
$fSmall [可选参数] Specifies whether extract a small icon, valid values:
TRUE - Extract a small icon.
FALSE - Extract a large icon. (Default)

返回值

Success Handle to the extracted icon.
失败: 返回 0 并设置 @error 标志为非 0 值.

注意/说明

When you are finished using the icon, destroy it using the _WinAPI_DestroyIcon() function.

相关

详情参考

在MSDN中搜索