ReactOS  0.4.15-dev-3453-gff89651
pe.h
Go to the documentation of this file.
1 #ifndef _LIBMACH_PE_H_
2 #define _LIBMACH_PE_H_
3 
4 #include "compat.h"
5 
6 struct DwarfBlock;
8 
9 typedef struct _Pe {
10  void *fd;
11  u16int (*e2)(const unsigned char *data);
12  u32int (*e4)(const unsigned char *data);
13  u64int (*e8)(const unsigned char *data);
16  int (*loadsection)(struct _Pe *pe, char *name, struct DwarfBlock *b);
17  int nsections;
19 } Pe;
20 
21 Pe *peopen(const char *name);
22 int loaddisksection(struct _Pe *pe, char *name, struct DwarfBlock *b);
23 u16int peget2(const unsigned char *ptr);
24 u32int peget4(const unsigned char *ptr);
25 u64int peget8(const unsigned char *ptr);
26 void pefree(struct _Pe *pe);
27 ulong pefindrva(struct _IMAGE_SECTION_HEADER *SectionHeader, int NumberOfSections, ulong TargetPhysical);
28 int GetStrnlen(const char *string, int maxlen);
29 
30 #define ANSI_NAME_STRING(s) ((PANSI_STRING)((s)->Name))
31 
32 #endif/*_LIBMACH_PE_H_*/
ulong pefindrva(struct _IMAGE_SECTION_HEADER *SectionHeader, int NumberOfSections, ulong TargetPhysical)
Definition: pe.c:126
u16int(* e2)(const unsigned char *data)
Definition: pe.h:16
ulong datastart
Definition: pe.h:15
void * fd
Definition: pe.h:15
Definition: pe.h:14
void pefree(struct _Pe *pe)
Definition: pe.c:109
struct _Pe Pe
int GetStrnlen(const char *string, int maxlen)
Definition: pe.c:103
u64int peget8(const unsigned char *ptr)
Definition: pe.c:43
static PVOID ptr
Definition: dispmode.c:27
int loaddisksection(struct _Pe *pe, char *name, struct DwarfBlock *b)
Definition: pe.c:72
unsigned int u32int
Definition: compat.h:13
u32int peget4(const unsigned char *ptr)
Definition: pe.c:39
int(* loadsection)(struct _Pe *pe, char *name, struct DwarfBlock *b)
Definition: pe.h:22
#define b
Definition: ke_i.h:79
u64int(* e8)(const unsigned char *data)
Definition: pe.h:18
GLboolean GLboolean GLboolean b
Definition: glext.h:6204
ulong imagesize
Definition: pe.h:19
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data
Definition: gl.h:1950
u16int peget2(const unsigned char *ptr)
Definition: pe.c:35
int nsections
Definition: pe.h:23
ulong imagebase
Definition: pe.h:19
unsigned short u16int
Definition: compat.h:11
unsigned long ulong
Definition: linux.h:275
ulong codestart
Definition: pe.h:15
Pe * peopen(const char *name)
ulong loadbase
Definition: pe.h:19
u32int(* e4)(const unsigned char *data)
Definition: pe.h:17
struct _IMAGE_SECTION_HEADER * sect
Definition: pe.h:24
Definition: name.c:38
unsigned int(__cdecl typeof(jpeg_read_scanlines))(struct jpeg_decompress_struct *
Definition: typeof.h:31
unsigned long long u64int
Definition: compat.h:15
GLuint const GLchar * name
Definition: glext.h:6031