HyperDbg Debugger
Loading...
Searching...
No Matches
Callback.h
Go to the documentation of this file.
1
13#pragma once
14
15//
16// Log Callbacks
17//
18
21 BOOLEAN IsImmediateMessage,
22 BOOLEAN ShowCurrentSystemTime,
23 BOOLEAN Priority,
24 const char * Fmt,
25 ...);
26
29 BOOLEAN IsImmediateMessage,
30 CHAR * LogMessage,
31 UINT32 BufferLen,
32 BOOLEAN Priority);
33
36
38LogCallbackSendBuffer(_In_ UINT32 OperationCode,
39 _In_reads_bytes_(BufferLength) PVOID Buffer,
40 _In_ UINT32 BufferLength,
41 _In_ BOOLEAN Priority);
42
43//
44// VMM Callbacks
45//
46
50 PVOID Context,
51 BOOLEAN * PostEventRequired,
52 GUEST_REGS * Regs);
53
56 UINT64 VmcallNumber,
57 UINT64 OptionalParam1,
58 UINT64 OptionalParam2,
59 UINT64 OptionalParam3);
60
63 PROTECTED_HV_RESOURCES_TYPE ResourceType,
64 PVOID Context,
66
69
72 UINT64 ViolationQualification,
73 UINT64 GuestPhysicalAddr);
74
75VOID
77
78VOID
80
81VOID
83
84//
85// Debugging Callbacks
86//
87
90
93
97 UINT32 PageFaultErrorCode);
98
99//
100// Interception Callbacks
101//
102
103VOID
105
106VOID
UCHAR BOOLEAN
Definition BasicTypes.h:39
#define VOID
Definition BasicTypes.h:33
unsigned __int64 UINT64
Definition BasicTypes.h:21
unsigned int UINT32
Definition BasicTypes.h:48
char CHAR
Definition BasicTypes.h:31
BOOLEAN DebuggingCallbackConditionalPageFaultException(UINT32 CoreId, UINT64 Address, UINT32 PageFaultErrorCode)
routine callback to handle conditional page-fault exception
Definition Callback.c:383
BOOLEAN LogCallbackSendMessageToQueue(UINT32 OperationCode, BOOLEAN IsImmediateMessage, CHAR *LogMessage, UINT32 BufferLen, BOOLEAN Priority)
routines callback for sending message to queue
Definition Callback.c:71
BOOLEAN LogCallbackPrepareAndSendMessageToQueue(UINT32 OperationCode, BOOLEAN IsImmediateMessage, BOOLEAN ShowCurrentSystemTime, BOOLEAN Priority, const char *Fmt,...)
routines callback for preparing and sending message to queue
Definition Callback.c:28
BOOLEAN DebuggingCallbackHandleDebugBreakpointException(UINT32 CoreId)
routine callback to handle debug breakpoint exception
Definition Callback.c:360
VOID VmmCallbackRegisteredMtfHandler(UINT32 CoreId)
routine callback to handle registered MTF
Definition Callback.c:225
VMM_CALLBACK_TRIGGERING_EVENT_STATUS_TYPE VmmCallbackTriggerEvents(VMM_EVENT_TYPE_ENUM EventType, VMM_CALLBACK_EVENT_CALLING_STAGE_TYPE CallingStage, PVOID Context, BOOLEAN *PostEventRequired, GUEST_REGS *Regs)
routines callback to trigger events
Definition Callback.c:154
BOOLEAN VmmCallbackRestoreEptState(UINT32 CoreId)
routine callback to restore EPT state
Definition Callback.c:294
BOOLEAN LogCallbackCheckIfBufferIsFull(BOOLEAN Priority)
routines callback for checking if buffer is full
Definition Callback.c:100
VOID VmmCallbackSetLastError(UINT32 LastError)
routine callback to set last error
Definition Callback.c:175
BOOLEAN DebuggingCallbackHandleBreakpointException(UINT32 CoreId)
routine callback to handle breakpoint exception
Definition Callback.c:339
BOOLEAN VmmCallbackQueryTerminateProtectedResource(UINT32 CoreId, PROTECTED_HV_RESOURCES_TYPE ResourceType, PVOID Context, PROTECTED_HV_RESOURCES_PASSING_OVERS PassOver)
routine callback to query for termination of protected resources
Definition Callback.c:271
VOID InterceptionCallbackCr3VmexitsForThreadInterception(UINT32 CoreId, CR3_TYPE NewCr3)
routine callback to handle cr3 process change
Definition Callback.c:428
VOID VmmCallbackNmiBroadcastRequestHandler(UINT32 CoreId, BOOLEAN IsOnVmxNmiHandler)
routine callback to handle NMI requests
Definition Callback.c:247
BOOLEAN VmmCallbackUnhandledEptViolation(UINT32 CoreId, UINT64 ViolationQualification, UINT64 GuestPhysicalAddr)
routine callback to handle unhandled EPT violations
Definition Callback.c:316
BOOLEAN LogCallbackSendBuffer(_In_ UINT32 OperationCode, _In_reads_bytes_(BufferLength) PVOID Buffer, _In_ UINT32 BufferLength, _In_ BOOLEAN Priority)
routines callback for sending buffer
Definition Callback.c:123
BOOLEAN VmmCallbackVmcallHandler(UINT32 CoreId, UINT64 VmcallNumber, UINT64 OptionalParam1, UINT64 OptionalParam2, UINT64 OptionalParam3)
routine callback to handle external VMCALLs
Definition Callback.c:200
VOID InterceptionCallbackTriggerCr3ProcessChange(UINT32 CoreId)
routine callback to handle cr3 process change
Definition Callback.c:406
enum _VMM_CALLBACK_EVENT_CALLING_STAGE_TYPE VMM_CALLBACK_EVENT_CALLING_STAGE_TYPE
Type of calling the event.
UINT64 Address
Definition HyperDbgScriptImports.h:67
NTKERNELAPI _In_opt_ PVOID Context
Definition Dpc.h:25
enum _PROTECTED_HV_RESOURCES_TYPE PROTECTED_HV_RESOURCES_TYPE
Type of protected (multi-used) resources.
enum _VMM_CALLBACK_TRIGGERING_EVENT_STATUS_TYPE VMM_CALLBACK_TRIGGERING_EVENT_STATUS_TYPE
The status of triggering events.
enum _PROTECTED_HV_RESOURCES_PASSING_OVERS PROTECTED_HV_RESOURCES_PASSING_OVERS
Things to consider when applying resources.
enum _VMM_EVENT_TYPE_ENUM VMM_EVENT_TYPE_ENUM
enum to show type of all HyperDbg events
CR3 Structure.
Definition BasicTypes.h:130
Definition BasicTypes.h:70