Windows standard drive Icons

  • Thread starter Thread starter trinitypete
  • Start date Start date
T

trinitypete

Hi all,

I am practicing c#, writing an Explorer Style app. Does
anyone know a way of obtaining the standard explorer style
icons from the system/framework so that depending on the
OS i.e. Win Nt/Win XP the native icons for the OS can be
used?

Thaks in advance Pete.
 
I remember a program some years back that would strip Icons out of DLL's and thats where the Windows icons are stored (As resources in the some DLL's) Unfortunately nothing
is documented as to which DLL's you would need to use...

There are some tools here for extracting Icons

http://www.smesource.com/Downloads/

so ther eis probably souce code (Probably C++ or VB) out there on the web that you might convert.

Also there is an API "ExtractIconEx " that might also suit the bill.

http://msdn.microsoft.com/library/d...IconReference/IconFunctions/ExtractIconEx.asp

This link as well provides some useful information as well as other links.

http://www.partware.com/ebooks/api/ref/e/extracticonex.html

Knowing which files contain the icons however is still the problem..

Scot Rose, MCSD
Microsoft Visual Basic Developer Support
Email : (e-mail address removed) <Remove word online. from address>

This posting is provided “AS IS”, with no warranties, and confers no rights.

Get Secure!
http://www.microsoft.com/security
http://www.microsoft.com/protect


--------------------
 
Scott,

To strip the icons out of the DLL's ? Isn't there going to
be some intellectual copyright?

Thanks, Pete.
-----Original Message-----
I remember a program some years back that would strip
Icons out of DLL's and thats where the Windows icons are
stored (As resources in the some DLL's) Unfortunately
nothing
is documented as to which DLL's you would need to use...

There are some tools here for extracting Icons

http://www.smesource.com/Downloads/

so ther eis probably souce code (Probably C++ or VB) out
there on the web that you might convert.
 
Beats me... You just asked IF it could be done and I pointed out way it could be... For Copyright information and what is and is not allowed you would need to check the Microsoft
site that concerns this type of thing. There is a Permission form for using Copyrighted materials that may be what you are looking for.. ( http://www.microsoft.com/permission/ ) but
this is a question that is definately out of the scope of what I am qualified to answer in a newsgroup..


Scot Rose, MCSD
Microsoft Visual Basic Developer Support
Email : (e-mail address removed) <Remove word online. from address>

This posting is provided “AS IS”, with no warranties, and confers no rights.

Get Secure!
http://www.microsoft.com/security
http://www.microsoft.com/protect


--------------------
 
Thanks for the info scott.

Pete.
-----Original Message-----
Beats me... You just asked IF it could be done and I
pointed out way it could be... For Copyright information
and what is and is not allowed you would need to check the
Microsoft
site that concerns this type of thing. There is a
Permission form for using Copyrighted materials that may
be what you are looking for.. (
http://www.microsoft.com/permission/ ) but
this is a question that is definately out of the scope of
what I am qualified to answer in a newsgroup..
 
You can use PInvoke and call SHGetFileInfo with SHGFI_ICON to get a drive's
icon (note that different drives have different icons).

Jerry
 
Back
Top