Home All Groups Group Topic Archive Search About

Retrieving associated icons from registry

Author
12 Jan 2006 12:19 PM
Progalex
Hi guys..

How can I obtain the associated icon for each file extension registered on
my machine via Visual Basic 2005 code?

Many thanks..
Alessandro

Author
12 Jan 2006 4:29 PM
Carlos J. Quintero [VB MVP]
HI Alessandro,

I don´t know if there is a managed way, but if not you can use this Win32
API:

SHGetFileInfo Function
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/shellcc/platform/shell/reference/functions/shgetfileinfo.asp

--

Best regards,

Carlos J. Quintero

MZ-Tools: Productivity add-ins for Visual Studio 2005, Visual Studio .NET,
VB6, VB5 and VBA
You can code, design and document much faster in VB.NET, C#, C++ or VJ#
Free resources for add-in developers:
http://www.mztools.com


Show quoteHide quote
"Progalex" <Proga***@discussions.microsoft.com> escribió en el mensaje
news:C14F4299-F5ED-4083-B220-55971CA7F01B@microsoft.com...
>
> Hi guys..
>
> How can I obtain the associated icon for each file extension registered on
> my machine via Visual Basic 2005 code?
>
> Many thanks..
> Alessandro