Laaca
Czech republic, 14.09.2010, 15:33 |
Icons in NE and PE executables (Developers) |
Hi!
Would like to extend my fileselector with new feature - to be able to display the icons in windows executables like windows do.
The NE format I didn't examine yet, the PE format a little bit yes but it is a mess.
I can locate the PE signature inside exe but I don't know ho to locate .rsrc section and inside this section the file icon. --- DOS-u-akbar! |
Rugxulo
Usono, 15.09.2010, 23:08
@ Laaca
|
Icons in NE and PE executables |
> Hi!
> Would like to extend my fileselector with new feature - to be able to
> display the icons in windows executables like windows do.
> The NE format I didn't examine yet, the PE format a little bit yes but it
> is a mess.
> I can locate the PE signature inside exe but I don't know ho to locate
> .rsrc section and inside this section the file icon.
http://www.programmersheaven.com/download/923/download.aspx
http://www.wotsit.org/ |
RayeR
CZ, 16.09.2010, 00:51
@ Rugxulo
|
Icons in NE and PE executables |
> http://www.wotsit.org/
Wow, really huge fformats DB --- DOS gives me freedom to unlimited HW access. |
DOS386
13.10.2010, 03:27
@ Laaca
|
Icons in NE and PE executables |
> extend my fileselector with new feature
of what app?
> the PE format a little bit yes but it is a mess
Thanks Bill
> I can locate the PE signature inside exe but I don't know ho to locate
> .rsrc section and inside this section the file icon
WRONG (you and all the PE "specifications").
There is a directory of 16 entries, at index 2 there is the resource area (NOT section), this may be anywhere, so you have to read the section table too, find the section where the resource area is, and be prepared to the case that the resource area is invalid (partially inside a section, in no section, ...), so your app may NOT hang, corrupt memory, Page-Fault, GP-Fault, Triple-Fault or behave badly in whatever way if the PE is invalid in whatever way, just do like I did im my great UPET app (untouched for 8 months, damn lack of time ), just be assured that I will feed in corrupt PE's if you release your app one day. --- This is a LOGITECH mouse driver, but some software expect here
the following string:*** This is Copyright 1983 Microsoft *** |
Laaca
Czech republic, 13.10.2010, 12:03
@ DOS386
|
Icons in NE and PE executables |
I gave it up.
I found some pascal source how to read resources from NE executables and it is extremely complicated. Sure - if I read only file icon it would be much simplier but I don't have nor time nor interrest to examine such mess. Nevertheless it will probably not work for PE files. --- DOS-u-akbar! |
DOS386
15.10.2010, 03:01
@ Laaca
|
Icons in NE and PE executables |
> I gave it up.
Good If anyone needs info on PE&NE&Co: 1'631'028 Byte's --- This is a LOGITECH mouse driver, but some software expect here
the following string:*** This is Copyright 1983 Microsoft *** |