Something went wrong. Try again.
Reactos
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845#pragma once
#if defined(__GNUC__)#define EXTINLINE extern inline __attribute__((always_inline)) __attribute__((gnu_inline))#elif defined(_MSC_VER)#define EXTINLINE extern __forceinline#else#error#endif
BOOL FASTCALL TestState(PWND, UINT);
#if 0EXTINLINE BOOL WINAPIGetScrollBarInfo(HWND hWnd, LONG idObject, PSCROLLBARINFO psbi){ return NtUserGetScrollBarInfo(hWnd, idObject, psbi);}#endif
EXTINLINE BOOL WINAPIShowScrollBar(HWND hWnd, INT wBar, BOOL bShow){ return NtUserShowScrollBar(hWnd, wBar, bShow);}
EXTINLINE BOOL WINAPICloseDesktop(HDESK hDesktop){ return NtUserCloseDesktop(hDesktop);}
EXTINLINE HDESK WINAPIOpenInputDesktop(DWORD dwFlags, BOOL fInherit, ACCESS_MASK dwDesiredAccess){ return NtUserOpenInputDesktop(dwFlags, fInherit, dwDesiredAccess);}
EXTINLINE BOOL WINAPIPaintDesktop(HDC hdc){ return NtUserPaintDesktop(hdc);}
EXTINLINE BOOL WINAPISetThreadDesktop(HDESK hDesktop){ return NtUserSetThreadDesktop(hDesktop);}
EXTINLINE BOOL WINAPISwitchDesktop(HDESK hDesktop){ return NtUserSwitchDesktop(hDesktop);}
EXTINLINE BOOL WINAPISetShellWindowEx(HWND hwndShell, HWND hwndShellListView){ return NtUserSetShellWindowEx(hwndShell, hwndShellListView);}
EXTINLINE DWORD WINAPIGetGuiResources(HANDLE hProcess, DWORD uiFlags){ return NtUserGetGuiResources(hProcess, uiFlags);}
EXTINLINE BOOL WINAPIGetUserObjectInformationW(HANDLE hObj, int nIndex, PVOID pvInfo, DWORD nLength, LPDWORD lpnLengthNeeded){ return NtUserGetObjectInformation(hObj, nIndex, pvInfo, nLength, lpnLengthNeeded);}
EXTINLINE BOOL WINAPILockWindowUpdate(HWND hWndLock){ return NtUserLockWindowUpdate(hWndLock);}
EXTINLINE BOOL WINAPILockWorkStation(VOID){ return NtUserLockWorkStation();}
EXTINLINE DWORD WINAPIRegisterTasklist(DWORD x){ return NtUserRegisterTasklist(x);}
EXTINLINE DWORD WINAPIDragObject(HWND hwnd1, HWND hwnd2, UINT u1, ULONG_PTR dw1, HCURSOR hc1){ return NtUserDragObject(hwnd1, hwnd2, u1, dw1, hc1);}
EXTINLINE BOOL WINAPIKillTimer(HWND hWnd, UINT_PTR IDEvent){ return NtUserKillTimer(hWnd, IDEvent);}
EXTINLINE UINT_PTR WINAPISetSystemTimer(HWND hWnd, UINT_PTR IDEvent, UINT Period, TIMERPROC TimerFunc){ return NtUserSetSystemTimer(hWnd, IDEvent, Period, TimerFunc);}
EXTINLINE UINT_PTR WINAPISetTimer(HWND hWnd, UINT_PTR IDEvent, UINT Period, TIMERPROC TimerFunc){ return NtUserSetTimer(hWnd, IDEvent, Period, TimerFunc);}
EXTINLINE BOOL WINAPICloseWindowStation(HWINSTA hWinSta){ return NtUserCloseWindowStation(hWinSta);}
EXTINLINE HWINSTA WINAPIGetProcessWindowStation(VOID){ return NtUserGetProcessWindowStation();}
EXTINLINE BOOL WINAPISetProcessWindowStation(HWINSTA hWinSta){ return NtUserSetProcessWindowStation(hWinSta);}
EXTINLINE BOOL WINAPILockWindowStation(HWINSTA hWinSta){ return NtUserLockWindowStation(hWinSta);}
EXTINLINE BOOL WINAPIUnlockWindowStation(HWINSTA hWinSta){ return NtUserUnlockWindowStation(hWinSta);}
EXTINLINE int WINAPICopyAcceleratorTableW(HACCEL hAccelSrc, LPACCEL lpAccelDst, int cAccelEntries){ return NtUserCopyAcceleratorTable(hAccelSrc, lpAccelDst, cAccelEntries);}
EXTINLINE HACCEL WINAPICreateAcceleratorTableW(LPACCEL lpaccl, int cEntries){ return NtUserCreateAcceleratorTable(lpaccl, cEntries);}
EXTINLINE BOOL WINAPICreateCaret(HWND hWnd, HBITMAP hBitmap, int nWidth, int nHeight){ return NtUserCreateCaret(hWnd, hBitmap, nWidth, nHeight);}
EXTINLINE UINT WINAPIGetCaretBlinkTime(VOID){ return NtUserGetCaretBlinkTime();}
EXTINLINE BOOL WINAPIGetCaretPos(LPPOINT lpPoint){ return NtUserGetCaretPos(lpPoint);}
EXTINLINE BOOL WINAPICloseClipboard(VOID){ return NtUserCloseClipboard();}
EXTINLINE INT WINAPICountClipboardFormats(VOID){ return NtUserCountClipboardFormats();}
EXTINLINE BOOL WINAPIEmptyClipboard(VOID){ return NtUserEmptyClipboard();}
EXTINLINE HWND WINAPIGetClipboardOwner(VOID){ return NtUserGetClipboardOwner();}
EXTINLINE DWORD WINAPIGetClipboardSequenceNumber(VOID){ return NtUserGetClipboardSequenceNumber();}
EXTINLINE HWND WINAPIGetClipboardViewer(VOID){ return NtUserGetClipboardViewer();}
EXTINLINE HWND WINAPIGetOpenClipboardWindow(VOID){ return NtUserGetOpenClipboardWindow();}
EXTINLINE INT WINAPIGetPriorityClipboardFormat(UINT *paFormatPriorityList, INT cFormats){ return NtUserGetPriorityClipboardFormat(paFormatPriorityList, cFormats);}
EXTINLINE BOOL WINAPIIsClipboardFormatAvailable(UINT format){ return NtUserIsClipboardFormatAvailable(format);}
EXTINLINE HWND WINAPISetClipboardViewer(HWND hWndNewViewer){ return NtUserSetClipboardViewer(hWndNewViewer);}
EXTINLINE BOOL WINAPIChangeClipboardChain(HWND hWndRemove, HWND hWndNewNext){ return NtUserChangeClipboardChain(hWndRemove, hWndNewNext);}
EXTINLINE BOOL WINAPIGetClipCursor(LPRECT lpRect){ return NtUserGetClipCursor(lpRect);}
EXTINLINE HBRUSH WINAPI GetControlBrush(HWND hwnd, HDC hdc, UINT ctlType){ return NtUserGetControlBrush(hwnd, hdc, ctlType);}
EXTINLINE HBRUSH WINAPI GetControlColor(HWND hwndParent, HWND hwnd, HDC hdc, UINT CtlMsg){ return NtUserGetControlColor(hwndParent, hwnd, hdc, CtlMsg);}
EXTINLINE BOOL WINAPIGetCursorInfo(PCURSORINFO pci){ return NtUserGetCursorInfo(pci);}
EXTINLINE BOOL WINAPIClipCursor(CONST RECT *lpRect){ return NtUserClipCursor((RECT *)lpRect);}
EXTINLINE HCURSOR WINAPISetCursor(HCURSOR hCursor){ return NtUserSetCursor(hCursor);}
EXTINLINE HDC WINAPIGetDC(HWND hWnd){ return NtUserGetDC(hWnd);}
EXTINLINE HDC WINAPIGetDCEx(HWND hWnd, HRGN hrgnClip, DWORD flags){ return NtUserGetDCEx(hWnd, hrgnClip, flags);}
EXTINLINE HDC WINAPIGetWindowDC(HWND hWnd){ return NtUserGetWindowDC(hWnd);}
EXTINLINE BOOL WINAPIFlashWindowEx(PFLASHWINFO pfwi){ return NtUserFlashWindowEx(pfwi);}
EXTINLINE BOOL WINAPIDrawAnimatedRects(HWND hWnd, int idAni, CONST RECT *lprcFrom, CONST RECT *lprcTo){ return NtUserDrawAnimatedRects(hWnd, idAni, (RECT*)lprcFrom, (RECT*)lprcTo);}
EXTINLINE BOOL WINAPIBlockInput(BOOL fBlockIt){ return NtUserBlockInput(fBlockIt);}
EXTINLINE UINT WINAPIGetDoubleClickTime(VOID){ return NtUserGetDoubleClickTime();}
EXTINLINE BOOL WINAPIGetKeyboardState(PBYTE lpKeyState){ return NtUserGetKeyboardState((LPBYTE)lpKeyState);}
EXTINLINE BOOL WINAPIRegisterHotKey(HWND hWnd, int id, UINT fsModifiers, UINT vk){ return NtUserRegisterHotKey(hWnd, id, fsModifiers, vk);}
EXTINLINE HWND WINAPISetFocus(HWND hWnd){ return NtUserSetFocus(hWnd);}
EXTINLINE BOOL WINAPISetKeyboardState(LPBYTE lpKeyState){ return NtUserSetKeyboardState((LPBYTE)lpKeyState);}
EXTINLINE UINT WINAPISendInput(UINT nInputs, LPINPUT pInputs, int cbSize){ return NtUserSendInput(nInputs, pInputs, cbSize);}
EXTINLINE BOOL WINAPIWaitMessage(VOID){ return NtUserWaitMessage();}
EXTINLINE HDC WINAPIBeginPaint(HWND hwnd, LPPAINTSTRUCT lpPaint){ return NtUserBeginPaint(hwnd, lpPaint);}
EXTINLINE BOOL WINAPIEndPaint(HWND hWnd, CONST PAINTSTRUCT *lpPaint){ return NtUserEndPaint(hWnd, lpPaint);}
EXTINLINE int WINAPIExcludeUpdateRgn(HDC hDC, HWND hWnd){ return NtUserExcludeUpdateRgn(hDC, hWnd);}
EXTINLINE BOOL WINAPIInvalidateRgn(HWND hWnd, HRGN hRgn, BOOL bErase){ return NtUserInvalidateRgn(hWnd, hRgn, bErase);}
EXTINLINE BOOL WINAPIRedrawWindow(HWND hWnd, CONST RECT *lprcUpdate, HRGN hrgnUpdate, UINT flags){ return NtUserRedrawWindow(hWnd, lprcUpdate, hrgnUpdate, flags);}
EXTINLINE BOOL WINAPIDestroyWindow(HWND hWnd){ return NtUserDestroyWindow(hWnd);}
EXTINLINE HWND WINAPIGetForegroundWindow(VOID){ return NtUserGetForegroundWindow();}
EXTINLINE BOOL WINAPIGetGUIThreadInfo(DWORD idThread, LPGUITHREADINFO lpgui){ return NtUserGetGUIThreadInfo(idThread, lpgui);}
EXTINLINE BOOL WINAPIGetTitleBarInfo(HWND hwnd, PTITLEBARINFO pti){ return NtUserGetTitleBarInfo(hwnd, pti);}
EXTINLINE BOOL WINAPIGetWindowPlacement(HWND hWnd, WINDOWPLACEMENT *lpwndpl){ return NtUserGetWindowPlacement(hWnd, lpwndpl);}
EXTINLINE BOOL WINAPIMoveWindow(HWND hWnd, int X, int Y, int nWidth, int nHeight, BOOL bRepaint){ return NtUserMoveWindow(hWnd, X, Y, nWidth, nHeight, bRepaint);}
EXTINLINE HWND WINAPISetParent(HWND hWndChild, HWND hWndNewParent){ return NtUserSetParent(hWndChild, hWndNewParent);}
EXTINLINE BOOL WINAPISetWindowPlacement(HWND hWnd, CONST WINDOWPLACEMENT *lpwndpl){ return NtUserSetWindowPlacement(hWnd, (WINDOWPLACEMENT *)lpwndpl);}
EXTINLINE BOOL WINAPISetWindowPos(HWND hWnd, HWND hWndAfter, int X, int Y, int cx, int cy, UINT uFlags){ return NtUserSetWindowPos(hWnd,hWndAfter, X, Y, cx, cy, uFlags);}
EXTINLINE BOOL WINAPIShowWindow(HWND hWnd, int nCmdShow){ return NtUserShowWindow(hWnd, nCmdShow);}
EXTINLINE BOOL WINAPIShowWindowAsync(HWND hWnd, int nCmdShow){ return NtUserShowWindowAsync(hWnd, nCmdShow);}
EXTINLINE HWND WINAPISetActiveWindow(HWND hWnd){ return NtUserSetActiveWindow(hWnd);}
EXTINLINE DWORD WINAPIGetListBoxInfo(HWND hwnd){ return NtUserGetListBoxInfo(hwnd); // Do it right! Have the message org from kmode!}
EXTINLINE BOOL WINAPIDeleteMenu(HMENU hMenu, UINT uPosition, UINT uFlags){ return NtUserDeleteMenu(hMenu, uPosition, uFlags);}
EXTINLINE BOOL WINAPIDestroyMenu(HMENU hMenu){ return NtUserDestroyMenu(hMenu);}
/*EXTINLINE BOOL WINAPIGetMenuBarInfo(HWND hwnd, LONG idObject, LONG idItem, PMENUBARINFO pmbi){ return NtUserGetMenuBarInfo(hwnd, idObject, idItem, pmbi);}*/EXTINLINE BOOL WINAPIGetMenuItemRect(HWND hWnd, HMENU hMenu, UINT uItem, LPRECT lprcItem){ return NtUserGetMenuItemRect(hWnd, hMenu, uItem, lprcItem);}
EXTINLINE BOOL WINAPIRemoveMenu(HMENU hMenu, UINT uPosition, UINT uFlags){ return NtUserRemoveMenu(hMenu, uPosition, uFlags);}
EXTINLINE BOOL WINAPISetMenuDefaultItem(HMENU hMenu, UINT uItem, UINT fByPos){ return NtUserSetMenuDefaultItem(hMenu, uItem, fByPos);}
EXTINLINE BOOL WINAPISetMenuContextHelpId(HMENU hmenu, DWORD dwContextHelpId){ return NtUserSetMenuContextHelpId(hmenu, dwContextHelpId);}
EXTINLINE HWND WINAPISetCapture(HWND hWnd){ return NtUserSetCapture(hWnd);}
EXTINLINE BOOL WINAPIInvalidateRect(HWND hWnd, CONST RECT* lpRect, BOOL bErase){ return NtUserInvalidateRect(hWnd, lpRect, bErase);}
EXTINLINE BOOL WINAPI ValidateRect(HWND hWnd, CONST RECT *lpRect){ return NtUserValidateRect(hWnd, lpRect);}
EXTINLINE BOOL WINAPI ShowCaret(HWND hWnd){ return NtUserShowCaret(hWnd);}
EXTINLINE BOOL WINAPI HideCaret(HWND hWnd){ return NtUserHideCaret(hWnd);}
/* Inline functions that make calling NtUserCall*** functions readable These functions are prepended with NtUserx because they are not real syscalls and they are inlined*/
EXTINLINE BOOL NtUserxDestroyCaret(VOID){ return (BOOL)NtUserCallNoParam(NOPARAM_ROUTINE_DESTROY_CARET);}
EXTINLINE VOID NtUserxMsqClearWakeMask(VOID){ NtUserCallNoParam(NOPARAM_ROUTINE_MSQCLEARWAKEMASK);}
EXTINLINE HMENU NtUserxCreateMenu(VOID){ return (HMENU)NtUserCallNoParam(NOPARAM_ROUTINE_CREATEMENU);}
EXTINLINE HMENU NtUserxCreatePopupMenu(VOID){ return (HMENU)NtUserCallNoParam(NOPARAM_ROUTINE_CREATEMENUPOPUP);}
EXTINLINE DWORD NtUserxGetMessagePos(VOID){ return (DWORD)NtUserCallNoParam(NOPARAM_ROUTINE_GETMSESSAGEPOS);}
EXTINLINE BOOL NtUserxReleaseCapture(VOID){ return (BOOL)NtUserCallNoParam(NOPARAM_ROUTINE_RELEASECAPTURE);}
EXTINLINE BOOL NtUserxInitMessagePump(VOID){ return (BOOL)NtUserCallNoParam(NOPARAM_ROUTINE_INIT_MESSAGE_PUMP);}
EXTINLINE BOOL NtUserxUnInitMessagePump(VOID){ return NtUserCallNoParam(NOPARAM_ROUTINE_UNINIT_MESSAGE_PUMP);}
EXTINLINE HANDLE NtUserxMsqSetWakeMask(DWORD_PTR dwWaitMask){ return (HANDLE)NtUserCallOneParam(dwWaitMask, ONEPARAM_ROUTINE_GETINPUTEVENT);}
EXTINLINE BOOL NtUserxSetCaretBlinkTime(UINT uMSeconds){ return (BOOL)NtUserCallOneParam(uMSeconds, ONEPARAM_ROUTINE_SETCARETBLINKTIME);}
EXTINLINE HWND NtUserxWindowFromDC(HDC hDC){ return (HWND)NtUserCallOneParam((DWORD_PTR)hDC, ONEPARAM_ROUTINE_WINDOWFROMDC);}
EXTINLINE BOOL NtUserxSwapMouseButton(BOOL fSwap){ return (BOOL)NtUserCallOneParam((DWORD_PTR)fSwap, ONEPARAM_ROUTINE_SWAPMOUSEBUTTON);}
EXTINLINE LPARAM NtUserxSetMessageExtraInfo(LPARAM lParam){ return (LPARAM)NtUserCallOneParam((DWORD_PTR)lParam, ONEPARAM_ROUTINE_SETMESSAGEEXTRAINFO);}
EXTINLINE INT NtUserxShowCursor(BOOL bShow){ return (INT)NtUserCallOneParam((DWORD_PTR)bShow, ONEPARAM_ROUTINE_SHOWCURSOR);}
EXTINLINE UINT NtUserxEnumClipboardFormats(UINT format){ return (UINT)NtUserCallOneParam((DWORD_PTR)format, ONEPARAM_ROUTINE_ENUMCLIPBOARDFORMATS);}
EXTINLINE HICON NtUserxCreateEmptyCurObject(DWORD_PTR Param){ return (HICON)NtUserCallOneParam(Param, ONEPARAM_ROUTINE_CREATEEMPTYCUROBJECT);}
EXTINLINE BOOL NtUserxMessageBeep(UINT uType){ return (BOOL)NtUserCallOneParam(uType, ONEPARAM_ROUTINE_MESSAGEBEEP);}
EXTINLINE HKL NtUserxGetKeyboardLayout(DWORD idThread){ return (HKL)NtUserCallOneParam((DWORD_PTR)idThread, ONEPARAM_ROUTINE_GETKEYBOARDLAYOUT);}
EXTINLINE INT NtUserxGetKeyboardType(INT nTypeFlag){ return (INT)NtUserCallOneParam((DWORD_PTR)nTypeFlag, ONEPARAM_ROUTINE_GETKEYBOARDTYPE);}
EXTINLINE INT NtUserxReleaseDC(HDC hDC){ return (INT)NtUserCallOneParam((DWORD_PTR)hDC, ONEPARAM_ROUTINE_RELEASEDC);}
EXTINLINE UINT NtUserxRealizePalette(HDC hDC){ return (UINT)NtUserCallOneParam((DWORD_PTR)hDC, ONEPARAM_ROUTINE_REALIZEPALETTE);}
EXTINLINE VOID NtUserxCreateSystemThreads(BOOL bRemoteProcess){ NtUserCallOneParam(bRemoteProcess, ONEPARAM_ROUTINE_CREATESYSTEMTHREADS);}
EXTINLINE HDWP NtUserxBeginDeferWindowPos(INT nNumWindows){ return (HDWP)NtUserCallOneParam((DWORD_PTR)nNumWindows, ONEPARAM_ROUTINE_BEGINDEFERWNDPOS);}
EXTINLINE BOOL NtUserxReplyMessage(LRESULT lResult){ return NtUserCallOneParam(lResult, ONEPARAM_ROUTINE_REPLYMESSAGE);}
EXTINLINE VOID NtUserxPostQuitMessage(int nExitCode){ NtUserCallOneParam(nExitCode, ONEPARAM_ROUTINE_POSTQUITMESSAGE);}
EXTINLINE DWORD NtUserxGetQueueStatus(UINT flags){ return (DWORD)NtUserCallOneParam(flags, ONEPARAM_ROUTINE_GETQUEUESTATUS);}
EXTINLINE BOOL NtUserxValidateRgn(HWND hWnd, HRGN hRgn){ return (BOOL)NtUserCallHwndParamLock(hWnd, (DWORD_PTR)hRgn, TWOPARAM_ROUTINE_VALIDATERGN);}
EXTINLINE BOOL NtUserxSetCursorPos(INT x, INT y){ return (BOOL)NtUserCallTwoParam((DWORD)x, (DWORD)y, TWOPARAM_ROUTINE_SETCURSORPOS);}
EXTINLINE BOOL NtUserxEnableWindow(HWND hWnd, BOOL bEnable){ return (BOOL)NtUserCallTwoParam((DWORD_PTR)hWnd, (DWORD_PTR)bEnable, TWOPARAM_ROUTINE_ENABLEWINDOW);}
EXTINLINE BOOL NtUserxUpdateUiState(HWND hWnd, DWORD Param){ return (BOOL)NtUserCallTwoParam((DWORD_PTR)hWnd, (DWORD_PTR)Param, TWOPARAM_ROUTINE_ROS_UPDATEUISTATE);}
EXTINLINE VOID NtUserxSwitchToThisWindow(HWND hWnd, BOOL fAltTab){ NtUserCallTwoParam((DWORD_PTR)hWnd, (DWORD_PTR)fAltTab, TWOPARAM_ROUTINE_SWITCHTOTHISWINDOW);}
EXTINLINE BOOL NtUserxShowOwnedPopups(HWND hWnd, BOOL fShow){ return (BOOL)NtUserCallTwoParam((DWORD_PTR)hWnd, fShow, TWOPARAM_ROUTINE_SHOWOWNEDPOPUPS);}
EXTINLINE BOOL NtUserxUnhookWindowsHook(int nCode, HOOKPROC pfnFilterProc){ return (BOOL)NtUserCallTwoParam(nCode, (DWORD_PTR)pfnFilterProc, TWOPARAM_ROUTINE_UNHOOKWINDOWSHOOK);}
EXTINLINE BOOL NtUserxSetWindowContextHelpId(HWND hWnd, DWORD_PTR dwContextHelpId){ return (BOOL)NtUserCallHwndParam(hWnd, dwContextHelpId, HWNDPARAM_ROUTINE_SETWNDCONTEXTHLPID);}
EXTINLINE BOOL NtUserxKillSystemTimer(HWND hWnd, UINT_PTR IDEvent){ return (BOOL)NtUserCallHwndParam(hWnd, IDEvent, HWNDPARAM_ROUTINE_KILLSYSTEMTIMER);}
EXTINLINE VOID NtUserxSetDialogPointer(HWND hWnd, PVOID dlgInfo){ NtUserCallHwndParam(hWnd, (DWORD_PTR)dlgInfo, HWNDPARAM_ROUTINE_SETDIALOGPOINTER);}
EXTINLINE VOID NtUserxNotifyWinEvent(HWND hWnd, PVOID ne){ NtUserCallHwndParam(hWnd, (DWORD_PTR)ne, HWNDPARAM_ROUTINE_ROS_NOTIFYWINEVENT);}
EXTINLINE DWORD NtUserxGetWindowContextHelpId(HWND hwnd){ return (DWORD)NtUserCallHwnd(hwnd, HWND_ROUTINE_GETWNDCONTEXTHLPID);}
EXTINLINE BOOL NtUserxDeregisterShellHookWindow(HWND hWnd){ return (BOOL)NtUserCallHwnd(hWnd, HWND_ROUTINE_DEREGISTERSHELLHOOKWINDOW);}
EXTINLINE BOOL NtUserxRegisterShellHookWindow(HWND hWnd){ return (BOOL)NtUserCallHwnd(hWnd, HWND_ROUTINE_REGISTERSHELLHOOKWINDOW);}
EXTINLINE BOOL NtUserxSetMessageBox(HWND hWnd){ return (BOOL)NtUserCallHwnd(hWnd, HWND_ROUTINE_SETMSGBOX);}
EXTINLINE VOID NtUserxClearWindowState(PWND pWnd, UINT Flag){ if (!TestState(pWnd, Flag)) return; NtUserCallHwndParam(UserHMGetHandle(pWnd), (DWORD_PTR)Flag, HWNDPARAM_ROUTINE_CLEARWINDOWSTATE);}
EXTINLINE VOID NtUserxSetWindowState(PWND pWnd, UINT Flag){ if (TestState(pWnd, Flag)) return; NtUserCallHwndParam(UserHMGetHandle(pWnd), (DWORD_PTR)Flag, HWNDPARAM_ROUTINE_SETWINDOWSTATE);}
EXTINLINE HWND NtUserxSetTaskmanWindow(HWND hWnd){ return NtUserCallHwndOpt(hWnd, HWNDOPT_ROUTINE_SETTASKMANWINDOW);}
EXTINLINE HWND NtUserxSetProgmanWindow(HWND hWnd){ return NtUserCallHwndOpt(hWnd, HWNDOPT_ROUTINE_SETPROGMANWINDOW);}
EXTINLINE UINT NtUserxArrangeIconicWindows(HWND hWnd){ return (UINT)NtUserCallHwndLock(hWnd, HWNDLOCK_ROUTINE_ARRANGEICONICWINDOWS);}
EXTINLINE BOOL NtUserxUpdateWindow(HWND hWnd){ return NtUserCallHwndLock(hWnd, HWNDLOCK_ROUTINE_UPDATEWINDOW);}
EXTINLINE BOOL NtUserxDrawMenuBar(HWND hWnd){ return (BOOL)NtUserCallHwndLock(hWnd, HWNDLOCK_ROUTINE_DRAWMENUBAR);}
EXTINLINE BOOL NtUserxMDIRedrawFrame(HWND hWnd){ return (BOOL)NtUserCallHwndLock(hWnd, HWNDLOCK_ROUTINE_REDRAWFRAME);}
EXTINLINE BOOL NtUserxSetForegroundWindow(HWND hWnd){ return NtUserCallHwndLock(hWnd, HWNDLOCK_ROUTINE_SETFOREGROUNDWINDOW);}
/* ReactOS-specific definitions */
EXTINLINE LPARAM NtUserxGetMessageExtraInfo(VOID){ return (LPARAM)NtUserGetThreadState(THREADSTATE_GETMESSAGEEXTRAINFO);}
EXTINLINE VOID NtUserxEnableProcessWindowGhosting(BOOL bEnable){ NtUserCallOneParam((DWORD_PTR)bEnable, ONEPARAM_ROUTINE_ENABLEPROCWNDGHSTING);}
EXTINLINE PVOID NtUserxGetDesktopMapping(PVOID ptr){ return (PVOID)NtUserCallOneParam((DWORD_PTR)ptr, ONEPARAM_ROUTINE_GETDESKTOPMAPPING);}
EXTINLINE BOOL NtUserxGetCursorPos(POINT* lpPoint){ return (BOOL)NtUserCallOneParam((DWORD_PTR)lpPoint, ONEPARAM_ROUTINE_GETCURSORPOS);}
EXTINLINE BOOL NtUserxSetMenuBarHeight(HMENU menu, INT height){ return (BOOL)NtUserCallTwoParam((DWORD_PTR)menu, (DWORD_PTR)height, TWOPARAM_ROUTINE_SETMENUBARHEIGHT);}
EXTINLINE BOOL NtUserxSetGUIThreadHandle(DWORD_PTR field, HWND hwnd){ return (BOOL)NtUserCallTwoParam((DWORD_PTR)field, (DWORD_PTR)hwnd, TWOPARAM_ROUTINE_SETGUITHRDHANDLE);}
EXTINLINE BOOL NtUserxSetCaretPos(INT x, INT y){ return (BOOL)NtUserCallTwoParam((DWORD_PTR)x, (DWORD_PTR)y, TWOPARAM_ROUTINE_SETCARETPOS);}
EXTINLINE BOOL NtUserxRegisterLogonProcess(DWORD dwProcessId, BOOL bRegister){ return (BOOL)NtUserCallTwoParam((DWORD_PTR)dwProcessId, (DWORD_PTR)bRegister, TWOPARAM_ROUTINE_REGISTERLOGONPROCESS);}
EXTINLINE BOOL NtUserxAllowSetForegroundWindow(DWORD dwProcessId){ return (BOOL)NtUserCallOneParam((DWORD_PTR)dwProcessId, ONEPARAM_ROUTINE_ALLOWSETFOREGND);}
EXTINLINE BOOL NtUserxLockSetForegroundWindow(UINT uLockCode){ return (BOOL)NtUserCallOneParam((DWORD_PTR)uLockCode, ONEPARAM_ROUTINE_LOCKFOREGNDWINDOW);}