![]() |
Pe Header In C Language.
I am new in assambly, i have a project and need to write in c language. Please help
---------------------------------------------------------------------------------------------------------------------------------------------------- 1. Accepts 1 parameter. The parameter is the filename to be processed. If there are no parameters, or if there are more than 1 parameters, show an error message. 2. Opens the file and verify if its a PE file. A PE File has the following characteristics: MZ signature at offset 00h..01h A value > 0x40 at offset 18h PE signature at offset pointed to by value in offset 3Ch ** You can use either fread/ReadFile/ReadFileEx/CreateFileMapping to read the contents of the file. 3. Loads the PE header, PE Optional Header and Data directory into a structure and display the values inside this table. Please refer to the attached excel sheet for the PE Header documentation. You can start your structure for the PE Header as follows: Code:
Sample Output: PE-Dump of "calc.exe" Code:
|
| All times are GMT +5.5. The time now is 18:27. |