1 #ifndef __WIN32K_NTUSER_H
2 #define __WIN32K_NTUSER_H
5 NtUserGetSystemMetrics(ULONG Index
);
8 NtUserGetClassLong(HWND hWnd
, DWORD Offset
, BOOL Ansi
);
11 NtUserGetWindowLong(HWND hWnd
, DWORD Index
, BOOL Ansi
);
14 NtUserReleaseDC(HWND hWnd
, HDC hDc
);
17 NtUserGetWindowRect(HWND hWnd
, LPRECT Rect
);
20 NtUserGetClientRect(HWND hWnd
, LPRECT Rect
);
23 NtUserGetProp(HWND hWnd
, ATOM Atom
);
26 NtUserGetClientOrigin(HWND hWnd
, LPPOINT Point
);
29 NtUserGetDesktopWindow();
33 NtUserAcquireOrReleaseInputOwnership(
38 NtUserActivateKeyboardLayout(
44 NtUserAlterWindowStyle(
51 NtUserAttachThreadInput(
57 NtUserBeginPaint(HWND hWnd
, PAINTSTRUCT
* lPs
);
89 NtUserBuildMenuItemList(
100 PULONG pRequiredSize
);
116 #define HWNDLOCK_ROUTINE_ARRANGEICONICWINDOWS 0x54
117 #define HWNDLOCK_ROUTINE_DRAWMENUBAR 0x55
118 #define HWNDLOCK_ROUTINE_REDRAWFRAME 0x58
119 #define HWNDLOCK_ROUTINE_SETFOREGROUNDWINDOW 0x5B
120 #define HWNDLOCK_ROUTINE_UPDATEWINDOW 0x5E
127 #define HWNDOPT_ROUTINE_SETPROGMANWINDOW 0x4A
128 #define HWNDOPT_ROUTINE_SETTASKMANWINDOW 0x4B
144 NtUserCallHwndParamLock(
157 NtUserCallNextHookEx(
163 #define NOPARAM_ROUTINE_REGISTER_PRIMITIVE 0xffff0001 /* Private ROS */
164 #define NOPARAM_ROUTINE_DESTROY_CARET 0xffff0002
165 #define NOPARAM_ROUTINE_UNINIT_MESSAGE_PUMP 0xffff0003
166 #define NOPARAM_ROUTINE_INIT_MESSAGE_PUMP 0xffff0004
172 #define ONEPARAM_ROUTINE_GETMENU 0x01
173 #define ONEPARAM_ROUTINE_ISWINDOWUNICODE 0x02
174 #define ONEPARAM_ROUTINE_WINDOWFROMDC 0x03
175 #define ONEPARAM_ROUTINE_GETWNDCONTEXTHLPID 0x04
176 #define ONEPARAM_ROUTINE_SWAPMOUSEBUTTON 0x05
177 #define ONEPARAM_ROUTINE_SETCARETBLINKTIME 0x06
178 #define ONEPARAM_ROUTINE_GETCARETINFO 0x07
179 #define ONEPARAM_ROUTINE_SWITCHCARETSHOWING 0x08
186 #define TWOPARAM_ROUTINE_ENABLEWINDOW 0x53
187 #define TWOPARAM_ROUTINE_UNKNOWN 0x54
188 #define TWOPARAM_ROUTINE_SHOWOWNEDPOPUPS 0x55
189 #define TWOPARAM_ROUTINE_SWITCHTOTHISWINDOW 0x56
190 #define TWOPARAM_ROUTINE_VALIDATERGN 0x57
191 #define TWOPARAM_ROUTINE_SETWNDCONTEXTHLPID 0x58
192 #define TWOPARAM_ROUTINE_CURSORPOSITION 0x59
193 #define TWOPARAM_ROUTINE_SETCARETPOS 0x60
203 NtUserChangeClipboardChain(
209 NtUserChangeDisplaySettings(
210 PUNICODE_STRING lpszDeviceName
,
211 LPDEVMODEW lpDevMode
,
224 NtUserChildWindowFromPointEx(HWND Parent
,
236 NtUserCloseClipboard(VOID
);
245 NtUserCloseWindowStation(
250 NtUserConvertMemHandle(
256 NtUserCopyAcceleratorTable(
263 NtUserCountClipboardFormats(VOID
);
267 NtUserCreateAcceleratorTable(
269 SIZE_T EntriesCount
);
281 NtUserCreateCursorIconHandle(
288 PUNICODE_STRING lpszDesktopName
,
290 ACCESS_MASK dwDesiredAccess
,
291 LPSECURITY_ATTRIBUTES lpSecurity
,
292 HWINSTA hWindowStation
);
296 NtUserCreateLocalMemHandle(
304 NtUserCreateMenu(VOID
);
308 NtUserCreateWindowEx(
310 PUNICODE_STRING lpClassName
,
311 PUNICODE_STRING lpWindowName
,
322 BOOL bUnicodeWindow
);
326 NtUserCreateWindowStation(
327 PUNICODE_STRING lpszWindowStationName
,
328 ACCESS_MASK dwDesiredAccess
,
329 LPSECURITY_ATTRIBUTES lpSecurity
,
336 NtUserDdeGetQualityOfService(
352 NtUserDdeSetQualityOfService(
358 NtUserDeferWindowPos(HDWP WinPosInfo
,
367 NtUserDefSetText(HWND WindowHandle
, PANSI_STRING Text
);
378 NtUserDestroyAcceleratorTable(
383 NtUserDestroyCursorIcon(
393 NtUserDestroyWindow(HWND Wnd
);
397 NtUserDispatchMessage(CONST MSG
* lpmsg
);
418 NtUserDrawAnimatedRects(
434 NtUserDrawCaptionTemp(
453 HBRUSH hbrFlickerFreeDraw
,
460 NtUserDrawMenuBarTemp(
469 NtUserEmptyClipboard(VOID
);
473 NtUserEnableMenuItem(
480 NtUserInsertMenuItem(
484 LPCMENUITEMINFOW lpmii
);
489 NtUserEnableScrollBar(
496 NtUserEndDeferWindowPosEx(
505 NtUserEndPaint(HWND hWnd
, CONST PAINTSTRUCT
* lPs
);
509 NtUserEnumDisplayDevices (
510 PUNICODE_STRING lpDevice
, /* device name */
511 DWORD iDevNum
, /* display device */
512 PDISPLAY_DEVICE lpDisplayDevice
, /* device information */
513 DWORD dwFlags
); /* reserved */
517 NtUserEnumDisplayMonitors (
520 MONITORENUMPROC lpfnEnum
,
525 NtUserEnumDisplaySettings(
526 PUNICODE_STRING lpszDeviceName
,
528 LPDEVMODEW lpDevMode
, /* FIXME is this correct? */
538 NtUserExcludeUpdateRgn(
552 NtUserFindExistingCursorIcon(
563 PUNICODE_STRING ucClassName
,
564 PUNICODE_STRING ucWindowName
583 NtUserGetAncestor(HWND hWnd
, UINT Flags
);
588 NtUserGetAsyncKeyState(
593 NtUserGetCaretBlinkTime(VOID
);
601 NtUserGetClassInfo(HINSTANCE hInst
,
609 NtUserGetClassName(HWND hWnd
,
615 NtUserGetClipboardData(
621 NtUserGetClipboardFormatName(
628 NtUserGetClipboardOwner(VOID
);
632 NtUserGetClipboardSequenceNumber(VOID
);
636 NtUserGetClipboardViewer(VOID
);
645 NtUserGetComboBoxInfo(
651 NtUserGetControlBrush(
658 NtUserGetControlColor(
673 NtUserGetCursorFrameInfo(
685 NtUserGetMenuDefaultItem(
691 NtUserGetDC(HWND hWnd
);
693 HDC STDCALL
NtUserGetDCEx(HWND hWnd
, HANDLE hRegion
, ULONG Flags
);
697 NtUserGetDoubleClickTime(VOID
);
701 NtUserGetForegroundWindow(VOID
);
705 NtUserGetGuiResources(
711 NtUserGetGUIThreadInfo(
713 LPGUITHREADINFO lpgui
);
717 NtUserGetCursorIconInfo(
723 NtUserGetCursorIconSize(
738 NtUserGetInternalWindowPos(
745 NtUserGetKeyboardLayoutList(
751 NtUserGetKeyboardLayoutName(
756 NtUserGetKeyboardState(
761 NtUserGetKeyNameText( LONG lParam
, LPWSTR lpString
, int nSize
);
770 NtUserGetListBoxInfo(
775 NtUserGetMenuBarInfo(
789 NtUserGetMenuItemRect(
805 NtUserGetMouseMovePointsEx(
814 NtUserGetObjectInformation(
819 PDWORD nLengthNeeded
);
823 NtUserGetOpenClipboardWindow(VOID
);
827 NtUserGetPriorityClipboardFormat(
833 NtUserGetProcessWindowStation(VOID
);
837 NtUserGetScrollBarInfo(
840 PSCROLLBARINFO psbi
);
857 NtUserGetThreadDesktop(
863 NtUserGetThreadState(
868 NtUserGetTitleBarInfo(
873 NtUserGetUpdateRect(HWND hWnd
, LPRECT lpRect
, BOOL fErase
);
889 NtUserGetWindowPlacement(
906 NtUserHiliteMenuItem(
914 NtUserImpersonateDdeClientWindow(
920 NtUserInitializeClientPfnArrays(
943 NtUserInternalGetWindowText(
950 NtUserInvalidateRect(
965 NtUserIsClipboardFormatAvailable(
970 NtUserKillSystemTimer
986 NtUserLoadKeyboardLayoutEx(
996 NtUserLockWindowStation(
997 HWINSTA hWindowStation
);
1001 NtUserLockWindowUpdate(
1006 NtUserLockWorkStation(VOID
);
1010 NtUserMapVirtualKeyEx( UINT keyCode
,
1025 NtUserMenuItemFromPoint(
1037 LPMENUITEMINFOW lpmii
,
1061 NtUserMNDragLeave(VOID
);
1071 NtUserModifyUserStartupInfoFlags(
1088 NtUserNotifyIMEStatus(
1095 NtUserNotifyWinEvent(
1103 NtUserOpenClipboard(
1110 PUNICODE_STRING lpszDesktopName
,
1112 ACCESS_MASK dwDesiredAccess
);
1116 NtUserOpenInputDesktop(
1119 ACCESS_MASK dwDesiredAccess
);
1123 NtUserOpenWindowStation(
1124 PUNICODE_STRING lpszWindowStationName
,
1125 ACCESS_MASK dwDesiredAccess
);
1151 NtUserPostThreadMessage(
1159 NtUserQuerySendMessage(
1164 NtUserQueryUserCounters(
1179 NtUserRealChildWindowFromPoint(
1189 CONST RECT
*lprcUpdate
,
1196 NtUserRegisterClassExWOW(CONST WNDCLASSEXW
* lpwcx
,
1204 NtUserRegisterHotKey(HWND hWnd
,
1211 NtUserRegisterTasklist(
1215 NtUserRegisterWindowMessage(PUNICODE_STRING MessageName
);
1225 NtUserRemoveProp(HWND hWnd
, ATOM Atom
);
1229 NtUserResolveDesktopForWOW(
1246 CONST RECT
*lprcScroll
,
1247 CONST RECT
*lprcClip
,
1252 NtUserScrollWindowEx(HWND hWnd
, INT dx
, INT dy
, const RECT
*rect
,
1253 const RECT
*clipRect
, HRGN hrgnUpdate
, LPRECT rcUpdate
, UINT flags
);
1263 NtUserSendMessage(HWND hWnd
,
1270 NtUserSendMessageCallback(
1275 SENDASYNCPROC lpCallBack
,
1280 NtUserSendNotifyMessage(
1287 NtUserSetActiveWindow(HWND Wnd
);
1289 NtUserGetActiveWindow(VOID
);
1292 NtUserSetCapture(HWND Wnd
);
1294 NtUserGetCapture(VOID
);
1313 NtUserSetClipboardData(
1320 NtUserSetClipboardViewer(
1325 NtUserSetConsoleReserveKeys(
1336 NtUserSetCursorIconContents(
1338 PICONINFO IconInfo
);
1342 NtUserSetCursorIconData(
1372 NtUserSetImeOwnerWindow(
1378 NtUserSetInternalWindowPos(
1386 NtUserSetKeyboardState(
1391 NtUserSetLayeredWindowAttributes(
1399 NtUserSetLogonNotifyWindow(
1411 NtUserSetMenuContextHelpId(
1413 DWORD dwContextHelpId
);
1417 NtUserSetMenuDefaultItem(
1424 NtUserSetMenuFlagRtoL(
1429 NtUserSetObjectInformation(
1432 PVOID pvInformation
,
1439 HWND hWndNewParent
);
1443 NtUserSetProcessWindowStation(
1444 HWINSTA hWindowStation
);
1447 NtUserSetProp(HWND hWnd
, ATOM Atom
, HANDLE Data
);
1457 NtUserSetScrollInfo(
1465 NtUserSetShellWindowEx(
1467 HWND hwndShellListView
);
1471 NtUserGetShellWindow();
1483 NtUserSetSystemCursor(
1489 NtUserSetSystemMenu(
1495 NtUserSetThreadDesktop(
1500 NtUserSetThreadState(
1506 NtUserSetSystemTimer
1511 TIMERPROC lpTimerFunc
1521 TIMERPROC lpTimerFunc
1526 NtUserSetWindowFNID(
1532 NtUserSetWindowLong(
1540 NtUserSetWindowPlacement(
1545 STDCALL
NtUserSetWindowPos(
1547 HWND hWndInsertAfter
,
1564 NtUserSetWindowsHookAW(
1571 NtUserSetWindowsHookEx(
1581 NtUserSetWindowStationUser(
1588 NtUserSetWindowWord(HWND hWnd
, INT Index
, WORD NewVal
);
1592 NtUserSetWinEventHook(
1609 NtUserShowScrollBar(HWND hWnd
, int wBar
, DWORD bShow
);
1619 NtUserShowWindowAsync(
1625 NtUserSwitchDesktop(
1630 NtUserSystemParametersInfo(
1638 NtUserThunkedMenuInfo(
1644 NtUserThunkedMenuItemInfo(
1649 LPMENUITEMINFOW lpmii
,
1650 PUNICODE_STRING lpszCaption
);
1665 NtUserTrackMouseEvent(
1670 NtUserTrackPopupMenuEx(
1680 NtUserTranslateAccelerator(
1687 NtUserTranslateMessage(
1693 NtUserUnhookWindowsHookEx(
1698 NtUserUnhookWinEvent(
1703 NtUserUnloadKeyboardLayout(
1708 NtUserUnlockWindowStation(
1709 HWINSTA hWindowStation
);
1713 NtUserUnregisterClass(
1714 LPCWSTR ClassNameOrAtom
,
1715 HINSTANCE hInstance
,
1720 NtUserUnregisterHotKey(HWND hWnd
,
1725 NtUserUpdateInputContext(
1732 NtUserUpdateInstance(
1738 NtUserUpdateWindow( HWND hWnd
);
1742 NtUserUpdateLayeredWindow(
1755 NtUserUpdatePerUserSystemParameters(
1761 NtUserUserHandleGrantAccess(
1768 NtUserValidateHandleSecure(
1772 NtUserValidateRect(HWND Wnd
, const RECT
* Rect
);
1784 NtUserWaitForInputIdle(
1791 NtUserWaitForMsgAndEvent(
1796 NtUserWaitMessage(VOID
);
1800 NtUserWin32PoolAllocationStats(
1810 NtUserWindowFromPoint(
1816 NtUserYieldTask(VOID
);
1819 NtUserGetWindowThreadProcessId(HWND hWnd
, LPDWORD UnsafePid
);
1822 NtUserGetQueueStatus(BOOL ClearChanges
);
1825 NtUserGetParent(HWND hWnd
);
1828 NtUserGetWindow(HWND hWnd
, UINT Relationship
);
1831 NtUserGetLastActivePopup(HWND hWnd
);
1832 typedef struct _WndProcHandle
1840 NtUserDereferenceWndProcHandle(WNDPROC wpHandle
, WndProcHandle
*Data
);
1843 NtUserManualGuiCheck(LONG Check
);
1844 #endif /* __WIN32K_NTUSER_H */