ReactOS 0.4.15-dev-8207-gd73a838
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 _CoffSymbol {
11 char *name;
14typedef struct _Pe {
15 void *fd;
16 u16int (*e2)(const unsigned char *data);
17 u32int (*e4)(const unsigned char *data);
18 u64int (*e8)(const unsigned char *data);
22 int (*loadsection)(struct _Pe *pe, char *name, struct DwarfBlock *b);
27#define E_SYMNMLEN 8
28#include <pshpack1.h>
29typedef struct {
30 union {
31 char e_name[E_SYMNMLEN];
32 struct {
33 unsigned long e_zeroes;
34 unsigned long e_offset;
35 } e;
36 } e;
37 unsigned long e_value;
38 short e_scnum;
39 unsigned short e_type;
40 unsigned char e_sclass;
41 unsigned char e_numaux;
43#include <poppack.h>
45#define C_EXT 2
46#define C_STAT 3
47#define DT_FCN 0x40
49Pe *peopen(const char *name);
50int loaddisksection(struct _Pe *pe, char *name, struct DwarfBlock *b);
51int loadmemsection(struct _Pe *pe, char *name, struct DwarfBlock *b);
52u16int peget2(const unsigned char *ptr);
53u32int peget4(const unsigned char *ptr);
54u64int peget8(const unsigned char *ptr);
55void pefree(struct _Pe *pe);
56ulong pefindrva(struct _IMAGE_SECTION_HEADER *SectionHeader, int NumberOfSections, ulong TargetPhysical);
57int GetStrnlen(const char *string, int maxlen);
59#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 e
Definition: ke_i.h:82
#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)
int loadmemsection(struct _Pe *pe, char *name, struct DwarfBlock *b)
Definition: pe.c:81
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
#define E_SYMNMLEN
Definition: pe.h:27
struct _CoffSymbol CoffSymbol
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:29
unsigned long e_zeroes
Definition: pe.h:33
unsigned long e_offset
Definition: pe.h:34
unsigned char e_sclass
Definition: pe.h:40
unsigned long e_value
Definition: pe.h:37
unsigned short e_type
Definition: pe.h:39
short e_scnum
Definition: pe.h:38
unsigned char e_numaux
Definition: pe.h:41
Definition: pe.h:9
ulong address
Definition: pe.h:10
char * name
Definition: pe.h:11
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
CoffSymbol * symtab
Definition: pe.h:21
u16int(* e2)(const unsigned char *data)
Definition: pe.h:16
int(* loadsection)(struct _Pe *pe, char *name, struct DwarfBlock *b)
Definition: pe.h:22
ulong nsymbols
Definition: pe.h:20
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
int nsections
Definition: pe.h:23
Definition: name.c:39