LRESULT FASTCALL
IntDispatchMessage(PMSG pMsg)
{
- LARGE_INTEGER TickCount;
LONG Time;
LRESULT retval = 0;
PTHREADINFO pti;
{
if (ValidateTimerCallback(pti,pMsg->lParam))
{
- KeQueryTickCount(&TickCount);
- Time = MsqCalculateMessageTime(&TickCount);
+ Time = EngGetTickCount32();
retval = co_IntCallWindowProc((WNDPROC)pMsg->lParam,
TRUE,
pMsg->hwnd,
PTIMER pTimer = FindSystemTimer(pMsg);
if (pTimer && pTimer->pfn)
{
- KeQueryTickCount(&TickCount);
- Time = MsqCalculateMessageTime(&TickCount);
+ Time = EngGetTickCount32();
pTimer->pfn(pMsg->hwnd, WM_SYSTIMER, (UINT)pMsg->wParam, Time);
}
return 0;
BOOL bGMSG )
{
PTHREADINFO pti;
- LARGE_INTEGER LargeTickCount;
BOOL RemoveMessages;
UINT ProcessMask;
BOOL Hit = FALSE;
do
{
- KeQueryTickCount(&LargeTickCount);
- pti->timeLast = LargeTickCount.u.LowPart;
- pti->pcti->tickLastMsgChecked = LargeTickCount.u.LowPart;
+ pti->timeLast = EngGetTickCount32();
+ pti->pcti->tickLastMsgChecked = pti->timeLast;
// Post mouse moves while looping through peek messages.
if (pti->MessageQueue->QF_flags & QF_MOUSEMOVED)
LPARAM lParam )
{
MSG Message;
- LARGE_INTEGER LargeTickCount;
if (is_pointer_message(Msg))
{
Message.wParam = wParam;
Message.lParam = lParam;
Message.pt = gpsi->ptCursor;
-
- KeQueryTickCount(&LargeTickCount);
- Message.time = MsqCalculateMessageTime(&LargeTickCount);
+ Message.time = EngGetTickCount32();
MsqPostMessage(pti, &Message, FALSE, QS_POSTMESSAGE, 0, 0);
return TRUE;
}
{
PTHREADINFO pti;
MSG Message;
- LARGE_INTEGER LargeTickCount;
LONG_PTR ExtraInfo = 0;
Message.hwnd = Wnd;
Message.wParam = wParam;
Message.lParam = lParam;
Message.pt = gpsi->ptCursor;
- KeQueryTickCount(&LargeTickCount);
- Message.time = MsqCalculateMessageTime(&LargeTickCount);
+ Message.time = EngGetTickCount32();
if (is_pointer_message(Message.message))
{
if (Status == STATUS_TIMEOUT)
{
- if (MsqIsHung(ptiSendTo))
+ if (0 && MsqIsHung(ptiSendTo))
{
TRACE("Let's go Ghost!\n");
IntMakeHungWindowGhosted(hWnd);