mirror of
https://github.com/reactos/reactos.git
synced 2024-11-04 22:00:55 +00:00
[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 svn path=/trunk/; revision=65825
This commit is contained in:
parent
5195c10036
commit
ea4e02fba0
3 changed files with 13 additions and 12 deletions
|
@ -346,8 +346,8 @@ NtUserCallOneParam(
|
|||
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:
|
||||
|
|
|
@ -503,7 +503,7 @@ SetMenuContextHelpId(HMENU hmenu, DWORD dwContextHelpId)
|
|||
EXTINLINE HWND WINAPI
|
||||
SetCapture(HWND hWnd)
|
||||
{
|
||||
return(NtUserSetCapture(hWnd));
|
||||
return NtUserSetCapture(hWnd);
|
||||
}
|
||||
|
||||
EXTINLINE BOOL WINAPI
|
||||
|
@ -541,17 +541,17 @@ EXTINLINE BOOL NtUserxDestroyCaret(VOID)
|
|||
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 @@ EXTINLINE BOOL NtUserxReleaseCapture(VOID)
|
|||
return (BOOL)NtUserCallNoParam(NOPARAM_ROUTINE_RELEASECAPTURE);
|
||||
}
|
||||
|
||||
EXTINLINE BOOL NtUserxInitMessagePump()
|
||||
EXTINLINE BOOL NtUserxInitMessagePump(VOID)
|
||||
{
|
||||
return NtUserCallNoParam(NOPARAM_ROUTINE_INIT_MESSAGE_PUMP);
|
||||
return (BOOL)NtUserCallNoParam(NOPARAM_ROUTINE_INIT_MESSAGE_PUMP);
|
||||
}
|
||||
|
||||
EXTINLINE BOOL NtUserxUnInitMessagePump()
|
||||
EXTINLINE BOOL NtUserxUnInitMessagePump(VOID)
|
||||
{
|
||||
return NtUserCallNoParam(NOPARAM_ROUTINE_UNINIT_MESSAGE_PUMP);
|
||||
}
|
||||
|
@ -641,9 +641,9 @@ EXTINLINE UINT NtUserxRealizePalette(HDC hDC)
|
|||
return (UINT)NtUserCallOneParam((DWORD_PTR)hDC, ONEPARAM_ROUTINE_REALIZEPALETTE);
|
||||
}
|
||||
|
||||
EXTINLINE VOID NtUserxCreateSystemThreads(DWORD param)
|
||||
EXTINLINE VOID NtUserxCreateSystemThreads(BOOL bRemoteProcess)
|
||||
{
|
||||
NtUserCallOneParam(param, ONEPARAM_ROUTINE_CREATESYSTEMTHREADS);
|
||||
NtUserCallOneParam(bRemoteProcess, ONEPARAM_ROUTINE_CREATESYSTEMTHREADS);
|
||||
}
|
||||
|
||||
EXTINLINE HDWP NtUserxBeginDeferWindowPos(INT nNumWindows)
|
||||
|
|
|
@ -512,9 +512,10 @@ BuildReasonArray(PVOID Pointer)
|
|||
|
||||
VOID
|
||||
WINAPI
|
||||
CreateSystemThreads(DWORD dwUnknown)
|
||||
CreateSystemThreads(DWORD Unused)
|
||||
{
|
||||
NtUserxCreateSystemThreads(dwUnknown);
|
||||
/* Thread call for remote processes (non-CSRSS) only */
|
||||
NtUserxCreateSystemThreads(TRUE);
|
||||
ExitThread(0);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue