Author: jimtabor
Date: Tue Nov 16 05:30:20 2010
New Revision: 49606
URL:
http://svn.reactos.org/svn/reactos?rev=49606&view=rev
Log:
[Win32k|User32] - Cleanup and added debug prints.
Modified:
trunk/reactos/dll/win32/user32/windows/hook.c
trunk/reactos/subsystems/win32/win32k/ntuser/callback.c
Modified: trunk/reactos/dll/win32/user32/windows/hook.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/user32/windows/h…
==============================================================================
--- trunk/reactos/dll/win32/user32/windows/hook.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/user32/windows/hook.c [iso-8859-1] Tue Nov 16 05:30:20 2010
@@ -451,6 +451,7 @@
{
case WH_CBT:
{
+ //ERR("WH_CBT: Code %d\n", Common->Code);
switch(Common->Code)
{
case HCBT_CREATEWND:
@@ -461,7 +462,7 @@
CbtCreatewndw.hwndInsertAfter = CbtCreatewndExtra->WndInsertAfter;
wParam = Common->wParam;
lParam = (LPARAM) &CbtCreatewndw;
- ERR("HCBT_CREATEWND: hWnd 0x%x Name 0x%x Class 0x%x\n",
Common->wParam, Csw.lpszName, Csw.lpszClass);
+ //ERR("HCBT_CREATEWND: hWnd 0x%x Name 0x%x Class 0x%x\n",
Common->wParam, Csw.lpszName, Csw.lpszClass);
break;
case HCBT_CLICKSKIPPED:
pMHook = (PMOUSEHOOKSTRUCT)((PCHAR) Common + Common->lParam);
@@ -518,13 +519,13 @@
break;
}
case WH_KEYBOARD_LL:
- ERR("WH_KEYBOARD_LL: Code %d, wParam
%d\n",Common->Code,Common->wParam);
+ //ERR("WH_KEYBOARD_LL: Code %d, wParam
%d\n",Common->Code,Common->wParam);
pKeyboardLlData = (PKBDLLHOOKSTRUCT)((PCHAR) Common + Common->lParam);
RtlCopyMemory(&KeyboardLlData, pKeyboardLlData, sizeof(KBDLLHOOKSTRUCT));
Result = Common->Proc(Common->Code, Common->wParam, (LPARAM)
&KeyboardLlData);
break;
case WH_MOUSE_LL:
- ERR("WH_MOUSE_LL: Code %d, wParam
%d\n",Common->Code,Common->wParam);
+ //ERR("WH_MOUSE_LL: Code %d, wParam
%d\n",Common->Code,Common->wParam);
pMouseLlData = (PMSLLHOOKSTRUCT)((PCHAR) Common + Common->lParam);
RtlCopyMemory(&MouseLlData, pMouseLlData, sizeof(MSLLHOOKSTRUCT));
Result = Common->Proc(Common->Code, Common->wParam, (LPARAM)
&MouseLlData);
Modified: trunk/reactos/subsystems/win32/win32k/ntuser/callback.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/nt…
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/ntuser/callback.c [iso-8859-1] (original)
+++ trunk/reactos/subsystems/win32/win32k/ntuser/callback.c [iso-8859-1] Tue Nov 16
05:30:20 2010
@@ -352,6 +352,7 @@
switch(HookId)
{
case WH_CBT:
+ DPRINT("WH_CBT: Code %d\n", Code);
switch(Code)
{
case HCBT_CREATEWND:
@@ -524,6 +525,7 @@
if (!NT_SUCCESS(Status))
{
+ DPRINT1("Failure to make Callback! Status 0x%x",Status);
goto Fault_Exit;
}
/* Support write backs... SEH is in UserCallNextHookEx. */