We need you!

We're working hard on the next version of Developer Fusion. Let us know what you think we should be up to!

Members

Technology Zones

Articles

Hosted By

MaximumASP

Info

Rated
Read 48,487 times

Contents

Related Categories

File Extensions: Finding the default Icon - How it's all done

couling

How it's all done

All the registry keys that we are going to use are stored under HKEY_CLASSES_ROOT. It stores them in this form:

  • Every file extension is given a key. This key will be exactly the same as the file extension including the dot (eg: HKEY_CLASSES_ROOT\.bmp).
  • This key’s "default" value refers to an application’s registry key:
  • Every application is given a key (or a group of keys if the program is associated with multiple file types). This is not necessarily the same as its “EXE name”, but in this key, among other things, there is a value that contains the location of the default file icon for this file type. For example: a “.frm” file. You should recognise this as a VB form.

This is what my registry has to say about a “.frm”:

Your registry may differ, but the format should still be the same.  The important thing to notice is how we got from “.frm” to “C:\program files\Microsoft Visual Studio\VB98\vb6.exe,1”

Just graduated from the University of Birmingham. Computer Science and Artifical Intelligence 2.2 Languages: Java c++ PHP Prolog VB6

Comments

  • Re: [2982] File Extensions: Finding the default Icon

    Posted by Anishsane on 22 May 2007

    does any one want to extract image used for icon?
    the icon may be in an exe file or dll file.
    this is a veryyyyyyyy long way, and there are ready softwares available for it.

    but it is dis...

  • About lessons and codes

    Posted by PATHFINDER on 16 Jul 2005

    I'll never be thankful enough to have decided to join Developer Fusion. It's real fun to have what's needed to start with programming language. I am really amazed of the progresses i have done in two ...

  • INTERESTING

    Posted by Tochukwu on 02 Jun 2005

    THAT WAS A NICE JOB.

    I AM AN UNDERGRADUATE STUDYING COMPUTER PRORAMMING. i WILL NEED MORE EXPLANATION ON THIS TOPIC.

    tOCHUKWU.

  • Posted by jab on 18 Sep 2003

    Absolutely brilliant! Works a treat.

    THANKS VERY MUCH!!!

  • Posted by couling on 13 Sep 2003

    Looks like my reply is too large to fit in one post so I've put it [url="http://mysite.freeserve.com/visualbasic/16.htm"]here[/url].

    Hope this helps :cool: