mirror of
https://github.com/phra/PEzor
synced 2026-06-08 16:45:36 +00:00
23 lines
731 B
C
Executable File
23 lines
731 B
C
Executable File
#pragma once
|
|
|
|
#define WIN32_LEAN_AND_MEAN
|
|
#include <windows.h>
|
|
//#include <winternl.h>
|
|
#include <stdlib.h>
|
|
#include "ApiSetMap.h"
|
|
|
|
#ifdef _DEBUG_
|
|
#define OUTPUTDBGA(str) puts(str);
|
|
#define OUTPUTDBGW(str) _putws(str);
|
|
#else
|
|
#define OUTPUTDBGA(str)
|
|
#define OUTPUTDBGW(str)
|
|
#endif
|
|
|
|
void RefreshPE();
|
|
HMODULE CustomLoadLibrary(const PWCHAR wszFullDllName, const PWCHAR wszBaseDllName, ULONG_PTR pDllBase);
|
|
HMODULE CustomGetModuleHandleW(const PWSTR wszModule);
|
|
FARPROC WINAPI CustomGetProcAddressEx(HMODULE hModule, const PCHAR lpProcName, PWSTR wszOriginalModule);
|
|
VOID ScanAndFixModule(PCHAR pKnown, PCHAR pSuspect, PWCHAR wszBaseDllName);
|
|
VOID ScanAndFixSection(PCHAR szSectionName, PCHAR pKnown, PCHAR pSuspect, size_t stLength);
|