* @brief Implementation of event_enable function * * @param EventId * * @return VOID */
| 1011 | * @return VOID |
| 1012 | */ |
| 1013 | VOID |
| 1014 | ScriptEngineFunctionEventEnable(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 |
no test coverage detected