Zitat:
The ExtractAssociatedIcon function first looks for the indexed icon in the file specified by lpIconPath. If the function cannot obtain the icon
handle from that file, and the file has an associated executable file, it looks in that executable file for an icon. Associations with executable files are based on file name extensions, are stored in the per-user part of the registry, and can be defined using File Manager's Associate command.
Also, die Funktion sucht immer nur das
Standart zugewiesene Icon. Möchtest du allerdings selber wählen, dann schaue dir mal die
API Funktion
ExtractIconEx an.