#include "precomp.h"
#include "pnp.h"
Go to the source code of this file.
Defines | |
#define | IsASwitchWnd(pw) (gpsi->atomSysClass[ICLS_SWITCH] == pw->pcls->atomClassName) |
#define | IsOleMainThreadWnd(pw) (gaOleMainThreadWndClass == pw->pcls->atomClassName) |
#define | fBroadcastProc(pwnd) (!(ISAMENU(pwnd) || IsASwitchWnd(pwnd) || IsOleMainThreadWnd(pwnd))) |
#define | XXXSENDMESSAGETOCLIENT(pwnd, message, wParam, lParam, psms, fLock) |
#define | NoString 0 |
#define | IsAnsiString 1 |
#define | IsUnicodeString 2 |
Functions | |
VOID | UnlinkSendListSms (PSMS, PSMS *) |
VOID | ReceiverDied (PSMS, PSMS *) |
VOID | SenderDied (PSMS, PSMS *) |
NTSTATUS | InitSMSLookaside (VOID) |
PVOID | StubAllocSMS (POOL_TYPE PoolType, SIZE_T uBytes, ULONG iTag) |
VOID | StubFreeSMS (PVOID p) |
NTSTATUS | InitSMSLookaside () |
PSMS | AllocSMS (VOID) |
void | FreeSMS (PSMS psms) |
BOOL | _ReplyMessage (LRESULT lRet) |
VOID | UserLogError (PCWSTR pwszError, ULONG cbError, NTSTATUS ErrorCode) |
BOOL | xxxSendBSMtoDesktop (PWND pwndDesk, UINT message, WPARAM wParam, LPARAM lParam, LPBROADCASTSYSTEMMSGPARAMS pbsmParams) |
LONG | xxxSendMessageBSM (PWND pwnd, UINT message, WPARAM wParam, LPARAM lParam, LPBROADCASTSYSTEMMSGPARAMS pbsmParams) |
LRESULT | xxxSendMessageFF (PWND pwnd, UINT message, WPARAM wParam, LPARAM lParam, ULONG_PTR xParam) |
LRESULT | xxxSendMessageEx (PWND pwnd, UINT message, WPARAM wParam, LPARAM lParam, ULONG_PTR xParam) |
LRESULT | xxxSendMessage (PWND pwnd, UINT message, WPARAM wParam, LPARAM lParam) |
LRESULT | xxxSendMessageTimeout (PWND pwnd, UINT message, WPARAM wParam, LPARAM lParam, UINT fuFlags, UINT uTimeout, PLONG_PTR lpdwResult) |
void | QueueNotifyMessage (PWND pwnd, UINT message, WPARAM wParam, LPARAM lParam) |
VOID | xxxSystemBroadcastMessage (UINT message, WPARAM wParam, LPARAM lParam, UINT wCmd, PBROADCASTMSG pbcm) |
BOOL | xxxSendNotifyMessage (PWND pwnd, UINT message, WPARAM wParam, LPARAM lParam) |
BOOL | xxxSendMessageCallback (PWND pwnd, UINT message, WPARAM wParam, LPARAM lParam, SENDASYNCPROC lpResultCallBack, ULONG_PTR dwData, BOOL fClientRequest) |
LRESULT | xxxInterSendMsgEx (PWND pwnd, UINT message, WPARAM wParam, LPARAM lParam, PTHREADINFO ptiSender, PTHREADINFO ptiReceiver, PINTRSENDMSGEX pism) |
VOID | xxxReceiveMessage (PTHREADINFO ptiReceiver) |
VOID | SendMsgCleanup (PTHREADINFO ptiCurrent) |
VOID | ClearSendMessages (PWND pwnd) |
void | xxxSendSizeMessage (PWND pwnd, UINT cmdSize) |
VOID | xxxProcessAsyncSendMessage (PASYNCSENDMSG pmsg) |
LONG | xxxBroadcastMessage (PWND pwnd, UINT message, WPARAM wParam, LPARAM lParam, UINT wCmd, PBROADCASTMSG pbcm) |
Variables | |
PPAGED_LOOKASIDE_LIST | SMSLookaside |
|
Definition at line 98 of file kernel/sendmsg.c. Referenced by xxxSendBSMtoDesktop(). |
|
Definition at line 1293 of file kernel/sendmsg.c. Referenced by xxxInterSendMsgEx(). |
|
Definition at line 18 of file kernel/sendmsg.c. |
|
Definition at line 21 of file kernel/sendmsg.c. |
|
Definition at line 1294 of file kernel/sendmsg.c. Referenced by xxxInterSendMsgEx(). |
|
Definition at line 1292 of file kernel/sendmsg.c. Referenced by NlsKbdInitializePerSystem(), and xxxInterSendMsgEx(). |
|
Definition at line 705 of file kernel/sendmsg.c. Referenced by xxxReceiveMessage(), xxxSendMessageCallback(), and xxxSendMessageTimeout(). |
|
Definition at line 198 of file kernel/sendmsg.c. References BOOL, CheckCritIn, DirectedScheduleTask(), tagINTERSENDMSGEX::dwData, FALSE, tagINTERSENDMSGEX::fuCall, INTRSENDMSGEX, ISM_CALLBACK, ISM_CB_CLIENT, ISM_REPLY, L, tagINTERSENDMSGEX::lpResultCallBack, tagINTERSENDMSGEX::lRet, NULL, PSMS, tagTHREADINFO::psmsCurrent, PtiCurrent, SetWakeBit(), SMF_CB_CLIENT, SMF_CB_REQUEST, SMF_REPLY, SMF_SENDERDIED, ThreadLockWithPti, ThreadUnlock, TIF_16BIT, tagTHREADINFO::TIF_flags, TRUE, xxxInterSendMsgEx(), and xxxSleepTask().
|
|
Definition at line 164 of file kernel/sendmsg.c. References ExAllocateFromPagedLookasideList(), PSMS, and SMSLookaside. Referenced by xxxInterSendMsgEx().
|
|
Definition at line 2400 of file kernel/sendmsg.c. Referenced by xxxFreeWindow().
|
|
Definition at line 178 of file kernel/sendmsg.c. References ExFreeToPagedLookasideList(), and SMSLookaside. Referenced by Win32kNtUserCleanup(), and xxxInterSendMsgEx().
|
|
Definition at line 137 of file kernel/sendmsg.c. References ExInitializePagedLookasideList(), NULL, POOL_QUOTA_FAIL_INSTEAD_OF_RAISE, SMS, SMSLookaside, StubAllocSMS(), and StubFreeSMS(). Referenced by Win32UserInitialize().
|
|
|
|
Definition at line 969 of file kernel/sendmsg.c. Referenced by CancelInputState(), DoQueuedSyncPaint(), xxxActivateApp(), xxxResetDisplayDevice(), and xxxSendBSMtoDesktop().
|
|
Definition at line 2534 of file kernel/sendmsg.c. References DirectedScheduleTask(), tagINTERSENDMSGEX::dwData, FALSE, tagCLIENTTHREADINFO::fsChangeBits, tagCLIENTTHREADINFO::fsWakeBits, tagINTERSENDMSGEX::fuCall, ISM_CALLBACK, ISM_CB_CLIENT, ISM_REPLY, L, tagINTERSENDMSGEX::lpResultCallBack, tagINTERSENDMSGEX::lRet, NULL, tagTHREADINFO::pcti, PSMS, tagTHREADINFO::psmsReceiveList, SetWakeBit(), SMF_CB_CLIENT, SMF_CB_REQUEST, SMF_RECEIVERBUSY, SMF_RECEIVERDIED, SMF_RECEIVERFREE, SMF_REPLY, SMF_SENDERDIED, ThreadLock, ThreadUnlock, TIF_16BIT, tagTHREADINFO::TIF_flags, TIF_INCLEANUP, UnlinkSendListSms(), Unlock, VOID(), and xxxInterSendMsgEx().
|
|
Definition at line 2680 of file kernel/sendmsg.c. Referenced by SendMsgCleanup().
|
|
Definition at line 2364 of file kernel/sendmsg.c. References CheckCritIn, gpsmsList, PSMS, ReceiverDied(), SenderDied(), and VOID(). Referenced by xxxDestroyThreadInfo(), and zzzCancelJournalling().
|
|
Definition at line 111 of file kernel/sendmsg.c. Referenced by InitSMSLookaside().
|
|
Definition at line 121 of file kernel/sendmsg.c. References VOID(). Referenced by InitSMSLookaside().
|
|
Definition at line 2770 of file kernel/sendmsg.c. Referenced by ReceiverDied(), xxxInterSendMsgEx(), and xxxReceiveMessage().
|
|
Definition at line 292 of file kernel/sendmsg.c. References gpWin32kDriverObject, IoAllocateErrorLogEntry(), and IoWriteErrorLogEntry(). Referenced by xxxSendBSMtoDesktop().
|
|
Definition at line 2937 of file kernel/sendmsg.c. Referenced by _PostMessage(), xxxBroadcastDisplaySettingsChange(), xxxSendMessageCallback(), xxxSendMessageTimeout(), xxxSystemBroadcastMessage(), and xxxUserResetDisplayDevice().
|
|
Definition at line 1296 of file kernel/sendmsg.c. References AllocSMS(), _LARGE_STRING::bAnsi, BOOL, _LARGE_STRING::Buffer, tagTHREADINFO::cEnterCount, CheckCritIn, CMSHUNGAPPTIMEOUT, DirectedScheduleTask(), tagINTERSENDMSGEX::dwData, DWORD, EFPASSWORD, FALSE, FHungApp(), FNID_EDIT, FreeSMS(), tagCLIENTTHREADINFO::fsChangeBits, tagINTERSENDMSGEX::fuCall, tagINTERSENDMSGEX::fuSend, GETFNID, GETPTI, gpsmsList, INT, IS_SYSTEM_ADDRESS, IsAnsiString, ISM_CALLBACK, ISM_CB_CLIENT, ISM_REPLY, IsUnicodeString, KeSetKernelStackSwapEnable(), _LARGE_STRING::Length, Lock, tagINTERSENDMSGEX::lpdwResult, tagINTERSENDMSGEX::lpResultCallBack, LPVOID, tagINTERSENDMSGEX::lRet, _LARGE_STRING::MaximumLength, _MDICREATESTRUCTEX::mdics, NoString, NtGetTickCount(), NULL, PBYTE, tagTHREADINFO::pcti, PpiCurrent, PSMS, tagTHREADINFO::psmsCurrent, tagTHREADINFO::psmsReceiveList, tagTHREADINFO::psmsSent, PtiCurrent, SetWakeBit(), SMF_CB_CLIENT, SMF_CB_REPLY, SMF_CB_REQUEST, SMF_CB_SERVER, SMF_RECEIVEDMESSAGE, SMF_RECEIVERBUSY, SMF_RECEIVERFREE, SMF_REPLY, _MDICREATESTRUCTEX::strClass, strncpycch(), _MDICREATESTRUCTEX::strTitle, TestWF, TIF_16BIT, tagTHREADINFO::TIF_flags, TIF_INCLEANUP, TRUE, UINT, UnlinkSendListSms(), tagINTERSENDMSGEX::uTimeout, wcsncpycch(), and xxxSleepThread(). Referenced by _ReplyMessage(), ReceiverDied(), xxxCallHook2(), xxxReceiveMessage(), xxxSendMessageCallback(), and xxxSendMessageTimeout().
|
|
Definition at line 2891 of file kernel/sendmsg.c. Referenced by xxxProcessEventMessage().
|
|
Definition at line 1964 of file kernel/sendmsg.c. References BOOL, CallClientProcA, CheckCritIn, tagCLIENTTHREADINFO::CTIF_flags, CTIF_INSENDMESSAGE, DirectedScheduleTask(), tagINTERSENDMSGEX::dwData, FALSE, tagCLIENTTHREADINFO::fsChangeBits, tagCLIENTTHREADINFO::fsWakeBits, tagINTERSENDMSGEX::fuCall, HW, tagHOOK::iHook, IsHooked, ISM_CALLBACK, ISM_CB_CLIENT, ISM_REPLY, L, tagHOOKMSGSTRUCT::lParam, tagINTERSENDMSGEX::lpResultCallBack, _CWPRETSTRUCTEX::lResult, tagINTERSENDMSGEX::lRet, tagHOOKMSGSTRUCT::nCode, NULL, tagTHREADINFO::pcti, tagHOOKMSGSTRUCT::phk, PHOOKMSGSTRUCT, PSMS, tagTHREADINFO::psmsCurrent, tagTHREADINFO::psmsReceiveList, _CWPSTRUCTEX::psmsSender, _CWPRETSTRUCTEX::psmsSender, tagTHREADINFO::psmsSent, SET_FLAG, SET_OR_CLEAR_FLAG, SetWakeBit(), SMF_CB_CLIENT, SMF_CB_REPLY, SMF_CB_REQUEST, SMF_RECEIVEDMESSAGE, SMF_RECEIVERBUSY, SMF_RECEIVERDIED, SMF_RECEIVERFREE, SMF_REPLY, SMF_SENDERDIED, TestWF, ThreadLock, ThreadUnlock, TIF_16BIT, tagTHREADINFO::TIF_flags, TRUE, UnlinkSendListSms(), VOID(), WFSERVERSIDEPROC, WHF_CALLWNDPROC, WHF_CALLWNDPROCRET, xxxCallHook(), xxxCallHook2(), xxxInterSendMsgEx(), XXXSENDMESSAGETOCLIENT, and xxxSleepTask().
|
|
Definition at line 315 of file kernel/sendmsg.c. References _PostMessage(), BOOL, BuildHwndList(), BWL_ENUMLIST, CanForceForeground(), CMSWAITTOKILLTIMEOUT, DWORD, fBroadcastProc, FreeHwndList(), GETPDESK, GETPTI, GetTaskName(), glinp, grpdeskRitInput, LPBROADCASTSYSTEMMSGPARAMS, NULL, tagTHREADINFO::ppi, tagTHREADINFO::pq, PtiCurrent, tagLASTINPUT::ptiLastWoken, QueueNotifyMessage(), RevalidateHwnd, tagBWL::rghwnd, tagWND::spwndChild, TestWF, ThreadLockAlwaysWithPti, ThreadUnlock, TIF_CSRSSTHREAD, tagTHREADINFO::TIF_flags, TRUE, UserLogError(), WFWIN40COMPAT, xxxSendMessageTimeout(), and xxxSendNotifyMessage(). Referenced by xxxSendMessageBSM().
|
|
|
Definition at line 466 of file kernel/sendmsg.c. References EnterCrit, FALSE, gbRemoteSession, grpWinStaList, IoPnPDeliverServicePowerNotification(), LeaveCrit, NULL, tagDESKTOP::pDeskInfo, PtiCurrent, tagWINDOWSTATION::rpdeskList, tagDESKTOP::rpdeskNext, tagWINDOWSTATION::rpwinstaNext, tagDESKTOPINFO::spwnd, ThreadLockDesktop, ThreadLockExchangeDesktop, ThreadLockExchangeWinSta, ThreadLockWinSta, ThreadUnlockDesktop, ThreadUnlockWinSta, TRUE, and xxxSendBSMtoDesktop(). Referenced by xxxUserPowerEventCalloutWorker(), xxxUserPowerStateCalloutWorker(), and xxxWrapSendMessageBSM().
|
|
Definition at line 1114 of file kernel/sendmsg.c. References BMSG_SENDMSGCALLBACK, BMSG_SENDNOTIFYMSG, BOOL, CallClientProcA, tagBROADCASTMSG::cb, CheckCritIn, CheckLock, tagINTERSENDMSGEX::dwData, FALSE, tagINTERSENDMSGEX::fuCall, GETPTI, HWq, IsHooked, ISM_CALLBACK, ISM_CB_CLIENT, L, tagWND::lpfnWndProc, tagINTERSENDMSGEX::lpResultCallBack, _CWPRETSTRUCTEX::lResult, NULL, _CWPSTRUCTEX::psmsSender, _CWPRETSTRUCTEX::psmsSender, PtiCurrent, PWND_BROADCAST, TESTSYNCONLYMESSAGE, TestWF, TRUE, UINT, WFSERVERSIDEPROC, WHF_CALLWNDPROC, WHF_CALLWNDPROCRET, xxxBroadcastMessage(), xxxCallHook(), xxxInterSendMsgEx(), and XXXSENDMESSAGETOCLIENT. Referenced by NtUserSendMessageCallback(), xxxCapture(), xxxFocusSetInputContext(), xxxPaintIconsInSwitchWindow(), and xxxSendNotifyMessage().
|
|
Definition at line 609 of file kernel/sendmsg.c. References FALSE, tagSNDMSGTIMEOUT::fuFlags, L, tagSNDMSGTIMEOUT::lSMTOResult, tagSNDMSGTIMEOUT::lSMTOReturn, NT_SUCCESS, NTSTATUS(), NULL, ProbeForWrite(), PsGetCurrentThread, SNDMSGTIMEOUT, Status, tagSNDMSGTIMEOUT::uTimeout, and xxxSendMessageTimeout(). Referenced by InitFunctionTables(), and xxxSendMessageFF().
|
|
Definition at line 556 of file kernel/sendmsg.c. References L, NULL, PWND_BROADCAST, xxxSendMessageEx(), and xxxSendMessageTimeout(). Referenced by InitFunctionTables().
|
|
Definition at line 764 of file kernel/sendmsg.c. References BMSG_SENDMSG, BMSG_SENDMSGTIMEOUT, BROADCASTMSG, CheckCritIn, CheckLock, CMSWAITTOKILLTIMEOUT, CWPRETSTRUCTEX, CWPSTRUCTEX, FALSE, FHungApp(), tagINTERSENDMSGEX::fuCall, tagINTERSENDMSGEX::fuSend, GETPTI, guDdeSendTimeout, HMIsMarkDestroy, HWq, IsHooked, ISM_TIMEOUT, KeGetCurrentThread, KERNEL_STACK_MINIMUM_RESERVE, L, tagINTERSENDMSGEX::lpdwResult, tagWND::lpfnWndProc, _CWPRETSTRUCTEX::lResult, NULL, PBROADCASTMSG, PINTRSENDMSGEX, _CWPSTRUCTEX::psmsSender, _CWPRETSTRUCTEX::psmsSender, PtiCurrent, PWND_BROADCAST, TestWF, tagBROADCASTMSG::to, TRUE, UINT, tagINTERSENDMSGEX::uTimeout, WFSERVERSIDEPROC, WHF_CALLWNDPROC, WHF_CALLWNDPROCRET, xxxBroadcastMessage(), xxxCallHook(), xxxDDETrackSendHook(), xxxDefWindowProc(), xxxInterSendMsgEx(), and XXXSENDMESSAGETOCLIENT. Referenced by DrawSwitchWndHilite(), xxxGetWindowSmIcon(), xxxImmUnloadLayout(), xxxNextWindow(), xxxQueryDropObject(), xxxSendBSMtoDesktop(), xxxSendClipboardMessage(), xxxSendMessage(), xxxSendMessageEx(), xxxSendMessageFF(), xxxSendMinRectMessages(), xxxSystemParametersInfo(), and xxxWrapSendMessage().
|
|
Definition at line 1069 of file kernel/sendmsg.c. References BMSG_SENDNOTIFYMSG, BOOL, L, NULL, PWND_BROADCAST, xxxSendMessageCallback(), and xxxSystemBroadcastMessage(). Referenced by FullScreenCleanup(), NtUserSendNotifyMessage(), xxxActivateThisWindow(), xxxBroadcastPaletteChanged(), xxxDesktopWndProc(), xxxDrawClipboard(), xxxMNLoop(), xxxNextWindow(), xxxOldNextWindow(), xxxSendBSMtoDesktop(), xxxSendClipboardMessage(), xxxSendMenuSelect(), xxxSetDeskPattern(), xxxSetDeskWallpaper(), and xxxSetSysColors().
|
|
Definition at line 2861 of file kernel/sendmsg.c. Referenced by xxxCreateWindowEx(), xxxHandleWindowPosChanged(), and xxxShowWindow().
|
|
Definition at line 1002 of file kernel/sendmsg.c. References BMSG_SENDMSG, BMSG_SENDNOTIFYMSG, grpWinStaList, NULL, tagDESKTOP::pDeskInfo, PtiCurrent, tagTHREADINFO::rpdesk, tagWINDOWSTATION::rpdeskList, tagDESKTOP::rpdeskNext, tagWINDOWSTATION::rpwinstaNext, tagDESKTOP::rpwinstaParent, tagDESKTOPINFO::spwnd, ThreadLockDesktop, ThreadLockExchangeDesktop, ThreadLockExchangeWinSta, ThreadLockWinSta, ThreadUnlockDesktop, ThreadUnlockWinSta, UINT, VOID(), and xxxBroadcastMessage(). Referenced by xxxSendNotifyMessage().
|
|
Definition at line 34 of file kernel/sendmsg.c. Referenced by AllocSMS(), FreeSMS(), InitSMSLookaside(), and Win32kNtUserCleanup(). |