mirror of
https://github.com/HyperDbg/HyperDbg.git
synced 2026-07-18 05:24:47 +00:00
111 lines
2.1 KiB
C
111 lines
2.1 KiB
C
|
|
/**
|
|
* @file pch.h
|
|
* @author Sina Karvandi (sina@hyperdbg.org)
|
|
* @brief Headers of Message logging and tracing
|
|
* @details
|
|
* @version 0.21
|
|
* @date 2026-06-22
|
|
*
|
|
* @copyright This project is released under the GNU Public License v3.
|
|
*
|
|
*/
|
|
#pragma once
|
|
|
|
#define _NO_CRT_STDIO_INLINE
|
|
|
|
#pragma warning(disable : 4201) // Suppress nameless struct/union warning
|
|
|
|
//
|
|
// Environment headers
|
|
//
|
|
#include "platform/general/header/Environment.h"
|
|
|
|
#ifdef HYPERDBG_ENV_WINDOWS
|
|
|
|
//
|
|
// Windows defined functions
|
|
//
|
|
# include <ntddk.h>
|
|
# include <ntstrsafe.h>
|
|
# include <Windef.h>
|
|
|
|
#endif // HYPERDBG_ENV_WINDOWS
|
|
|
|
//
|
|
// Scope definitions
|
|
//
|
|
#define HYPERDBG_KERNEL_MODE
|
|
#define HYPERDBG_HYPERPERF
|
|
|
|
//
|
|
// Add ia32-doc
|
|
//
|
|
#include "ia32-doc/out/ia32.h"
|
|
|
|
//
|
|
// SDK headers
|
|
//
|
|
#include "SDK/HyperDbgSdk.h"
|
|
|
|
//
|
|
// Configuration
|
|
//
|
|
#include "config/Configuration.h"
|
|
|
|
//
|
|
// Platform independent headers
|
|
//
|
|
#include "platform/kernel/header/PlatformMem.h"
|
|
#include "platform/kernel/header/PlatformIntrinsics.h"
|
|
#include "platform/kernel/header/PlatformBroadcast.h"
|
|
#include "platform/kernel/header/PlatformCpu.h"
|
|
#include "platform/kernel/header/PlatformSpinlock.h"
|
|
#include "platform/kernel/header/PlatformIrql.h"
|
|
#include "platform/kernel/header/PlatformDpc.h"
|
|
#include "platform/kernel/header/PlatformTime.h"
|
|
#include "platform/kernel/header/PlatformDbg.h"
|
|
#include "platform/kernel/header/PlatformIo.h"
|
|
#include "platform/kernel/header/PlatformEvent.h"
|
|
|
|
//
|
|
// Unload function (to be called when the driver is unloaded)
|
|
//
|
|
#include "common/UnloadDll.h"
|
|
|
|
//
|
|
// Hyperlog headers
|
|
//
|
|
#include "components/callback/header/HyperLogCallback.h"
|
|
#include "SDK/imports/kernel/HyperDbgHyperLogIntrinsics.h"
|
|
|
|
//
|
|
// Spinlock headers
|
|
//
|
|
#include "components/spinlock/header/Spinlock.h"
|
|
|
|
//
|
|
// HyperPerf Callbacks
|
|
//
|
|
#include "SDK/modules/HyperPerf.h"
|
|
|
|
//
|
|
// Definition of general tracing types
|
|
//
|
|
#include "api/PerfApi.h"
|
|
|
|
//
|
|
// DPC and broadcasting function headers
|
|
//
|
|
#include "broadcast/DpcRoutines.h"
|
|
#include "broadcast/Broadcast.h"
|
|
|
|
//
|
|
// Export functions
|
|
//
|
|
#include "SDK/imports/kernel/HyperDbgHyperPerf.h"
|
|
|
|
//
|
|
// Global variables
|
|
//
|
|
#include "globals/GlobalVariables.h"
|