mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 07:55:56 +00:00
[Win32k]
- Implement win32k support functions for Get and Set process default layout. - Due to changes with wine it will be difficult to sync when RTL support is being added to ComCtl32. svn path=/trunk/; revision=48904
This commit is contained in:
parent
de914c19e1
commit
e4ec568733
1 changed files with 35 additions and 0 deletions
|
@ -317,6 +317,41 @@ NtUserCallOneParam(
|
|||
_SEH2_END;
|
||||
RETURN(Ret);
|
||||
}
|
||||
case ONEPARAM_ROUTINE_SETPROCDEFLAYOUT:
|
||||
{
|
||||
PPROCESSINFO ppi;
|
||||
if (Param & LAYOUT_ORIENTATIONMASK)
|
||||
{
|
||||
ppi = PsGetCurrentProcessWin32Process();
|
||||
ppi->dwLayout = Param;
|
||||
RETURN(TRUE);
|
||||
}
|
||||
SetLastWin32Error(ERROR_INVALID_PARAMETER);
|
||||
RETURN(FALSE);
|
||||
}
|
||||
case ONEPARAM_ROUTINE_GETPROCDEFLAYOUT:
|
||||
{
|
||||
BOOL Ret = TRUE;
|
||||
PPROCESSINFO ppi;
|
||||
PDWORD pdwLayout;
|
||||
if ( PsGetCurrentProcess() == CsrProcess)
|
||||
{
|
||||
SetLastWin32Error(ERROR_INVALID_ACCESS);
|
||||
RETURN(FALSE);
|
||||
}
|
||||
ppi = PsGetCurrentProcessWin32Process();
|
||||
_SEH2_TRY
|
||||
{
|
||||
pdwLayout = (PDWORD)Param;
|
||||
*pdwLayout = ppi->dwLayout;
|
||||
}
|
||||
_SEH2_EXCEPT(EXCEPTION_EXECUTE_HANDLER)
|
||||
{
|
||||
Ret = FALSE;
|
||||
}
|
||||
_SEH2_END;
|
||||
RETURN(Ret);
|
||||
}
|
||||
}
|
||||
DPRINT1("Calling invalid routine number 0x%x in NtUserCallOneParam(), Param=0x%x\n",
|
||||
Routine, Param);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue