Just asking for some help to point in me in the correct direction.

I want to extract icons from DLLS or EXEs, I think I can already do that using privateExtractIcons or ExtractIcons APIs.

I believe I just need to use the handle from the above APIs to place the resulting image into a bitmap. The aim then being to load that bitmap into a collection using the scripting.Dictionary object so I can extract that image as I require.

Background is that retaining any transparency is important and note I'm not writing it into a stdPicture object but instead writing it to the screen using GDI+. I have all that covered but the conversion from icon handle to bitmap I am deficient.

As long as I can load the bitmap into the dictionary I should be good...

I haven't written any code yet but I am not being lazy - I just want the benefit of your knowledge to prevent me going down the wrong path (I am doing some research but limited time available here).

Can anyone give me a pointer as to a good method to convert a handle to an icon to a bitmap using GDI+ or similar retaining any alpha blending, I'd really appreciate the leg up.