ExtractAssociatedIcon The ExtractAssociatedIcon function returns a handle to an indexed icon found in a file or an icon found in an associated executable file. HICON ExtractAssociatedIcon( HINSTANCE hInst, // application instance handle LPTSTR lpIconPath, // file name LPWORD lpiIcon // icon index);ExtractAssociatedIcon( Application.Handle, ('c:\windows\calc.exe'), lpiIcon );
memset(&shfi,0,sizeof(shfi));
SHGetFileInfo("foo.bmp",
FILE_ATTRIBUTE_NORMAL,
&shfi, sizeof(shfi),
SHGFI_ICON|SHGFI_USEFILEATTRIBUTES);
The ExtractAssociatedIcon function returns a handle to an indexed icon found in a file or an icon found in an associated executable file. HICON ExtractAssociatedIcon(
HINSTANCE hInst, // application instance handle
LPTSTR lpIconPath, // file name
LPWORD lpiIcon // icon index);ExtractAssociatedIcon( Application.Handle, ('c:\windows\calc.exe'),
lpiIcon );