From 3c33d803326ffbff35731948272264ef5e6d4cfd Mon Sep 17 00:00:00 2001 From: Toni Uhlig <matzeton@googlemail.com> Date: Tue, 12 Nov 2019 23:26:35 +0100 Subject: print thread id on startup --- TestDLL/dllmain.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'TestDLL') diff --git a/TestDLL/dllmain.cpp b/TestDLL/dllmain.cpp index a95a988..2f93b99 100644 --- a/TestDLL/dllmain.cpp +++ b/TestDLL/dllmain.cpp @@ -330,7 +330,8 @@ void APIENTRY LibEntry(struct HuntCtx * HuntCtx) freopen_s(&conout, "CONOUT$", "w", stdout); printf("Welcome.\n"); - printf("[used memory: %u][cpu flags: %u][user name: %s][cpu count: %d]\n", + printf("[thread id: %d][used memory: %u][cpu flags: %u][user name: %s][cpu count: %d]\n", + GetCurrentThreadId(), iEnt->GetSystem()->GetUsedMemory(), iEnt->GetSystem()->GetCPUFlags(), iEnt->GetSystem()->GetUserName(), -- cgit v1.2.3