mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 19:03:00 +00:00
[FORMATTING]
- Fix formatting in message.c svn path=/trunk/; revision=49313
This commit is contained in:
parent
8e45fe3079
commit
97a11cb468
1 changed files with 2040 additions and 2069 deletions
|
@ -323,11 +323,8 @@ UnpackParam(LPARAM lParamPacked, UINT Msg, WPARAM wParam, LPARAM lParam, BOOL No
|
||||||
return STATUS_INVALID_PARAMETER;
|
return STATUS_INVALID_PARAMETER;
|
||||||
}
|
}
|
||||||
|
|
||||||
static
|
static VOID FASTCALL
|
||||||
VOID
|
IntCallWndProc( PWND Window, HWND hWnd, UINT Msg, WPARAM wParam, LPARAM lParam)
|
||||||
FASTCALL
|
|
||||||
IntCallWndProc
|
|
||||||
( PWND Window, HWND hWnd, UINT Msg, WPARAM wParam, LPARAM lParam)
|
|
||||||
{
|
{
|
||||||
BOOL SameThread = FALSE;
|
BOOL SameThread = FALSE;
|
||||||
CWPSTRUCT CWP;
|
CWPSTRUCT CWP;
|
||||||
|
@ -342,11 +339,8 @@ IntCallWndProc
|
||||||
co_HOOK_CallHooks( WH_CALLWNDPROC, HC_ACTION, SameThread, (LPARAM)&CWP );
|
co_HOOK_CallHooks( WH_CALLWNDPROC, HC_ACTION, SameThread, (LPARAM)&CWP );
|
||||||
}
|
}
|
||||||
|
|
||||||
static
|
static VOID FASTCALL
|
||||||
VOID
|
IntCallWndProcRet ( PWND Window, HWND hWnd, UINT Msg, WPARAM wParam, LPARAM lParam, LRESULT *uResult)
|
||||||
FASTCALL
|
|
||||||
IntCallWndProcRet
|
|
||||||
( PWND Window, HWND hWnd, UINT Msg, WPARAM wParam, LPARAM lParam, LRESULT *uResult)
|
|
||||||
{
|
{
|
||||||
BOOL SameThread = FALSE;
|
BOOL SameThread = FALSE;
|
||||||
CWPRETSTRUCT CWPR;
|
CWPRETSTRUCT CWPR;
|
||||||
|
@ -362,8 +356,7 @@ IntCallWndProcRet
|
||||||
co_HOOK_CallHooks( WH_CALLWNDPROCRET, HC_ACTION, SameThread, (LPARAM)&CWPR );
|
co_HOOK_CallHooks( WH_CALLWNDPROCRET, HC_ACTION, SameThread, (LPARAM)&CWPR );
|
||||||
}
|
}
|
||||||
|
|
||||||
LRESULT
|
LRESULT FASTCALL
|
||||||
FASTCALL
|
|
||||||
IntDispatchMessage(PMSG pMsg)
|
IntDispatchMessage(PMSG pMsg)
|
||||||
{
|
{
|
||||||
LARGE_INTEGER TickCount;
|
LARGE_INTEGER TickCount;
|
||||||
|
@ -517,8 +510,7 @@ co_IntSendHitTestMessages(PUSER_MESSAGE_QUEUE ThreadQueue, LPMSG Msg)
|
||||||
}
|
}
|
||||||
|
|
||||||
BOOL FASTCALL
|
BOOL FASTCALL
|
||||||
co_IntActivateWindowMouse(
|
co_IntActivateWindowMouse( PUSER_MESSAGE_QUEUE ThreadQueue,
|
||||||
PUSER_MESSAGE_QUEUE ThreadQueue,
|
|
||||||
LPMSG Msg,
|
LPMSG Msg,
|
||||||
PWND MsgWindow,
|
PWND MsgWindow,
|
||||||
USHORT *HitTest)
|
USHORT *HitTest)
|
||||||
|
@ -562,8 +554,7 @@ co_IntActivateWindowMouse(
|
||||||
}
|
}
|
||||||
|
|
||||||
BOOL FASTCALL
|
BOOL FASTCALL
|
||||||
co_IntTranslateMouseMessage(
|
co_IntTranslateMouseMessage( PUSER_MESSAGE_QUEUE ThreadQueue,
|
||||||
PUSER_MESSAGE_QUEUE ThreadQueue,
|
|
||||||
LPMSG Msg,
|
LPMSG Msg,
|
||||||
USHORT *HitTest,
|
USHORT *HitTest,
|
||||||
BOOL Remove)
|
BOOL Remove)
|
||||||
|
@ -871,8 +862,7 @@ co_IntPeekMessage( PUSER_MESSAGE Msg,
|
||||||
ThreadQueue->LastMsgRead = LargeTickCount.u.LowPart;
|
ThreadQueue->LastMsgRead = LargeTickCount.u.LowPart;
|
||||||
|
|
||||||
/* Dispatch sent messages here. */
|
/* Dispatch sent messages here. */
|
||||||
while (co_MsqDispatchOneSentMessage(ThreadQueue))
|
while (co_MsqDispatchOneSentMessage(ThreadQueue)) ;
|
||||||
;
|
|
||||||
|
|
||||||
/* Now look for a quit message. */
|
/* Now look for a quit message. */
|
||||||
|
|
||||||
|
@ -1108,8 +1098,7 @@ co_IntGetPeekMessage( PMSG pMsg,
|
||||||
PWND Window;
|
PWND Window;
|
||||||
USER_MESSAGE Msg;
|
USER_MESSAGE Msg;
|
||||||
|
|
||||||
if ( hWnd == HWND_TOPMOST ||
|
if ( hWnd == HWND_TOPMOST || hWnd == HWND_BROADCAST )
|
||||||
hWnd == HWND_BROADCAST )
|
|
||||||
hWnd = HWND_BOTTOM;
|
hWnd = HWND_BOTTOM;
|
||||||
|
|
||||||
/* Validate input */
|
/* Validate input */
|
||||||
|
@ -1241,11 +1230,12 @@ UserPostMessage( HWND Wnd,
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!Wnd)
|
if (!Wnd)
|
||||||
|
{
|
||||||
return UserPostThreadMessage( PtrToInt(PsGetCurrentThreadId()),
|
return UserPostThreadMessage( PtrToInt(PsGetCurrentThreadId()),
|
||||||
Msg,
|
Msg,
|
||||||
wParam,
|
wParam,
|
||||||
lParam);
|
lParam);
|
||||||
|
}
|
||||||
if (Wnd == HWND_BROADCAST)
|
if (Wnd == HWND_BROADCAST)
|
||||||
{
|
{
|
||||||
HWND *List;
|
HWND *List;
|
||||||
|
@ -1259,7 +1249,9 @@ UserPostMessage( HWND Wnd,
|
||||||
{
|
{
|
||||||
UserPostMessage(DesktopWindow->head.h, Msg, wParam, lParam);
|
UserPostMessage(DesktopWindow->head.h, Msg, wParam, lParam);
|
||||||
for (i = 0; List[i]; i++)
|
for (i = 0; List[i]; i++)
|
||||||
|
{
|
||||||
UserPostMessage(List[i], Msg, wParam, lParam);
|
UserPostMessage(List[i], Msg, wParam, lParam);
|
||||||
|
}
|
||||||
ExFreePool(List);
|
ExFreePool(List);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1321,8 +1313,7 @@ co_IntSendMessage( HWND hWnd,
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static
|
static LRESULT FASTCALL
|
||||||
LRESULT FASTCALL
|
|
||||||
co_IntSendMessageTimeoutSingle( HWND hWnd,
|
co_IntSendMessageTimeoutSingle( HWND hWnd,
|
||||||
UINT Msg,
|
UINT Msg,
|
||||||
WPARAM wParam,
|
WPARAM wParam,
|
||||||
|
@ -1505,7 +1496,8 @@ co_IntSendMessageTimeout( HWND hWnd,
|
||||||
return (LRESULT) TRUE;
|
return (LRESULT) TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
LRESULT FASTCALL co_IntSendMessageNoWait(HWND hWnd,
|
LRESULT FASTCALL
|
||||||
|
co_IntSendMessageNoWait(HWND hWnd,
|
||||||
UINT Msg,
|
UINT Msg,
|
||||||
WPARAM wParam,
|
WPARAM wParam,
|
||||||
LPARAM lParam)
|
LPARAM lParam)
|
||||||
|
@ -1739,8 +1731,7 @@ co_IntDoSendMessage( HWND hWnd,
|
||||||
/* Gather the information usermode needs to call the window proc directly */
|
/* Gather the information usermode needs to call the window proc directly */
|
||||||
Info.HandledByKernel = FALSE;
|
Info.HandledByKernel = FALSE;
|
||||||
|
|
||||||
Status = MmCopyFromCaller(&(Info.Ansi), &(UnsafeInfo->Ansi),
|
Status = MmCopyFromCaller(&(Info.Ansi), &(UnsafeInfo->Ansi), sizeof(BOOL));
|
||||||
sizeof(BOOL));
|
|
||||||
if (! NT_SUCCESS(Status))
|
if (! NT_SUCCESS(Status))
|
||||||
{
|
{
|
||||||
Info.Ansi = ! Window->Unicode;
|
Info.Ansi = ! Window->Unicode;
|
||||||
|
@ -2163,10 +2154,8 @@ CLEANUP:
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
BOOL
|
BOOL APIENTRY
|
||||||
APIENTRY
|
NtUserGetMessageX(PMSG pMsg,
|
||||||
NtUserGetMessageX(
|
|
||||||
PMSG pMsg,
|
|
||||||
HWND hWnd,
|
HWND hWnd,
|
||||||
UINT MsgFilterMin,
|
UINT MsgFilterMin,
|
||||||
UINT MsgFilterMax)
|
UINT MsgFilterMax)
|
||||||
|
@ -2306,10 +2295,8 @@ CLEANUP:
|
||||||
END_CLEANUP;
|
END_CLEANUP;
|
||||||
}
|
}
|
||||||
|
|
||||||
BOOL
|
BOOL APIENTRY
|
||||||
APIENTRY
|
NtUserPeekMessageX( PMSG pMsg,
|
||||||
NtUserPeekMessageX(
|
|
||||||
PMSG pMsg,
|
|
||||||
HWND hWnd,
|
HWND hWnd,
|
||||||
UINT MsgFilterMin,
|
UINT MsgFilterMin,
|
||||||
UINT MsgFilterMax,
|
UINT MsgFilterMax,
|
||||||
|
@ -2354,11 +2341,8 @@ CLEANUP:
|
||||||
END_CLEANUP;
|
END_CLEANUP;
|
||||||
}
|
}
|
||||||
|
|
||||||
BOOL
|
BOOL APIENTRY
|
||||||
APIENTRY
|
NtUserCallMsgFilter( LPMSG lpmsg, INT code)
|
||||||
NtUserCallMsgFilter(
|
|
||||||
LPMSG lpmsg,
|
|
||||||
INT code)
|
|
||||||
{
|
{
|
||||||
BOOL BadChk = FALSE, Ret = FALSE;
|
BOOL BadChk = FALSE, Ret = FALSE;
|
||||||
MSG Msg;
|
MSG Msg;
|
||||||
|
@ -2370,12 +2354,8 @@ NtUserCallMsgFilter(
|
||||||
{
|
{
|
||||||
_SEH2_TRY
|
_SEH2_TRY
|
||||||
{
|
{
|
||||||
ProbeForRead((PVOID)lpmsg,
|
ProbeForRead(lpmsg, sizeof(MSG), 1);
|
||||||
sizeof(MSG),
|
RtlCopyMemory( &Msg, lpmsg, sizeof(MSG));
|
||||||
1);
|
|
||||||
RtlCopyMemory( &Msg,
|
|
||||||
(PVOID)lpmsg,
|
|
||||||
sizeof(MSG));
|
|
||||||
}
|
}
|
||||||
_SEH2_EXCEPT(EXCEPTION_EXECUTE_HANDLER)
|
_SEH2_EXCEPT(EXCEPTION_EXECUTE_HANDLER)
|
||||||
{
|
{
|
||||||
|
@ -2399,12 +2379,8 @@ NtUserCallMsgFilter(
|
||||||
|
|
||||||
_SEH2_TRY
|
_SEH2_TRY
|
||||||
{
|
{
|
||||||
ProbeForWrite((PVOID)lpmsg,
|
ProbeForWrite(lpmsg, sizeof(MSG), 1);
|
||||||
sizeof(MSG),
|
RtlCopyMemory(lpmsg, &Msg, sizeof(MSG));
|
||||||
1);
|
|
||||||
RtlCopyMemory((PVOID)lpmsg,
|
|
||||||
&Msg,
|
|
||||||
sizeof(MSG));
|
|
||||||
}
|
}
|
||||||
_SEH2_EXCEPT(EXCEPTION_EXECUTE_HANDLER)
|
_SEH2_EXCEPT(EXCEPTION_EXECUTE_HANDLER)
|
||||||
{
|
{
|
||||||
|
@ -2448,8 +2424,7 @@ NtUserDispatchMessage(PMSG UnsafeMsgInfo)
|
||||||
|
|
||||||
|
|
||||||
BOOL APIENTRY
|
BOOL APIENTRY
|
||||||
NtUserTranslateMessage(LPMSG lpMsg,
|
NtUserTranslateMessage(LPMSG lpMsg, UINT flags)
|
||||||
UINT flags)
|
|
||||||
{
|
{
|
||||||
NTSTATUS Status;
|
NTSTATUS Status;
|
||||||
MSG SafeMsg;
|
MSG SafeMsg;
|
||||||
|
@ -2474,8 +2449,7 @@ CLEANUP:
|
||||||
}
|
}
|
||||||
|
|
||||||
BOOL APIENTRY
|
BOOL APIENTRY
|
||||||
NtUserMessageCall(
|
NtUserMessageCall( HWND hWnd,
|
||||||
HWND hWnd,
|
|
||||||
UINT Msg,
|
UINT Msg,
|
||||||
WPARAM wParam,
|
WPARAM wParam,
|
||||||
LPARAM lParam,
|
LPARAM lParam,
|
||||||
|
@ -2522,9 +2496,7 @@ NtUserMessageCall(
|
||||||
{
|
{
|
||||||
_SEH2_TRY
|
_SEH2_TRY
|
||||||
{
|
{
|
||||||
ProbeForWrite((PVOID)ResultInfo,
|
ProbeForWrite((PVOID)ResultInfo, sizeof(BROADCASTPARM), 1);
|
||||||
sizeof(BROADCASTPARM),
|
|
||||||
1);
|
|
||||||
RtlCopyMemory(&parm, (PVOID)ResultInfo, sizeof(BROADCASTPARM));
|
RtlCopyMemory(&parm, (PVOID)ResultInfo, sizeof(BROADCASTPARM));
|
||||||
}
|
}
|
||||||
_SEH2_EXCEPT(EXCEPTION_EXECUTE_HANDLER)
|
_SEH2_EXCEPT(EXCEPTION_EXECUTE_HANDLER)
|
||||||
|
@ -2704,8 +2676,7 @@ NtUserMessageCall(
|
||||||
|
|
||||||
DWORD
|
DWORD
|
||||||
APIENTRY
|
APIENTRY
|
||||||
NtUserWaitForInputIdle(
|
NtUserWaitForInputIdle( IN HANDLE hProcess,
|
||||||
IN HANDLE hProcess,
|
|
||||||
IN DWORD dwMilliseconds,
|
IN DWORD dwMilliseconds,
|
||||||
IN BOOL Unknown2)
|
IN BOOL Unknown2)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue