[Win32Csr]

- Hack ReactOS to boot again! See bug 5655.

svn path=/trunk/; revision=51460
This commit is contained in:
James Tabor
2011-04-26 00:01:03 +00:00
parent 16f7899e27
commit ee43f54510
@@ -94,8 +94,20 @@ static CSRSS_API_DEFINITION Win32CsrApiDefinitions[] =
{ 0, 0, NULL }
};
static HHOOK hhk = NULL;
/* FUNCTIONS *****************************************************************/
LRESULT
CALLBACK
KeyboardHookProc(
int nCode,
WPARAM wParam,
LPARAM lParam)
{
return CallNextHookEx(hhk, nCode, wParam, lParam);
}
BOOL WINAPI
DllMain(HANDLE hDll,
DWORD dwReason,
@@ -104,6 +116,13 @@ DllMain(HANDLE hDll,
if (DLL_PROCESS_ATTACH == dwReason)
{
Win32CsrDllHandle = hDll;
//
// HACK HACK HACK ReactOS to BOOT! Initialization BUG ALERT! See bug 5655.
//
hhk = SetWindowsHookEx(WH_KEYBOARD_LL, KeyboardHookProc, NULL, 0);
// BUG ALERT! BUG ALERT! BUG ALERT! BUG ALERT! BUG ALERT! BUG ALERT! BUG ALERT!
// BUG ALERT! BUG ALERT! BUG ALERT! BUG ALERT! BUG ALERT! BUG ALERT! BUG ALERT!
// BUG ALERT! BUG ALERT! BUG ALERT! BUG ALERT! BUG ALERT! BUG ALERT! BUG ALERT!
}
if (DLL_PROCESS_DETACH == dwReason)