Home | Info | Community | Development | myReactOS | Contact Us
ReactOS Development > Doxygenpe.h
Go to the documentation of this file.
00001 #ifndef _LIBMACH_PE_H_ 00002 #define _LIBMACH_PE_H_ 00003 00004 #include "compat.h" 00005 00006 struct DwarfBlock; 00007 typedef struct _IMAGE_SECTION_HEADER PeSect; 00008 00009 typedef struct _Pe { 00010 void *fd; 00011 u16int (*e2)(const unsigned char *data); 00012 u32int (*e4)(const unsigned char *data); 00013 u64int (*e8)(const unsigned char *data); 00014 ulong imagebase, imagesize, loadbase; 00015 ulong codestart, datastart; 00016 int (*loadsection)(struct _Pe *pe, char *name, struct DwarfBlock *b); 00017 int nsections; 00018 struct _IMAGE_SECTION_HEADER *sect; 00019 } Pe; 00020 00021 Pe *peopen(const char *name); 00022 int loaddisksection(struct _Pe *pe, char *name, struct DwarfBlock *b); 00023 u16int peget2(const unsigned char *ptr); 00024 u32int peget4(const unsigned char *ptr); 00025 u64int peget8(const unsigned char *ptr); 00026 void pefree(struct _Pe *pe); 00027 ulong pefindrva(struct _IMAGE_SECTION_HEADER *SectionHeader, int NumberOfSections, ulong TargetPhysical); 00028 int GetStrnlen(const char *string, int maxlen); 00029 00030 #define ANSI_NAME_STRING(s) ((PANSI_STRING)((s)->Name)) 00031 00032 #endif/*_LIBMACH_PE_H_*/ Generated on Sun May 27 2012 04:36:20 for ReactOS by
1.7.6.1
|