Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C++ Win32
Hello guys,
I want to read the PE information from specific exe file, and this required to read from specific address from the file and must specify the length of the data required to read.
 
So, How can I read from specific address from the file?
 
The reason of my demand is to save memory. ( I want to store the data in the stack)
Note: the function I used is ReadFile() and CreateFile().
Posted 6-May-13 21:11pm
Edited 6-May-13 21:12pm
v2

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

Quote:
So, How can I read from specific address from the file?
Using SetFilePointerEx[^] function.
 
Quote:
and must specify the length of the data required to read
That's provided by ReadFile function.
  Permalink  
Comments
Rasool_Ahmed at 7-May-13 2:15am
   
Thanx
CPallini at 7-May-13 2:22am
   
You are welcome.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 OriginalGriff 400
1 Jochen Arndt 200
2 Richard MacCutchan 135
3 DamithSL 95
4 Maciej Los 95
0 OriginalGriff 6,045
1 DamithSL 4,601
2 Maciej Los 4,032
3 Kornfeld Eliyahu Peter 3,480
4 Sergey Alexandrovich Kryukov 3,220


Advertise | Privacy | Mobile
Web04 | 2.8.141220.1 | Last Updated 7 May 2013
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100