I'am a novice.
My Code. in VS2012
--------------------------
int main()
{
Sleep(100);
CHooks Chooks(L"xGameNamex", L"xDLLNamex");
Sleep(2000);
for (;;)
{
int input;
input = getchar(); // or std::cin
if (input == 0x31)
Chooks.SetHookKb();
else if (input == 0x32)
Chooks.UnHookKb();
}
return 0;
}
--------------------------
Two questions
each one I will pay 20 KB
1, Once I try to use Windows SEH, (__try) when compile,
the compiler will produce error.
then, I use C++ exception handle(try), the work is ok.
In the above console circumstance,
with C++ obejct, why can't use Windows SEH? For straight answer or reference.
2, For ture, I inject to a game.
While I am typing 1 to sethook, the console is halt, unworked and can't close.
I try to create a new project which is WinProject, and AllocConsole, type 1
It will work without error, again, why? for real answer.
--------------------------
Thanks