Author: jimtabor
Date: Mon Sep 27 02:46:16 2010
New Revision: 48904
URL:
http://svn.reactos.org/svn/reactos?rev=48904&view=rev
Log:
[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.
Modified:
trunk/reactos/subsystems/win32/win32k/ntuser/simplecall.c
Modified: trunk/reactos/subsystems/win32/win32k/ntuser/simplecall.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/nt…
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/ntuser/simplecall.c [iso-8859-1] (original)
+++ trunk/reactos/subsystems/win32/win32k/ntuser/simplecall.c [iso-8859-1] Mon Sep 27
02:46:16 2010
@@ -317,6 +317,41 @@
_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);