ReactOS Fundraising Campaign 2012
 
€ 4,410 / € 30,000

Information | Donate

Home | Info | Community | Development | myReactOS | Contact Us

  1. Home
  2. Community
  3. Development
  4. myReactOS
  5. Fundraiser 2012

  1. Main Page
  2. Alphabetical List
  3. Data Structures
  4. Directories
  5. File List
  6. Data Fields
  7. Globals
  8. Related Pages

ReactOS Development > Doxygen

pe.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 doxygen 1.7.6.1

ReactOS is a registered trademark or a trademark of ReactOS Foundation in the United States and other countries.