Board index » delphi » Getting default icons (Registry file-types)

Getting default icons (Registry file-types)

How to get the default icon from a file-type association?

Example:
HKEY_CLASSES_ROOT\ Word.Document.6\DefaultIcon => Default value =
"D:\office95\Winword\WINWORD.EXE,1"

Like the explorer-icons on the left:
-FindResource??
-LoadResource/Icon???

mora...@xs4all.nl

 

Re:Getting default icons (Registry file-types)


Quote
"Midland Automatiseringsgroep" <midl...@xs4all.nl> wrote:
>How to get the default icon from a file-type association?

>Example:
>HKEY_CLASSES_ROOT\ Word.Document.6\DefaultIcon => Default value =
>"D:\office95\Winword\WINWORD.EXE,1"

>Like the explorer-icons on the left:
>-FindResource??
>-LoadResource/Icon???

No need to bother yourself with the registry. Take a look at the help
on the SHGetFileInfo function (w95 only). This function can do exactly
what you want.

Willem Nieuwenhuis
Ilwis system developer
ITC
wil...@itc.nl

Re:Getting default icons (Registry file-types)


"ExtractAssociatedIcon" is it

Ciao, Mike

Midland Automatiseringsgroep <midl...@xs4all.nl> schrieb im Beitrag
<01bc977c$475c4720$dd216dc2@mag>...

Quote
> How to get the default icon from a file-type association?

> Example:
> HKEY_CLASSES_ROOT\ Word.Document.6\DefaultIcon => Default value =
> "D:\office95\Winword\WINWORD.EXE,1"

> Like the explorer-icons on the left:
> -FindResource??
> -LoadResource/Icon???

> mora...@xs4all.nl

Other Threads