🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #195

Re: Loading x48 icons with ExtractIconEx...

#195
From: Remy Lebeau (TeamB)
Date: Wed, 02 Jul 2008 16:47
23 lines
1694 bytes
"Mike Collins" <its@TheBottomOfThePost> wrote in message 
news:486b952d@newsgroups.borland.com...

> Actually, I'll take it one step closer - how to you direct
> SHGetImageList() to a particular execuatble?

You don't.

> From what i can see, it only returns the System / shell icons

Yes, it does.

> i don't see a way of retrieving default icons for a given executable.

Try LoadImage() instead.  It requires an HINSTANCE instead of a filename, 
though.  You can use LoadLibraryEx() with the LOAD_LIBRARY_AS_DATAFILE 
and/or LOAD_LIBRARY_AS_IMAGE_RESOURCE flag to load the .exe file into memory 
without actually executing it, and then pass the returned HMODULE to 
LoadImage().


Gambit 
Technical Details
Message-ID: <486bb18e$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!feeder.erje.net!news.isoc.lu!newsgroups.borland.com!not-for-mail
References: <486960ab@newsgroups.borland.com> <486a5a20$1@newsgroups.borland.com> <486b952d@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,bcbc54027817c35e
X-Google-Attributes: gid10cc67,domainid0,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <486960ab@newsgroups.borland.com> <486a5a20$1@newsgroups.borland.com> <486b952d@newsgroups.borland.com>
Subject: Re: Loading x48 icons with ExtractIconEx...
Date: Wed, 2 Jul 2008 09:47:11 -0700
Lines: 25
Organization: Lebeau Software
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.3138
X-RFC2646: Format=Flowed; Response
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198
NNTP-Posting-Host: 207.178.157.90
Message-ID: <486bb18e$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1215017358 207.178.157.90 (2 Jul 2008 09:49:18 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!feeder.erje.net!news.isoc.lu!newsgroups.borland.com!not-for-mail