mirror of
https://github.com/reactos/reactos.git
synced 2025-01-01 03:54:02 +00:00
[FORMATTING] Fix indentation, no functional changes.
This commit is contained in:
parent
a3c58ca76f
commit
e688aab6b3
1 changed files with 585 additions and 563 deletions
|
@ -167,6 +167,7 @@ NtUserCallOneParam(
|
|||
EngSetLastError(ERROR_INVALID_PARAMETER);
|
||||
RETURN(0);
|
||||
}
|
||||
|
||||
/* Windows allows zero count, in which case it allocates context for 8 moves */
|
||||
if (count == 0) count = 8;
|
||||
|
||||
|
@ -177,12 +178,14 @@ NtUserCallOneParam(
|
|||
TYPE_SETWINDOWPOS,
|
||||
sizeof(SMWP));
|
||||
if (!psmwp) RETURN(0);
|
||||
|
||||
psmwp->acvr = ExAllocatePoolWithTag(PagedPool, count * sizeof(CVR), USERTAG_SWP);
|
||||
if (!psmwp->acvr)
|
||||
{
|
||||
UserDeleteObject(hDwp, TYPE_SETWINDOWPOS);
|
||||
RETURN(0);
|
||||
}
|
||||
|
||||
RtlZeroMemory(psmwp->acvr, count * sizeof(CVR));
|
||||
psmwp->bHandle = TRUE;
|
||||
psmwp->ccvr = 0; // actualCount
|
||||
|
@ -283,6 +286,7 @@ NtUserCallOneParam(
|
|||
{
|
||||
RETURN(IntGetQueueStatus((DWORD)Param));
|
||||
}
|
||||
|
||||
case ONEPARAM_ROUTINE_ENUMCLIPBOARDFORMATS:
|
||||
/* FIXME: Should use UserEnterShared */
|
||||
RETURN(UserEnumClipboardFormats(Param));
|
||||
|
@ -306,6 +310,7 @@ NtUserCallOneParam(
|
|||
_SEH2_END;
|
||||
RETURN(Ret);
|
||||
}
|
||||
|
||||
case ONEPARAM_ROUTINE_SETPROCDEFLAYOUT:
|
||||
{
|
||||
PPROCESSINFO ppi;
|
||||
|
@ -318,6 +323,7 @@ NtUserCallOneParam(
|
|||
EngSetLastError(ERROR_INVALID_PARAMETER);
|
||||
RETURN(FALSE);
|
||||
}
|
||||
|
||||
case ONEPARAM_ROUTINE_GETPROCDEFLAYOUT:
|
||||
{
|
||||
BOOL Ret = TRUE;
|
||||
|
@ -342,18 +348,25 @@ NtUserCallOneParam(
|
|||
_SEH2_END;
|
||||
RETURN(Ret);
|
||||
}
|
||||
|
||||
case ONEPARAM_ROUTINE_REPLYMESSAGE:
|
||||
RETURN(co_MsqReplyMessage((LRESULT)Param));
|
||||
|
||||
case ONEPARAM_ROUTINE_MESSAGEBEEP:
|
||||
/* TODO: Implement sound sentry */
|
||||
RETURN(UserPostMessage(hwndSAS, WM_LOGONNOTIFY, LN_MESSAGE_BEEP, Param));
|
||||
|
||||
case ONEPARAM_ROUTINE_CREATESYSTEMTHREADS:
|
||||
RETURN(CreateSystemThreads(Param));
|
||||
|
||||
case ONEPARAM_ROUTINE_LOCKFOREGNDWINDOW:
|
||||
RETURN((DWORD_PTR)IntLockSetForegroundWindow(Param));
|
||||
|
||||
case ONEPARAM_ROUTINE_ALLOWSETFOREGND:
|
||||
|
||||
RETURN((DWORD_PTR)IntAllowSetForegroundWindow(Param));
|
||||
}
|
||||
|
||||
ERR("Calling invalid routine number 0x%x in NtUserCallOneParam(), Param=0x%x\n",
|
||||
Routine, Param);
|
||||
EngSetLastError(ERROR_INVALID_PARAMETER);
|
||||
|
@ -391,6 +404,7 @@ NtUserCallTwoParam(
|
|||
Ret = (DWORD_PTR)UserPaintCaption(Window, (INT)Param2);
|
||||
RETURN(Ret);
|
||||
}
|
||||
|
||||
case TWOPARAM_ROUTINE_SETMENUBARHEIGHT:
|
||||
{
|
||||
DWORD_PTR Ret;
|
||||
|
@ -456,6 +470,7 @@ NtUserCallTwoParam(
|
|||
case TWOPARAM_ROUTINE_UNHOOKWINDOWSHOOK:
|
||||
RETURN(IntUnhookWindowsHook((int)Param1, (HOOKPROC)Param2));
|
||||
}
|
||||
|
||||
ERR("Calling invalid routine number 0x%x in NtUserCallTwoParam(), Param1=0x%x Parm2=0x%x\n",
|
||||
Routine, Param1, Param2);
|
||||
EngSetLastError(ERROR_INVALID_PARAMETER);
|
||||
|
@ -489,6 +504,7 @@ NtUserCallHwndLock(
|
|||
{
|
||||
RETURN(FALSE);
|
||||
}
|
||||
|
||||
UserRefObjectCo(Window, &Ref);
|
||||
|
||||
/* FIXME: Routine can be 0x53 - 0x5E */
|
||||
|
@ -619,15 +635,18 @@ NtUserCallHwnd(
|
|||
UserLeave();
|
||||
return HelpId;
|
||||
}
|
||||
|
||||
case HWND_ROUTINE_REGISTERSHELLHOOKWINDOW:
|
||||
if (IntIsWindow(hWnd))
|
||||
return IntRegisterShellHookWindow(hWnd);
|
||||
return FALSE;
|
||||
break;
|
||||
|
||||
case HWND_ROUTINE_DEREGISTERSHELLHOOKWINDOW:
|
||||
if (IntIsWindow(hWnd))
|
||||
return IntDeRegisterShellHookWindow(hWnd);
|
||||
return FALSE;
|
||||
|
||||
case HWND_ROUTINE_SETMSGBOX:
|
||||
{
|
||||
PWND Window;
|
||||
|
@ -640,6 +659,7 @@ NtUserCallHwnd(
|
|||
return FALSE;
|
||||
}
|
||||
}
|
||||
|
||||
STUB;
|
||||
|
||||
return 0;
|
||||
|
@ -727,6 +747,7 @@ NtUserCallHwndParam(
|
|||
UserLeave();
|
||||
return 0;
|
||||
}
|
||||
|
||||
case HWNDPARAM_ROUTINE_CLEARWINDOWSTATE:
|
||||
{
|
||||
PWND pWnd;
|
||||
|
@ -736,6 +757,7 @@ NtUserCallHwndParam(
|
|||
UserLeave();
|
||||
return 0;
|
||||
}
|
||||
|
||||
case HWNDPARAM_ROUTINE_SETWINDOWSTATE:
|
||||
{
|
||||
PWND pWnd;
|
||||
|
|
Loading…
Reference in a new issue