diff --git a/sdk/sdk.go b/sdk/sdk.go index 8819c45d..e1fadef7 100644 --- a/sdk/sdk.go +++ b/sdk/sdk.go @@ -1454,7 +1454,7 @@ type PdebuggerRemotePacket = *DebuggerRemotePacket // @brief Callback type that can be used to be used // as a custom ShowMessages function -type Callback = unsafe.Pointer +type Callback = *Char // @brief The structure of user-input packet in HyperDbg type PdebuggeeUserInputPacket = *DebuggeeUserInputPacket diff --git a/sdk/sdk_test.go b/sdk/sdk_test.go index 4332d9c6..ce480f68 100644 --- a/sdk/sdk_test.go +++ b/sdk/sdk_test.go @@ -18,7 +18,15 @@ func TestSdk(t *testing.T) { assert.True(t, VmxSupportDetection()) assert.True(t, SetCustomDriverPathEx(SysPath)) - // SetTextMessageCallback() + log := "" + SetTextMessageCallback(StringToBytePointer(log)) + go func() { + for { + if log != "" { + println(log) + } + } + }() mylog.Trace("InstallVmmDriver", InstallVmmDriver())