mirror of
https://github.com/reactos/reactos.git
synced 2024-12-31 19:42:51 +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
|
@ -63,7 +63,7 @@ NtUserCallNoParam(DWORD Routine)
|
|||
TRACE("Enter NtUserCallNoParam\n");
|
||||
UserEnterExclusive();
|
||||
|
||||
switch(Routine)
|
||||
switch (Routine)
|
||||
{
|
||||
case NOPARAM_ROUTINE_CREATEMENU:
|
||||
Result = (DWORD_PTR)UserCreateMenu(GetW32ThreadInfo()->rpdesk, FALSE);
|
||||
|
@ -86,16 +86,16 @@ NtUserCallNoParam(DWORD Routine)
|
|||
break;
|
||||
|
||||
case NOPARAM_ROUTINE_MSQCLEARWAKEMASK:
|
||||
RETURN( (DWORD_PTR)IntMsqClearWakeMask());
|
||||
RETURN((DWORD_PTR)IntMsqClearWakeMask());
|
||||
|
||||
case NOPARAM_ROUTINE_GETMSESSAGEPOS:
|
||||
{
|
||||
PTHREADINFO pti = PsGetCurrentThreadWin32Thread();
|
||||
RETURN( (DWORD_PTR)MAKELONG(pti->ptLast.x, pti->ptLast.y));
|
||||
RETURN((DWORD_PTR)MAKELONG(pti->ptLast.x, pti->ptLast.y));
|
||||
}
|
||||
|
||||
case NOPARAM_ROUTINE_RELEASECAPTURE:
|
||||
RETURN( (DWORD_PTR)IntReleaseCapture());
|
||||
RETURN((DWORD_PTR)IntReleaseCapture());
|
||||
|
||||
case NOPARAM_ROUTINE_LOADUSERAPIHOOK:
|
||||
RETURN(UserLoadApiHook());
|
||||
|
@ -111,7 +111,7 @@ NtUserCallNoParam(DWORD Routine)
|
|||
|
||||
/* this is a ReactOS only case and is needed for gui-on-demand */
|
||||
case NOPARAM_ROUTINE_ISCONSOLEMODE:
|
||||
RETURN( ScreenDeviceContext == NULL );
|
||||
RETURN(ScreenDeviceContext == NULL);
|
||||
|
||||
case NOPARAM_ROUTINE_UPDATEPERUSERIMMENABLING:
|
||||
gpsi->dwSRVIFlags |= SRVINFO_IMM32; // Always set.
|
||||
|
@ -125,7 +125,7 @@ NtUserCallNoParam(DWORD Routine)
|
|||
RETURN(Result);
|
||||
|
||||
CLEANUP:
|
||||
TRACE("Leave NtUserCallNoParam, ret=%p\n",(PVOID)_ret_);
|
||||
TRACE("Leave NtUserCallNoParam, ret=%p\n", (PVOID)_ret_);
|
||||
UserLeave();
|
||||
END_CLEANUP;
|
||||
}
|
||||
|
@ -146,7 +146,7 @@ NtUserCallOneParam(
|
|||
|
||||
UserEnterExclusive();
|
||||
|
||||
switch(Routine)
|
||||
switch (Routine)
|
||||
{
|
||||
case ONEPARAM_ROUTINE_POSTQUITMESSAGE:
|
||||
{
|
||||
|
@ -167,22 +167,25 @@ 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;
|
||||
|
||||
psmwp = (PSMWP) UserCreateObject( gHandleTable,
|
||||
psmwp = (PSMWP)UserCreateObject(gHandleTable,
|
||||
NULL,
|
||||
NULL,
|
||||
(PHANDLE)&hDwp,
|
||||
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
|
||||
|
@ -191,7 +194,7 @@ NtUserCallOneParam(
|
|||
}
|
||||
|
||||
case ONEPARAM_ROUTINE_SHOWCURSOR:
|
||||
RETURN( (DWORD_PTR)UserShowCursor((BOOL)Param) );
|
||||
RETURN((DWORD_PTR)UserShowCursor((BOOL)Param));
|
||||
|
||||
case ONEPARAM_ROUTINE_GETDESKTOPMAPPING:
|
||||
{
|
||||
|
@ -210,7 +213,7 @@ NtUserCallOneParam(
|
|||
}
|
||||
|
||||
case ONEPARAM_ROUTINE_WINDOWFROMDC:
|
||||
RETURN( (DWORD_PTR)IntWindowFromDC((HDC)Param));
|
||||
RETURN((DWORD_PTR)IntWindowFromDC((HDC)Param));
|
||||
|
||||
case ONEPARAM_ROUTINE_SWAPMOUSEBUTTON:
|
||||
{
|
||||
|
@ -223,14 +226,14 @@ NtUserCallOneParam(
|
|||
}
|
||||
|
||||
case ONEPARAM_ROUTINE_SETCARETBLINKTIME:
|
||||
RETURN( (DWORD_PTR)IntSetCaretBlinkTime((UINT)Param));
|
||||
RETURN((DWORD_PTR)IntSetCaretBlinkTime((UINT)Param));
|
||||
|
||||
case ONEPARAM_ROUTINE_SETMESSAGEEXTRAINFO:
|
||||
RETURN( (DWORD_PTR)MsqSetMessageExtraInfo((LPARAM)Param));
|
||||
RETURN((DWORD_PTR)MsqSetMessageExtraInfo((LPARAM)Param));
|
||||
|
||||
case ONEPARAM_ROUTINE_CREATEEMPTYCUROBJECT:
|
||||
{
|
||||
DWORD_PTR Result ;
|
||||
DWORD_PTR Result;
|
||||
|
||||
if (!(Result = (DWORD_PTR)IntCreateCurIconHandle((DWORD)Param)))
|
||||
{
|
||||
|
@ -245,11 +248,11 @@ NtUserCallOneParam(
|
|||
BOOL Enable;
|
||||
PPROCESSINFO Process = PsGetCurrentProcessWin32Process();
|
||||
|
||||
if(Process != NULL)
|
||||
if (Process != NULL)
|
||||
{
|
||||
Enable = (BOOL)(Param != 0);
|
||||
|
||||
if(Enable)
|
||||
if (Enable)
|
||||
{
|
||||
Process->W32PF_flags &= ~W32PF_NOWINDOWGHOSTING;
|
||||
}
|
||||
|
@ -258,31 +261,32 @@ NtUserCallOneParam(
|
|||
Process->W32PF_flags |= W32PF_NOWINDOWGHOSTING;
|
||||
}
|
||||
|
||||
RETURN( TRUE);
|
||||
RETURN(TRUE);
|
||||
}
|
||||
|
||||
RETURN( FALSE);
|
||||
RETURN(FALSE);
|
||||
}
|
||||
|
||||
case ONEPARAM_ROUTINE_GETINPUTEVENT:
|
||||
RETURN( (DWORD_PTR)IntMsqSetWakeMask(Param));
|
||||
RETURN((DWORD_PTR)IntMsqSetWakeMask(Param));
|
||||
|
||||
case ONEPARAM_ROUTINE_GETKEYBOARDTYPE:
|
||||
RETURN( UserGetKeyboardType(Param));
|
||||
RETURN(UserGetKeyboardType(Param));
|
||||
|
||||
case ONEPARAM_ROUTINE_GETKEYBOARDLAYOUT:
|
||||
RETURN( (DWORD_PTR)UserGetKeyboardLayout(Param));
|
||||
RETURN((DWORD_PTR)UserGetKeyboardLayout(Param));
|
||||
|
||||
case ONEPARAM_ROUTINE_RELEASEDC:
|
||||
RETURN (UserReleaseDC(NULL, (HDC) Param, FALSE));
|
||||
RETURN(UserReleaseDC(NULL, (HDC)Param, FALSE));
|
||||
|
||||
case ONEPARAM_ROUTINE_REALIZEPALETTE:
|
||||
RETURN (UserRealizePalette((HDC) Param));
|
||||
RETURN(UserRealizePalette((HDC)Param));
|
||||
|
||||
case ONEPARAM_ROUTINE_GETQUEUESTATUS:
|
||||
{
|
||||
RETURN (IntGetQueueStatus((DWORD)Param));
|
||||
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,12 +323,13 @@ NtUserCallOneParam(
|
|||
EngSetLastError(ERROR_INVALID_PARAMETER);
|
||||
RETURN(FALSE);
|
||||
}
|
||||
|
||||
case ONEPARAM_ROUTINE_GETPROCDEFLAYOUT:
|
||||
{
|
||||
BOOL Ret = TRUE;
|
||||
PPROCESSINFO ppi;
|
||||
PDWORD pdwLayout;
|
||||
if ( PsGetCurrentProcess() == gpepCSRSS)
|
||||
if (PsGetCurrentProcess() == gpepCSRSS)
|
||||
{
|
||||
EngSetLastError(ERROR_INVALID_ACCESS);
|
||||
RETURN(FALSE);
|
||||
|
@ -342,22 +348,29 @@ NtUserCallOneParam(
|
|||
_SEH2_END;
|
||||
RETURN(Ret);
|
||||
}
|
||||
|
||||
case ONEPARAM_ROUTINE_REPLYMESSAGE:
|
||||
RETURN (co_MsqReplyMessage((LRESULT) Param));
|
||||
RETURN(co_MsqReplyMessage((LRESULT)Param));
|
||||
|
||||
case ONEPARAM_ROUTINE_MESSAGEBEEP:
|
||||
/* TODO: Implement sound sentry */
|
||||
RETURN ( UserPostMessage(hwndSAS, WM_LOGONNOTIFY, LN_MESSAGE_BEEP, Param) );
|
||||
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));
|
||||
RETURN((DWORD_PTR)IntLockSetForegroundWindow(Param));
|
||||
|
||||
case ONEPARAM_ROUTINE_ALLOWSETFOREGND:
|
||||
RETURN( (DWORD_PTR)IntAllowSetForegroundWindow(Param));
|
||||
|
||||
RETURN((DWORD_PTR)IntAllowSetForegroundWindow(Param));
|
||||
}
|
||||
|
||||
ERR("Calling invalid routine number 0x%x in NtUserCallOneParam(), Param=0x%x\n",
|
||||
Routine, Param);
|
||||
EngSetLastError(ERROR_INVALID_PARAMETER);
|
||||
RETURN( 0);
|
||||
RETURN(0);
|
||||
|
||||
CLEANUP:
|
||||
TRACE("Leave NtUserCallOneParam, ret=%p\n", (PVOID)_ret_);
|
||||
|
@ -382,7 +395,7 @@ NtUserCallTwoParam(
|
|||
TRACE("Enter NtUserCallTwoParam\n");
|
||||
UserEnterExclusive();
|
||||
|
||||
switch(Routine)
|
||||
switch (Routine)
|
||||
{
|
||||
case TWOPARAM_ROUTINE_REDRAWTITLE:
|
||||
{
|
||||
|
@ -391,14 +404,15 @@ NtUserCallTwoParam(
|
|||
Ret = (DWORD_PTR)UserPaintCaption(Window, (INT)Param2);
|
||||
RETURN(Ret);
|
||||
}
|
||||
|
||||
case TWOPARAM_ROUTINE_SETMENUBARHEIGHT:
|
||||
{
|
||||
DWORD_PTR Ret;
|
||||
PMENU MenuObject = IntGetMenuObject((HMENU)Param1);
|
||||
if(!MenuObject)
|
||||
RETURN( 0);
|
||||
if (!MenuObject)
|
||||
RETURN(0);
|
||||
|
||||
if(Param2 > 0)
|
||||
if (Param2 > 0)
|
||||
{
|
||||
Ret = (MenuObject->cyMenu == (int)Param2);
|
||||
MenuObject->cyMenu = (int)Param2;
|
||||
|
@ -406,25 +420,25 @@ NtUserCallTwoParam(
|
|||
else
|
||||
Ret = (DWORD_PTR)MenuObject->cyMenu;
|
||||
IntReleaseMenuObject(MenuObject);
|
||||
RETURN( Ret);
|
||||
RETURN(Ret);
|
||||
}
|
||||
|
||||
case TWOPARAM_ROUTINE_SETGUITHRDHANDLE:
|
||||
{
|
||||
PTHREADINFO pti = (PTHREADINFO)PsGetCurrentThreadWin32Thread();
|
||||
ASSERT(pti->MessageQueue);
|
||||
RETURN( (DWORD_PTR)MsqSetStateWindow(pti, (ULONG)Param1, (HWND)Param2));
|
||||
RETURN((DWORD_PTR)MsqSetStateWindow(pti, (ULONG)Param1, (HWND)Param2));
|
||||
}
|
||||
|
||||
case TWOPARAM_ROUTINE_ENABLEWINDOW:
|
||||
RETURN( IntEnableWindow((HWND)Param1, (BOOL)Param2));
|
||||
RETURN(IntEnableWindow((HWND)Param1, (BOOL)Param2));
|
||||
|
||||
case TWOPARAM_ROUTINE_SHOWOWNEDPOPUPS:
|
||||
{
|
||||
Window = UserGetWindowObject((HWND)Param1);
|
||||
if (!Window) RETURN(0);
|
||||
|
||||
RETURN( (DWORD_PTR)IntShowOwnedPopups(Window, (BOOL) Param2));
|
||||
RETURN((DWORD_PTR)IntShowOwnedPopups(Window, (BOOL)Param2));
|
||||
}
|
||||
|
||||
case TWOPARAM_ROUTINE_ROS_UPDATEUISTATE:
|
||||
|
@ -437,29 +451,30 @@ NtUserCallTwoParam(
|
|||
wParam = MAKEWPARAM((Param2 >> 3) & 0x3,
|
||||
Param2 & (UISF_HIDEFOCUS | UISF_HIDEACCEL | UISF_ACTIVE));
|
||||
|
||||
RETURN( UserUpdateUiState(Window, wParam) );
|
||||
RETURN(UserUpdateUiState(Window, wParam));
|
||||
}
|
||||
|
||||
case TWOPARAM_ROUTINE_SWITCHTOTHISWINDOW:
|
||||
STUB
|
||||
RETURN( 0);
|
||||
RETURN(0);
|
||||
|
||||
case TWOPARAM_ROUTINE_SETCARETPOS:
|
||||
RETURN( (DWORD_PTR)co_IntSetCaretPos((int)Param1, (int)Param2));
|
||||
RETURN((DWORD_PTR)co_IntSetCaretPos((int)Param1, (int)Param2));
|
||||
|
||||
case TWOPARAM_ROUTINE_REGISTERLOGONPROCESS:
|
||||
RETURN( (DWORD_PTR)co_IntRegisterLogonProcess((HANDLE)Param1, (BOOL)Param2));
|
||||
RETURN((DWORD_PTR)co_IntRegisterLogonProcess((HANDLE)Param1, (BOOL)Param2));
|
||||
|
||||
case TWOPARAM_ROUTINE_SETCURSORPOS:
|
||||
RETURN( (DWORD_PTR)UserSetCursorPos((int)Param1, (int)Param2, 0, 0, FALSE));
|
||||
RETURN((DWORD_PTR)UserSetCursorPos((int)Param1, (int)Param2, 0, 0, FALSE));
|
||||
|
||||
case TWOPARAM_ROUTINE_UNHOOKWINDOWSHOOK:
|
||||
RETURN( IntUnhookWindowsHook((int)Param1, (HOOKPROC)Param2));
|
||||
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);
|
||||
RETURN( 0);
|
||||
RETURN(0);
|
||||
|
||||
CLEANUP:
|
||||
TRACE("Leave NtUserCallTwoParam, ret=%p\n", (PVOID)_ret_);
|
||||
|
@ -487,8 +502,9 @@ NtUserCallHwndLock(
|
|||
|
||||
if (!(Window = UserGetWindowObject(hWnd)))
|
||||
{
|
||||
RETURN( FALSE);
|
||||
RETURN(FALSE);
|
||||
}
|
||||
|
||||
UserRefObjectCo(Window, &Ref);
|
||||
|
||||
/* FIXME: Routine can be 0x53 - 0x5E */
|
||||
|
@ -503,55 +519,55 @@ NtUserCallHwndLock(
|
|||
TRACE("HWNDLOCK_ROUTINE_DRAWMENUBAR\n");
|
||||
Ret = TRUE;
|
||||
if ((Window->style & (WS_CHILD | WS_POPUP)) != WS_CHILD)
|
||||
co_WinPosSetWindowPos( Window,
|
||||
co_WinPosSetWindowPos(Window,
|
||||
HWND_DESKTOP,
|
||||
0,0,0,0,
|
||||
SWP_NOSIZE|
|
||||
SWP_NOMOVE|
|
||||
SWP_NOZORDER|
|
||||
SWP_NOACTIVATE|
|
||||
SWP_FRAMECHANGED );
|
||||
0, 0, 0, 0,
|
||||
SWP_NOSIZE |
|
||||
SWP_NOMOVE |
|
||||
SWP_NOZORDER |
|
||||
SWP_NOACTIVATE |
|
||||
SWP_FRAMECHANGED);
|
||||
break;
|
||||
}
|
||||
|
||||
case HWNDLOCK_ROUTINE_REDRAWFRAME:
|
||||
co_WinPosSetWindowPos( Window,
|
||||
co_WinPosSetWindowPos(Window,
|
||||
HWND_DESKTOP,
|
||||
0,0,0,0,
|
||||
SWP_NOSIZE|
|
||||
SWP_NOMOVE|
|
||||
SWP_NOZORDER|
|
||||
SWP_NOACTIVATE|
|
||||
SWP_FRAMECHANGED );
|
||||
0, 0, 0, 0,
|
||||
SWP_NOSIZE |
|
||||
SWP_NOMOVE |
|
||||
SWP_NOZORDER |
|
||||
SWP_NOACTIVATE |
|
||||
SWP_FRAMECHANGED);
|
||||
Ret = TRUE;
|
||||
break;
|
||||
|
||||
case HWNDLOCK_ROUTINE_REDRAWFRAMEANDHOOK:
|
||||
co_WinPosSetWindowPos( Window,
|
||||
co_WinPosSetWindowPos(Window,
|
||||
HWND_DESKTOP,
|
||||
0,0,0,0,
|
||||
SWP_NOSIZE|
|
||||
SWP_NOMOVE|
|
||||
SWP_NOZORDER|
|
||||
SWP_NOACTIVATE|
|
||||
SWP_FRAMECHANGED );
|
||||
0, 0, 0, 0,
|
||||
SWP_NOSIZE |
|
||||
SWP_NOMOVE |
|
||||
SWP_NOZORDER |
|
||||
SWP_NOACTIVATE |
|
||||
SWP_FRAMECHANGED);
|
||||
if (!Window->spwndOwner && !IntGetParent(Window))
|
||||
{
|
||||
co_IntShellHookNotify(HSHELL_REDRAW, (WPARAM) hWnd, FALSE); // FIXME Flashing?
|
||||
co_IntShellHookNotify(HSHELL_REDRAW, (WPARAM)hWnd, FALSE); // FIXME Flashing?
|
||||
}
|
||||
Ret = TRUE;
|
||||
break;
|
||||
|
||||
case HWNDLOCK_ROUTINE_SETFOREGROUNDWINDOW:
|
||||
TRACE("co_IntSetForegroundWindow 1 0x%p\n",hWnd);
|
||||
TRACE("co_IntSetForegroundWindow 1 0x%p\n", hWnd);
|
||||
Ret = co_IntSetForegroundWindow(Window);
|
||||
TRACE("co_IntSetForegroundWindow 2 0x%p\n",hWnd);
|
||||
TRACE("co_IntSetForegroundWindow 2 0x%p\n", hWnd);
|
||||
break;
|
||||
|
||||
case HWNDLOCK_ROUTINE_SETFOREGROUNDWINDOWMOUSE:
|
||||
TRACE("co_IntSetForegroundWindow M 1 0x%p\n",hWnd);
|
||||
TRACE("co_IntSetForegroundWindow M 1 0x%p\n", hWnd);
|
||||
Ret = co_IntSetForegroundWindowMouse(Window);
|
||||
TRACE("co_IntSetForegroundWindow M 2 0x%p\n",hWnd);
|
||||
TRACE("co_IntSetForegroundWindow M 2 0x%p\n", hWnd);
|
||||
break;
|
||||
|
||||
case HWNDLOCK_ROUTINE_UPDATEWINDOW:
|
||||
|
@ -562,10 +578,10 @@ NtUserCallHwndLock(
|
|||
|
||||
UserDerefObjectCo(Window);
|
||||
|
||||
RETURN( Ret);
|
||||
RETURN(Ret);
|
||||
|
||||
CLEANUP:
|
||||
TRACE("Leave NtUserCallHwndLock, ret=%u\n",_ret_);
|
||||
TRACE("Leave NtUserCallHwndLock, ret=%u\n", _ret_);
|
||||
UserLeave();
|
||||
END_CLEANUP;
|
||||
}
|
||||
|
@ -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;
|
||||
|
@ -663,13 +683,13 @@ NtUserCallHwndParam(
|
|||
PWND Window;
|
||||
|
||||
UserEnterExclusive();
|
||||
if(!(Window = UserGetWindowObject(hWnd)))
|
||||
if (!(Window = UserGetWindowObject(hWnd)))
|
||||
{
|
||||
UserLeave();
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
if ( Param )
|
||||
if (Param)
|
||||
UserSetProp(Window, gpsi->atomContextHelpIdProp, (HANDLE)Param, TRUE);
|
||||
else
|
||||
UserRemoveProp(Window, gpsi->atomContextHelpIdProp, TRUE);
|
||||
|
@ -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;
|
||||
|
@ -769,7 +791,7 @@ NtUserCallHwndParamLock(
|
|||
|
||||
if (!(Window = UserGetWindowObject(hWnd)))
|
||||
{
|
||||
RETURN( FALSE);
|
||||
RETURN(FALSE);
|
||||
}
|
||||
UserRefObjectCo(Window, &Ref);
|
||||
|
||||
|
@ -778,7 +800,7 @@ NtUserCallHwndParamLock(
|
|||
case TWOPARAM_ROUTINE_VALIDATERGN:
|
||||
{
|
||||
PREGION Rgn = REGION_LockRgn((HRGN)Param);
|
||||
Ret = (DWORD)co_UserRedrawWindow( Window, NULL, Rgn, RDW_VALIDATE);
|
||||
Ret = (DWORD)co_UserRedrawWindow(Window, NULL, Rgn, RDW_VALIDATE);
|
||||
if (Rgn) REGION_UnlockRgn(Rgn);
|
||||
break;
|
||||
}
|
||||
|
@ -786,10 +808,10 @@ NtUserCallHwndParamLock(
|
|||
|
||||
UserDerefObjectCo(Window);
|
||||
|
||||
RETURN( Ret);
|
||||
RETURN(Ret);
|
||||
|
||||
CLEANUP:
|
||||
TRACE("Leave NtUserCallHwndParamLock, ret=%lu\n",_ret_);
|
||||
TRACE("Leave NtUserCallHwndParamLock, ret=%lu\n", _ret_);
|
||||
UserLeave();
|
||||
END_CLEANUP;
|
||||
|
||||
|
|
Loading…
Reference in a new issue