HICON ExtractAssociatedIcon( HINSTANCE hInst, // application instance handle LPTSTR lpIconPath, // name of file LPWORD lpiIcon // pointer to icon index );