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

Function ScriptEngineFunctionEventEnable

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

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

Source from the content-addressed store, hash-verified

1011 * @return VOID
1012 */
1013VOID
1014ScriptEngineFunctionEventEnable(UINT64 EventId)
1015{
1016#ifdef SCRIPT_ENGINE_USER_MODE
1017 ShowMessages("err, enabling events is not possible in user-mode\n");
1018#endif // SCRIPT_ENGINE_USER_MODE
1019
1020#ifdef SCRIPT_ENGINE_KERNEL_MODE
1021 if (!DebuggerEnableEvent(EventId + DebuggerEventTagStartSeed))
1022 {
1023 LogInfo("Invalid tag id (%x)", EventId);
1024 }
1025#endif // SCRIPT_ENGINE_KERNEL_MODE
1026}
1027
1028/**
1029 * @brief Implementation of event_disable function

Callers 1

ScriptEngineExecuteFunction · 0.85

Calls 2

DebuggerEnableEventFunction · 0.85
ShowMessagesFunction · 0.50

Tested by

no test coverage detected