#include "compat.h"
#include <pshpack1.h>
#include <poppack.h>
Go to the source code of this file.
◆ ANSI_NAME_STRING
Definition at line 59 of file pe.h.
◆ C_EXT
Definition at line 45 of file pe.h.
◆ C_STAT
Definition at line 46 of file pe.h.
◆ DT_FCN
Definition at line 47 of file pe.h.
◆ E_SYMNMLEN
Definition at line 27 of file pe.h.
◆ CoffSymbol
◆ Pe
◆ PeSect
Definition at line 7 of file pe.h.
◆ PSYMENT
◆ GetStrnlen()
Definition at line 103 of file pe.c.
103 {
105 for (
i = 0;
i < maxlen &&
string[
i];
i++);
107}
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
◆ loaddisksection()
Definition at line 72 of file pe.c.
73{
76 return -1;
77 return readblock(pe->
fd,
b,
s->PointerToRawData,
s->SizeOfRawData);
78}
GLboolean GLboolean GLboolean b
PeSect * pesection(Pe *pe, const char *name)
static int readblock(void *fd, DwarfBlock *b, ulong off, ulong len)
◆ loadmemsection()
Definition at line 81 of file pe.c.
82{
84
86 return -1;
87 DPRINT(
"Loading section %s (ImageBase %x RVA %x)\n",
name, pe->
fd,
s->VirtualAddress);
89 b->len =
s->SizeOfRawData;
90 PCHAR DataSource = ((
char *)pe->
fd) +
s->VirtualAddress;
91 DPRINT(
"Copying to %x from %x (%x)\n", DataSource,
b->data,
b->len);
93
94 return s->SizeOfRawData;
95}
#define RosSymAllocMem(Size)
#define RtlCopyMemory(Destination, Source, Length)
Referenced by RosSymCreateFromMem().
◆ pefindrva()
Definition at line 126 of file pe.c.
126 {
128 DPRINT(
"Finding RVA for Physical %x\n", TargetPhysical);
129 for (
i = 0;
i < NumberOfSections;
i++) {
130 DPRINT(
"Section %d name %s Raw %x Virt %x\n",
133 SectionHeaders[
i].PointerToRawData,
135 if (TargetPhysical >= SectionHeaders[
i].PointerToRawData &&
136 TargetPhysical < SectionHeaders[
i].PointerToRawData + SectionHeaders[
i].SizeOfRawData) {
137 DPRINT(
"RVA %x\n", TargetPhysical - SectionHeaders[
i].PointerToRawData + SectionHeaders[
i].
VirtualAddress);
138 return TargetPhysical - SectionHeaders[
i].PointerToRawData + SectionHeaders[
i].VirtualAddress;
139 }
140 }
142}
#define ANSI_NAME_STRING(s)
_Must_inspect_result_ _In_ WDFDMATRANSACTION _In_ PFN_WDF_PROGRAM_DMA _In_ WDF_DMA_DIRECTION _In_ PMDL _In_ PVOID VirtualAddress
◆ pefree()
Definition at line 109 of file pe.c.
109 {
113 }
116 }
120}
NTSYSAPI VOID NTAPI RtlFreeAnsiString(PANSI_STRING AnsiString)
struct _IMAGE_SECTION_HEADER * sect
◆ peget2()
Definition at line 35 of file pe.c.
◆ peget4()
Definition at line 39 of file pe.c.
◆ peget8()
Definition at line 43 of file pe.c.
43 {
45}
unsigned long long u64int
◆ peopen()