mirror of
https://github.com/reactos/reactos.git
synced 2025-07-31 15:51:49 +00:00
[Win32k|User32] - Cleanup and added debug prints.
svn path=/trunk/; revision=49606
This commit is contained in:
parent
3d573b97a6
commit
c65ab760bf
2 changed files with 6 additions and 3 deletions
|
@ -451,6 +451,7 @@ User32CallHookProcFromKernel(PVOID Arguments, ULONG ArgumentLength)
|
|||
{
|
||||
case WH_CBT:
|
||||
{
|
||||
//ERR("WH_CBT: Code %d\n", Common->Code);
|
||||
switch(Common->Code)
|
||||
{
|
||||
case HCBT_CREATEWND:
|
||||
|
@ -461,7 +462,7 @@ User32CallHookProcFromKernel(PVOID Arguments, ULONG ArgumentLength)
|
|||
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 @@ User32CallHookProcFromKernel(PVOID Arguments, ULONG ArgumentLength)
|
|||
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);
|
||||
|
|
|
@ -352,6 +352,7 @@ co_IntCallHookProc(INT HookId,
|
|||
switch(HookId)
|
||||
{
|
||||
case WH_CBT:
|
||||
DPRINT("WH_CBT: Code %d\n", Code);
|
||||
switch(Code)
|
||||
{
|
||||
case HCBT_CREATEWND:
|
||||
|
@ -524,6 +525,7 @@ co_IntCallHookProc(INT HookId,
|
|||
|
||||
if (!NT_SUCCESS(Status))
|
||||
{
|
||||
DPRINT1("Failure to make Callback! Status 0x%x",Status);
|
||||
goto Fault_Exit;
|
||||
}
|
||||
/* Support write backs... SEH is in UserCallNextHookEx. */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue