add console output

This commit is contained in:
Akash Mozumdar 2018-07-14 11:12:20 -04:00
parent 6b63b91326
commit df68a64aba
2 changed files with 5 additions and 2 deletions

View File

@ -9,6 +9,7 @@
#include "vnrhook/include/const.h" #include "vnrhook/include/const.h"
#include "ithsys/ithsys.h" #include "ithsys/ithsys.h"
#include <stdio.h> #include <stdio.h>
#include <atlbase.h>
//#include "CommandQueue.h" //#include "CommandQueue.h"
//#include <QtCore/QDebug> //#include <QtCore/QDebug>
@ -267,7 +268,8 @@ DWORD WINAPI RecvThread(LPVOID lpThreadParameter)
lock = 0; lock = 0;
} break; } break;
case HOST_NOTIFICATION_TEXT: case HOST_NOTIFICATION_TEXT:
//qDebug() << ((LPCSTR)(buff + 8)); USES_CONVERSION;
man->AddConsoleOutput(A2W((LPCSTR)(buff + 8)));
break; break;
} }
} else { } else {

View File

@ -302,7 +302,8 @@ DWORD NewHook(const HookParam &hp, LPCSTR name, DWORD flag)
strcpy(str, name); strcpy(str, name);
} }
ConsoleOutput("vnrcli:NewHook: try inserting hook"); ConsoleOutput("vnrcli:NewHook: try inserting hook:");
ConsoleOutput(str);
// jichi 7/13/2014: This function would raise when too many hooks added // jichi 7/13/2014: This function would raise when too many hooks added
::hookman[current].InitHook(hp, str, flag & 0xffff); ::hookman[current].InitHook(hp, str, flag & 0xffff);