Header inclusion feng-shui (each file only includes what it needs)

This commit is contained in:
Maxime Meignan
2021-12-31 17:29:14 +01:00
parent 4ae1872ae9
commit fa75dd9ec1
29 changed files with 79 additions and 84 deletions
+4
View File
@@ -1,3 +1,7 @@
/*
* Functions that browse the PEB structure instead of relying on GetModuleHandle
*/
#include "Undoc.h"
#include "PEBBrowse.h"
#include <stdio.h>
+5
View File
@@ -1,3 +1,8 @@
/*
* Full library whose job is to parse PE structures, on disk, on memory and even in another process memory
* Among other things, reimplements GetProcAddress and the PE relocation process
*/
#include "PEParser.h"
#include <stdio.h>
#include <assert.h>
+9 -2
View File
@@ -1,7 +1,14 @@
// FreeHookers.cpp : This file contains the 'main' function. Program execution begins and ends there.
//
/*
* All the logic that detects, resolves, patch userland hooks and other related structures
*/
#include <Windows.h>
#include <PathCch.h>
#include <stdio.h>
#include "UserlandHooks.h"
#include "PEBBrowse.h"
#include "Undoc.h"
#define NT_SUCCESS(StatCode) ((NTSTATUS)(StatCode)>=0)