MCPcopy Create free account
hub / github.com/HyperDbg/HyperDbg / ScriptEngineFunctionEventClear

Function ScriptEngineFunctionEventClear

hyperdbg/script-eval/code/Functions.c:1057–1078  ·  view source on GitHub ↗

* @brief Implementation of event_clear function * * @param EventId * * @return VOID */

Source from the content-addressed store, hash-verified

1055 * @return VOID
1056 */
1057VOID
1058ScriptEngineFunctionEventClear(UINT64 EventId)
1059{
1060#ifdef SCRIPT_ENGINE_USER_MODE
1061 ShowMessages("err, disabling events is not possible in user-mode\n");
1062#endif // SCRIPT_ENGINE_USER_MODE
1063
1064#ifdef SCRIPT_ENGINE_KERNEL_MODE
1065
1066 BOOLEAN PoolManagerAllocatedMemory = FALSE;
1067
1068 if (g_KernelDebuggerState && EnableInstantEventMechanism)
1069 {
1070 PoolManagerAllocatedMemory = TRUE;
1071 }
1072
1073 if (!DebuggerClearEvent(EventId + DebuggerEventTagStartSeed, VmFuncVmxGetCurrentExecutionMode(), PoolManagerAllocatedMemory))
1074 {
1075 LogInfo("Invalid tag id (%x)", EventId);
1076 }
1077#endif // SCRIPT_ENGINE_KERNEL_MODE
1078}
1079
1080/**
1081 * @brief Implementation of pause function

Callers 1

ScriptEngineExecuteFunction · 0.85

Calls 3

DebuggerClearEventFunction · 0.85
ShowMessagesFunction · 0.50

Tested by

no test coverage detected