📄 wpw_wapi_icon_95.html
字号:
<HTML>
<HR><A NAME=WINAPI_icon_extract>
Return to <a href="wpw_wapi_index.html#TOC">Table of Contents for this chapter</a><br>
<H4>Subject: How to extract an icon from .exe or .dll file?</H4><PRE>
In article <199507121921.AA04239@cs.rpi.edu>
wiseb@cs.rpi.edu "Bowden Wise" writes:
>Now, what I want to do is obtain the icon indicated by
>- icon path
>- icon index
>
>Icon path can be:
>- an executable file;
>- an icon file;
>- unspecified; in which case the correct icon is obtained by:
> - if command line is an EXE, use first icon in this file
> - if command line specifies an associated file, use first icon in
> associated exe file (from registration database)
> - otherwise use windows default icon
>
>Does anyone know how to do this?
Take a look at the "ExtractIcon" API!
Chris
--
--------------------------------------------------------------------------
| Chris Marriott, Warrington, UK | Author of SkyMap v2 shareware |
| chris@chrism.demon.co.uk | astronomy program for Windows. |
| For more info, see http://www.winternet.com/~jasc/skymap.html |
| Author member of Association of Shareware Professionals (ASP) |
--------------------------------------------------------------------------
</PRE>
</HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -