phiconlarge
pointer to an array of handles of large icons returned. this parameter can be null.
phiconsmall
pointer to an array of handles of small icons returned. this parameter can be null.
nicons
specifies the count of the number of icons to extract.
return values
if the function succeeds, the return value is the handle to an icon. if the file specified was not an executable file, dll, or icon file, the return value is 1. if no icons were found in the file, the return value is null.
在borland delphi7的shellapi.pas文件中却声明成这样:
{$externalsym extracticonex}
function extracticonex(lpszfile: pchar; niconindex: integer;
var phiconlarge, phiconsmall: hicon; nicons: uint): uint; stdcall;
原型是hicon指针,borland直接声明成hicon。
如要使用这个函数只好重新声明。
给大家一个声明的例子: