[Win32Csr]
authorJames Tabor <james.tabor@reactos.org>
Tue, 26 Apr 2011 00:01:03 +0000 (00:01 +0000)
committerJames Tabor <james.tabor@reactos.org>
Tue, 26 Apr 2011 00:01:03 +0000 (00:01 +0000)
- Hack ReactOS to boot again! See bug 5655.

svn path=/trunk/; revision=51460

reactos/subsystems/win32/csrss/win32csr/dllmain.c

index bf43ccf..d8cfa8c 100644 (file)
@@ -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)