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

Function ScriptEngineFunctionPrint

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

* @brief Implementation of print function * * @param Tag * @param ImmediateMessagePassing * @param Value * @return VOID */

Source from the content-addressed store, hash-verified

596 * @return VOID
597 */
598VOID
599ScriptEngineFunctionPrint(UINT64 Tag, BOOLEAN ImmediateMessagePassing, UINT64 Value)
600{
601#ifdef SCRIPT_ENGINE_USER_MODE
602 ShowMessages("%llx\n", Value);
603#endif // SCRIPT_ENGINE_USER_MODE
604
605#ifdef SCRIPT_ENGINE_KERNEL_MODE
606
607 //
608 // Prepare a buffer to bypass allocating a huge stack space for logging
609 //
610 char TempBuffer[20] = {0};
611 UINT32 TempBufferLen = sprintf(TempBuffer, "%llx\n", Value);
612
613 LogSimpleWithTag((UINT32)Tag, ImmediateMessagePassing, TempBuffer, TempBufferLen + 1);
614
615#endif // SCRIPT_ENGINE_KERNEL_MODE
616}
617
618/**
619 * @brief Implementation of test_statement function

Callers 1

ScriptEngineExecuteFunction · 0.85

Calls 1

ShowMessagesFunction · 0.50

Tested by

no test coverage detected