Results 1 to 5 of 5

Thread: I need to know the specs of Windows icon *.ico files

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Oct 2008
    Posts
    1,238

    I need to know the specs of Windows icon *.ico files

    I want to be able to make a program that can extract icons that are 32x32 or 48x48 size. I have found free icon extractors that can take icons out of EXE files, but since ALL of the free extractors I've found don't have decent documentation on their websites (not even to tell me if they handle 32x32 or 48x48 icons) I assume the programs are made on the quick and ONLY handle 32x32 icons. On the other hand, ALL of the ones that specifically state the size of the icons they can extract (espcially if that size is 48x48) are for sale, and include watermarks on the extracted icons in the trial version of the software. I'm tempted to do the illegal thing and try to find a keygen for the software, but I want to stay legal. So I need to know the specs of the EXACT format of Windows *.ico files, as well as the way *.ico files are stored inside of *.exe files, because I plan to use VB6 to program my OWN icon extractor software to meet my needs. Can someone please provide me with the info I'll need here, before I embark on what might be a very tough program to make?

  2. #2
    "Digital Revolution"
    Join Date
    Mar 2005
    Posts
    4,471

    Re: I need to know the specs of Windows icon *.ico files

    Icons are stored in resources...

    You can try this or this.

  3. #3

    Thread Starter
    Frenzied Member
    Join Date
    Oct 2008
    Posts
    1,238

    Re: I need to know the specs of Windows icon *.ico files

    Quote Originally Posted by DigiRev View Post
    Icons are stored in resources...

    You can try this or this.
    Sorry, but I'm not interested in VB code. I want to make my own code so I know what I'm doing with it. What I need help for that I'm asking for help is only 2 things:
    1) what are the specs for the *.ico icon file format
    2) what are the official specs for how icons are to be stored in a resource file (such as icons embeded in an exe file)

  4. #4
    Member BytePtr's Avatar
    Join Date
    Apr 2007
    Location
    EE
    Posts
    44

    Re: I need to know the specs of Windows icon *.ico files

    Google!!

    http://www.wotsit.org/ contains specs for all your needs.

    The key is here to know how to use Google.
    Last edited by BytePtr; Aug 26th, 2009 at 03:50 AM.
    Please rate my post if it has been helpful.
    Mark the thread as [Resolved] when your problem is solved!


  5. #5
    VB-aholic & Lovin' It LaVolpe's Avatar
    Join Date
    Oct 2007
    Location
    Beside Waldo
    Posts
    19,541

    Re: I need to know the specs of Windows icon *.ico files

    As BytePtr suggested: wotsit. I learned all I needed to know from searching MSDN for icon specs.

    You will have to deal with PNG images embedded in Vista icon files. Though most PNG images are sized 256x256, I have seen PNGs in other sizes embedded in icons. What does this mean? It means you should be able to identify a PNG within the icon structure, extract the PNG data and pass it off to another routine for processing if desired. And if no desire to use the PNG, you still need to recognize them so your icon parser can skip that entry and doesn't crash. Tip: PNGs in Vista icons contain the PNG signature 8 bytes as the first 8 bytes where you'd expect the bitmap info header.

    BTW: You are not being "legal" by extracting icons from executables & neither is any resource hacker. Those icons and other resources may be copyrighted and extracting them may be theft.
    Insomnia is just a byproduct of, "It can't be done"

    Classics Enthusiast? Here's my 1969 Mustang Mach I Fastback. Her sister '67 Coupe has been adopted

    Newbie? Novice? Bored? Spend a few minutes browsing the FAQ section of the forum.
    Read the HitchHiker's Guide to Getting Help on the Forums.
    Here is the list of TAGs you can use to format your posts
    Here are VB6 Help Files online


    {Alpha Image Control} {Memory Leak FAQ} {Unicode Open/Save Dialog} {Resource Image Viewer/Extractor}
    {VB and DPI Tutorial} {Manifest Creator} {UserControl Button Template} {stdPicture Render Usage}

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width