I am having a problem not being able to hook into a process created by CreateProcess:
ZeroMemory( &si, sizeof(si) );
si.cb = sizeof(si);
si.lpDesktop = "Winsta0\\Winlogon";
ZeroMemory( &pi, sizeof(pi) );
g_lpHookProc_Keyboard = (HOOKPROC) HookProcKeyboard;
b_Success_Keyboard = (NULL != (g_hHook_Keyboard = ::SetWindowsHookEx (WH_KEYBOARD, g_lpHookProc_Keyboard, (HINSTANCE)pi.hProcess, NULL)));
It returns "false" for "b_Success_Keyboard"
Any help will be appreciated..
Thanks a lot.