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