HyperDbg Debugger
Loading...
Searching...
No Matches
PlatformDbg.c File Reference

Implementation of cross platform APIs for kernel debug output. More...

#include "pch.h"

Functions

VOID PlatformDbgPrint (const CHAR *Format,...)
 Print a debug message to the kernel debugger.

Detailed Description

Implementation of cross platform APIs for kernel debug output.

Author
Sina Karvandi (sina@.nosp@m.hype.nosp@m.rdbg..nosp@m.org)
Version
0.19
Date
2026-05-09

Function Documentation

◆ PlatformDbgPrint()

VOID PlatformDbgPrint ( const CHAR * Format,
... )

Print a debug message to the kernel debugger.

Parameters
Formatprintf-style format string
...Variable arguments
Returns
VOID
27{
28#if defined(_WIN32) || defined(_WIN64)
29
30 va_list ArgList;
31 va_start(ArgList, Format);
32 vDbgPrintEx(DPFLTR_IHVDRIVER_ID, DPFLTR_INFO_LEVEL, Format, ArgList);
33 va_end(ArgList);
34
35#elif defined(__linux__)
36
37# error "Not yet implemented"
38
39#else
40
41# error "Unsupported platform"
42
43#endif
44}