Log in

View Full Version : Little VC/PE help ;P


Bengaly
May 26th, 2002, 20:41
heya all,
recently i started coded alittle PE viewer (mini project) - probably for fun and knowledge in Visual-C++ (v6). / PE
i am now dealing with the Section header, so i want to read
the Section's names and nfo.
though i dont really know how to read the section nfo..
i have started this code so far:

for(i=0;i<file_header.NumberOfSections;i++)
{
// reading section's name/nfo and put into list box
SendDlgItemMessage(hWnd,IDC_SEC,LB_ADDSTRING, 0,(LPARAM));
}

i have deal with the other headers already, only this little prob
hope any1 knows how too,
if not np
cya all

foxthree
May 26th, 2002, 21:14
Hi Bengaly:

Look into Pietreks' PEDump source... It has whatever you need and more. Can be found in MSDN.

Signed,
-- FoxThree

ZaiRoN
May 26th, 2002, 21:15
hi Bengaly,
there is a tutorial on Iczelion site that could help you.
here is the link:
http://spiff.tripnet.se/~iczelion/pe-tut5.html

hope this helps...

ZaiRoN

Bengaly
May 26th, 2002, 21:54
thnx for info fox3 / zairon,
i shall keep looking for more stuff..(examples)

i uploaded the "so far" pe viewer just to see if u think i shall add/remove stuff, or any bad/good commets.
greets
Ben

ZaiRoN
May 26th, 2002, 22:57
hi Bengaly...
your proggie is really nice!

>just to see if u think i shall add...
what else? there are all the informations about a file.
just a little thing: disable buttons if no file is loaded.
now, you have to complete the proggie with the section's info, good work!

bye
ZaiRoN

ps. what 'play' and 'stop' stands for?

Bengaly
May 26th, 2002, 23:08
thnx zairon.
i will look at icezelion's pe examples hopefully to convet to C
and um..Play/Stop buttons hehe are for playing / stoping the music stored in the app
it just stuck there from previous stuff ;P
now u have pe viewer and a jokebox ;D
cya all

ZaiRoN
May 27th, 2002, 14:23
a jukebox...lol
>...hopefully to convet to C..
no need to translate; you can do it in asm using __asm directive.
if you have problems...make a whistle.

bye
ZaiRoN