From db48311d5b636db68bb4d032199c844f57d89b33 Mon Sep 17 00:00:00 2001 From: James Tabor Date: Tue, 23 Dec 2008 19:04:40 +0000 Subject: [PATCH] - Add One Param Call GetCursorPos. This will be used when GDIPOINTER is deprecated. svn path=/trunk/; revision=38309 --- .../win32/win32k/ntuser/simplecall.c | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/reactos/subsystems/win32/win32k/ntuser/simplecall.c b/reactos/subsystems/win32/win32k/ntuser/simplecall.c index 916376e3db0..1b8f4aa9cac 100644 --- a/reactos/subsystems/win32/win32k/ntuser/simplecall.c +++ b/reactos/subsystems/win32/win32k/ntuser/simplecall.c @@ -396,9 +396,26 @@ NtUserCallOneParam( /* FIXME: Should use UserEnterShared */ RETURN(IntEnumClipboardFormats(Param)); - case ONEPARAM_ROUTINE_CSRSS_GUICHECK: + case ONEPARAM_ROUTINE_CSRSS_GUICHECK: IntUserManualGuiCheck(Param); RETURN(TRUE); + + case ONEPARAM_ROUTINE_GETCURSORPOS: + { + BOOL Ret = TRUE; + PPOINTL pptl; + _SEH2_TRY + { + pptl = (PPOINTL)Param; + *pptl = gpsi->ptCursor; + } + _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);