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

Function ScriptEngineFunctionEventDisable

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

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

Source from the content-addressed store, hash-verified

1033 * @return VOID
1034 */
1035VOID
1036ScriptEngineFunctionEventDisable(UINT64 EventId)
1037{
1038#ifdef SCRIPT_ENGINE_USER_MODE
1039 ShowMessages("err, disabling events is not possible in user-mode\n");
1040#endif // SCRIPT_ENGINE_USER_MODE
1041
1042#ifdef SCRIPT_ENGINE_KERNEL_MODE
1043 if (!DebuggerDisableEvent(EventId + DebuggerEventTagStartSeed))
1044 {
1045 LogInfo("Invalid tag id (%x)", EventId);
1046 }
1047#endif // SCRIPT_ENGINE_KERNEL_MODE
1048}
1049
1050/**
1051 * @brief Implementation of event_clear function

Callers 1

ScriptEngineExecuteFunction · 0.85

Calls 2

DebuggerDisableEventFunction · 0.85
ShowMessagesFunction · 0.50

Tested by

no test coverage detected