ReactOS
0.4.15-dev-2361-g32428a3
|
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <typedefs.h>
#include <pecoff.h>
#include "../../dll/win32/dbghelp/compat.h"
Go to the source code of this file.
Enumerations | |
enum | fixup_mode { MODE_LOADCONFIG, MODE_KERNELDRIVER, MODE_WDMDRIVER, MODE_KERNELDLL, MODE_KERNEL } |
Functions | |
void * | rva_to_ptr (unsigned char *buffer, PIMAGE_NT_HEADERS nt_header, DWORD rva) |
static void | error (const char *message,...) |
static void | fix_checksum (unsigned char *buffer, long len, PIMAGE_NT_HEADERS nt_header) |
static int | add_loadconfig (unsigned char *buffer, PIMAGE_NT_HEADERS nt_header) |
static int | driver_fixup (int mode, unsigned char *buffer, PIMAGE_NT_HEADERS nt_header) |
static void | print_usage (void) |
int | main (int argc, char **argv) |
Variables | |
static const char * | g_ApplicationName |
static const char * | g_Target |
Enumerator | |
---|---|
MODE_LOADCONFIG | |
MODE_KERNELDRIVER | |
MODE_WDMDRIVER | |
MODE_KERNELDLL | |
MODE_KERNEL |
Definition at line 27 of file pefixup.c.
|
static |
Definition at line 81 of file pefixup.c.
Referenced by main().
|
static |
Definition at line 133 of file pefixup.c.
Referenced by main().
Definition at line 53 of file pefixup.c.
Referenced by add_loadconfig(), and main().
|
static |
Definition at line 193 of file pefixup.c.
void* rva_to_ptr | ( | unsigned char * | buffer, |
PIMAGE_NT_HEADERS | nt_header, | ||
DWORD | rva | ||
) |
Definition at line 36 of file pefixup.c.
Referenced by add_loadconfig().
Definition at line 24 of file pefixup.c.
Referenced by error(), main(), and print_usage().