Author: hbelusca
Date: Thu Dec 25 15:50:07 2014
New Revision: 65825
URL:
http://svn.reactos.org/svn/reactos?rev=65825&view=rev
Log:
[USER32]
- CreateSystemThreads' parameter is unused, and the parameter of
ONEPARAM_ROUTINE_CREATESYSTEMTHREADS win32k system call is set to TRUE when creating
system threads in "remote processes", i.e. not CSRSS.
- Few code formatting fixes.
CORE-8949
Modified:
trunk/reactos/win32ss/user/ntuser/simplecall.c
trunk/reactos/win32ss/user/user32/include/ntwrapper.h
trunk/reactos/win32ss/user/user32/misc/stubs.c
Modified: trunk/reactos/win32ss/user/ntuser/simplecall.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/win32ss/user/ntuser/simple…
==============================================================================
--- trunk/reactos/win32ss/user/ntuser/simplecall.c [iso-8859-1] (original)
+++ trunk/reactos/win32ss/user/ntuser/simplecall.c [iso-8859-1] Thu Dec 25 15:50:07 2014
@@ -346,8 +346,8 @@
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) );
- /* TODO: Implement sound sentry */
case ONEPARAM_ROUTINE_CREATESYSTEMTHREADS:
RETURN(CreateSystemThreads(Param));
case ONEPARAM_ROUTINE_LOCKFOREGNDWINDOW:
Modified: trunk/reactos/win32ss/user/user32/include/ntwrapper.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/win32ss/user/user32/includ…
==============================================================================
--- trunk/reactos/win32ss/user/user32/include/ntwrapper.h [iso-8859-1] (original)
+++ trunk/reactos/win32ss/user/user32/include/ntwrapper.h [iso-8859-1] Thu Dec 25 15:50:07
2014
@@ -503,7 +503,7 @@
EXTINLINE HWND WINAPI
SetCapture(HWND hWnd)
{
- return(NtUserSetCapture(hWnd));
+ return NtUserSetCapture(hWnd);
}
EXTINLINE BOOL WINAPI
@@ -541,17 +541,17 @@
return (BOOL)NtUserCallNoParam(NOPARAM_ROUTINE_DESTROY_CARET);
}
-EXTINLINE VOID NtUserxMsqClearWakeMask()
+EXTINLINE VOID NtUserxMsqClearWakeMask(VOID)
{
NtUserCallNoParam(NOPARAM_ROUTINE_MSQCLEARWAKEMASK);
}
-EXTINLINE HMENU NtUserxCreateMenu()
+EXTINLINE HMENU NtUserxCreateMenu(VOID)
{
return (HMENU)NtUserCallNoParam(NOPARAM_ROUTINE_CREATEMENU);
}
-EXTINLINE HMENU NtUserxCreatePopupMenu()
+EXTINLINE HMENU NtUserxCreatePopupMenu(VOID)
{
return (HMENU)NtUserCallNoParam(NOPARAM_ROUTINE_CREATEMENUPOPUP);
}
@@ -566,12 +566,12 @@
return (BOOL)NtUserCallNoParam(NOPARAM_ROUTINE_RELEASECAPTURE);
}
-EXTINLINE BOOL NtUserxInitMessagePump()
-{
- return NtUserCallNoParam(NOPARAM_ROUTINE_INIT_MESSAGE_PUMP);
-}
-
-EXTINLINE BOOL NtUserxUnInitMessagePump()
+EXTINLINE BOOL NtUserxInitMessagePump(VOID)
+{
+ return (BOOL)NtUserCallNoParam(NOPARAM_ROUTINE_INIT_MESSAGE_PUMP);
+}
+
+EXTINLINE BOOL NtUserxUnInitMessagePump(VOID)
{
return NtUserCallNoParam(NOPARAM_ROUTINE_UNINIT_MESSAGE_PUMP);
}
@@ -641,9 +641,9 @@
return (UINT)NtUserCallOneParam((DWORD_PTR)hDC, ONEPARAM_ROUTINE_REALIZEPALETTE);
}
-EXTINLINE VOID NtUserxCreateSystemThreads(DWORD param)
-{
- NtUserCallOneParam(param, ONEPARAM_ROUTINE_CREATESYSTEMTHREADS);
+EXTINLINE VOID NtUserxCreateSystemThreads(BOOL bRemoteProcess)
+{
+ NtUserCallOneParam(bRemoteProcess, ONEPARAM_ROUTINE_CREATESYSTEMTHREADS);
}
EXTINLINE HDWP NtUserxBeginDeferWindowPos(INT nNumWindows)
Modified: trunk/reactos/win32ss/user/user32/misc/stubs.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/win32ss/user/user32/misc/s…
==============================================================================
--- trunk/reactos/win32ss/user/user32/misc/stubs.c [iso-8859-1] (original)
+++ trunk/reactos/win32ss/user/user32/misc/stubs.c [iso-8859-1] Thu Dec 25 15:50:07 2014
@@ -512,9 +512,10 @@
VOID
WINAPI
-CreateSystemThreads(DWORD dwUnknown)
-{
- NtUserxCreateSystemThreads(dwUnknown);
+CreateSystemThreads(DWORD Unused)
+{
+ /* Thread call for remote processes (non-CSRSS) only */
+ NtUserxCreateSystemThreads(TRUE);
ExitThread(0);
}