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
);
15 NtUserReleaseDC(HWND hWnd
, HDC hDc
);
18 NtUserGetWindowRect(HWND hWnd
, LPRECT Rect
);
21 NtUserGetClientRect(HWND hWnd
, LPRECT Rect
);
24 NtUserGetProp(HWND hWnd
, ATOM Atom
);
27 NtUserGetClientOrigin(HWND hWnd
, LPPOINT Point
);
30 NtUserGetDesktopWindow();
34 NtUserAcquireOrReleaseInputOwnership(
39 NtUserActivateKeyboardLayout(
45 NtUserAlterWindowStyle(
52 NtUserAttachThreadInput(
58 NtUserBeginPaint(HWND hWnd
, PAINTSTRUCT
* lPs
);
90 NtUserBuildMenuItemList(
140 NtUserCallHwndParamLock(
153 NtUserCallNextHookEx(
159 #define NOPARAM_ROUTINE_REGISTER_PRIMITIVE 0xffff0001 /* Private ROS */
160 #define NOPARAM_ROUTINE_DESTROY_CARET 0xffff0002
166 #define ONEPARAM_ROUTINE_GETMENU 0x01
167 #define ONEPARAM_ROUTINE_ISWINDOWUNICODE 0x02
168 #define ONEPARAM_ROUTINE_WINDOWFROMDC 0x03
169 #define ONEPARAM_ROUTINE_GETWNDCONTEXTHLPID 0x04
170 #define ONEPARAM_ROUTINE_SWAPMOUSEBUTTON 0x05
171 #define ONEPARAM_ROUTINE_SETCARETBLINKTIME 0x06
172 #define ONEPARAM_ROUTINE_GETCARETINFO 0x07
173 #define ONEPARAM_ROUTINE_SWITCHCARETSHOWING 0x08
180 #define TWOPARAM_ROUTINE_ENABLEWINDOW 0x53
181 #define TWOPARAM_ROUTINE_UNKNOWN 0x54
182 #define TWOPARAM_ROUTINE_SHOWOWNEDPOPUPS 0x55
183 #define TWOPARAM_ROUTINE_SWITCHTOTHISWINDOW 0x56
184 #define TWOPARAM_ROUTINE_VALIDATERGN 0x57
185 #define TWOPARAM_ROUTINE_SETWNDCONTEXTHLPID 0x58
186 #define TWOPARAM_ROUTINE_CURSORPOSITION 0x59
187 #define TWOPARAM_ROUTINE_SETCARETPOS 0x60
197 NtUserChangeClipboardChain(
203 NtUserChangeDisplaySettings(
204 PUNICODE_STRING lpszDeviceName
,
205 LPDEVMODEW lpDevMode
,
218 NtUserChildWindowFromPointEx(HWND Parent
,
230 NtUserCloseClipboard(VOID
);
239 NtUserCloseWindowStation(
244 NtUserConvertMemHandle(
250 NtUserCopyAcceleratorTable(
257 NtUserCountClipboardFormats(VOID
);
261 NtUserCreateAcceleratorTable(
263 SIZE_T EntriesCount
);
276 PUNICODE_STRING lpszDesktopName
,
278 ACCESS_MASK dwDesiredAccess
,
279 LPSECURITY_ATTRIBUTES lpSecurity
,
280 HWINSTA hWindowStation
);
284 NtUserCreateLocalMemHandle(
292 NtUserCreateMenu(VOID
);
296 NtUserCreateWindowEx(
298 PUNICODE_STRING lpClassName
,
299 PUNICODE_STRING lpWindowName
,
313 NtUserCreateWindowStation(
314 PUNICODE_STRING lpszWindowStationName
,
315 ACCESS_MASK dwDesiredAccess
,
316 LPSECURITY_ATTRIBUTES lpSecurity
,
323 NtUserDdeGetQualityOfService(
339 NtUserDdeSetQualityOfService(
345 NtUserDeferWindowPos(HDWP WinPosInfo
,
368 NtUserDestroyAcceleratorTable(
383 NtUserDestroyWindow(HWND Wnd
);
387 NtUserDispatchMessage(CONST MSG
* lpmsg
);
407 NtUserDrawAnimatedRects(
423 NtUserDrawCaptionTemp(
449 NtUserDrawMenuBarTemp(
458 NtUserEmptyClipboard(VOID
);
462 NtUserEnableMenuItem(
469 NtUserInsertMenuItem(
473 LPCMENUITEMINFOW lpmii
);
478 NtUserEnableScrollBar(
485 NtUserEndDeferWindowPosEx(
494 NtUserEndPaint(HWND hWnd
, CONST PAINTSTRUCT
* lPs
);
498 NtUserEnumDisplayDevices (
499 PUNICODE_STRING lpDevice
, /* device name */
500 DWORD iDevNum
, /* display device */
501 PDISPLAY_DEVICE lpDisplayDevice
, /* device information */
502 DWORD dwFlags
); /* reserved */
506 NtUserEnumDisplayMonitors (
509 MONITORENUMPROC lpfnEnum
,
514 NtUserEnumDisplaySettings(
515 PUNICODE_STRING lpszDeviceName
,
517 LPDEVMODEW lpDevMode
, /* FIXME is this correct? */
527 NtUserExcludeUpdateRgn(
541 NtUserFindExistingCursorIcon(
551 PUNICODE_STRING ucClassName
,
552 PUNICODE_STRING ucWindowName
571 NtUserGetAncestor(HWND hWnd
, UINT Flags
);
576 NtUserGetAsyncKeyState(
581 NtUserGetCaretBlinkTime(VOID
);
589 NtUserGetClassInfo(HINSTANCE hInst
,
597 NtUserGetClassName(HWND hWnd
,
603 NtUserGetClipboardData(
609 NtUserGetClipboardFormatName(
616 NtUserGetClipboardOwner(VOID
);
620 NtUserGetClipboardSequenceNumber(VOID
);
624 NtUserGetClipboardViewer(VOID
);
633 NtUserGetComboBoxInfo(
639 NtUserGetControlBrush(
646 NtUserGetControlColor(
661 NtUserGetCursorFrameInfo(
673 NtUserGetMenuDefaultItem(
679 NtUserGetDC(HWND hWnd
);
681 HDC STDCALL
NtUserGetDCEx(HWND hWnd
, HANDLE hRegion
, ULONG Flags
);
685 NtUserGetDoubleClickTime(VOID
);
689 NtUserGetForegroundWindow(VOID
);
693 NtUserGetGuiResources(
699 NtUserGetGUIThreadInfo(
731 NtUserGetInternalWindowPos(
738 NtUserGetKeyboardLayoutList(
744 NtUserGetKeyboardLayoutName(
749 NtUserGetKeyboardState(
754 NtUserGetKeyNameText( LONG lParam
, LPWSTR lpString
, int nSize
);
763 NtUserGetListBoxInfo(
768 NtUserGetMenuBarInfo(
782 NtUserGetMenuItemRect(
798 NtUserGetMouseMovePointsEx(
807 NtUserGetObjectInformation(
812 PDWORD nLengthNeeded
);
816 NtUserGetOpenClipboardWindow(VOID
);
820 NtUserGetPriorityClipboardFormat(
826 NtUserGetProcessWindowStation(VOID
);
830 NtUserGetScrollBarInfo(
833 PSCROLLBARINFO psbi
);
850 NtUserGetThreadDesktop(
856 NtUserGetThreadState(
861 NtUserGetTitleBarInfo(
886 NtUserGetWindowPlacement(
903 NtUserHiliteMenuItem(
911 NtUserImpersonateDdeClientWindow(
917 NtUserInitializeClientPfnArrays(
940 NtUserInternalGetWindowText(
947 NtUserInvalidateRect(
962 NtUserIsClipboardFormatAvailable(
967 NtUserKillSystemTimer
983 NtUserLoadKeyboardLayoutEx(
993 NtUserLockWindowStation(
994 HWINSTA hWindowStation
);
998 NtUserLockWindowUpdate(
1003 NtUserLockWorkStation(VOID
);
1007 NtUserMapVirtualKeyEx( UINT keyCode
,
1022 NtUserMenuItemFromPoint(
1034 LPMENUITEMINFOW lpmii
,
1058 NtUserMNDragLeave(VOID
);
1068 NtUserModifyUserStartupInfoFlags(
1085 NtUserNotifyIMEStatus(
1092 NtUserNotifyWinEvent(
1100 NtUserOpenClipboard(
1107 PUNICODE_STRING lpszDesktopName
,
1109 ACCESS_MASK dwDesiredAccess
);
1113 NtUserOpenInputDesktop(
1116 ACCESS_MASK dwDesiredAccess
);
1120 NtUserOpenWindowStation(
1121 PUNICODE_STRING lpszWindowStationName
,
1122 ACCESS_MASK dwDesiredAccess
);
1148 NtUserPostThreadMessage(
1156 NtUserQuerySendMessage(
1161 NtUserQueryUserCounters(
1176 NtUserRealChildWindowFromPoint(
1186 CONST RECT
*lprcUpdate
,
1193 NtUserRegisterClassExWOW(CONST WNDCLASSEXW
* lpwcx
,
1202 NtUserRegisterHotKey(
1210 NtUserRegisterTasklist(
1214 NtUserRegisterWindowMessage(PUNICODE_STRING MessageName
);
1224 NtUserRemoveProp(HWND hWnd
, ATOM Atom
);
1228 NtUserResolveDesktopForWOW(
1245 CONST RECT
*lprcScroll
,
1246 CONST RECT
*lprcClip
,
1252 NtUserScrollWindowEx(
1270 NtUserSendMessage(HWND hWnd
,
1277 NtUserSendMessageCallback(
1282 SENDASYNCPROC lpCallBack
,
1287 NtUserSendNotifyMessage(
1294 NtUserSetActiveWindow(HWND Wnd
);
1296 NtUserGetActiveWindow(VOID
);
1299 NtUserSetCapture(HWND Wnd
);
1301 NtUserGetCapture(VOID
);
1320 NtUserSetClipboardData(
1327 NtUserSetClipboardViewer(
1332 NtUserSetConsoleReserveKeys(
1343 NtUserSetCursorContents(
1349 NtUserSetCursorIconData(
1377 NtUserSetImeOwnerWindow(
1383 NtUserSetInternalWindowPos(
1391 NtUserSetKeyboardState(
1396 NtUserSetLayeredWindowAttributes(
1404 NtUserSetLogonNotifyWindow(
1416 NtUserSetMenuContextHelpId(
1418 DWORD dwContextHelpId
);
1422 NtUserSetMenuDefaultItem(
1429 NtUserSetMenuFlagRtoL(
1434 NtUserSetObjectInformation(
1437 PVOID pvInformation
,
1444 HWND hWndNewParent
);
1448 NtUserSetProcessWindowStation(
1449 HWINSTA hWindowStation
);
1452 NtUserSetProp(HWND hWnd
, ATOM Atom
, HANDLE Data
);
1462 NtUserSetScrollInfo(
1470 NtUserSetShellWindowEx(
1472 HWND hwndShellListView
);
1476 NtUserGetShellWindow();
1488 NtUserSetSystemCursor(
1494 NtUserSetSystemMenu(
1500 NtUserSetThreadDesktop(
1505 NtUserSetThreadState(
1511 NtUserSetSystemTimer
1516 TIMERPROC lpTimerFunc
1526 TIMERPROC lpTimerFunc
1531 NtUserSetWindowFNID(
1537 NtUserSetWindowLong(
1545 NtUserSetWindowPlacement(
1550 STDCALL
NtUserSetWindowPos(
1552 HWND hWndInsertAfter
,
1569 NtUserSetWindowsHookAW(
1576 NtUserSetWindowsHookEx(
1586 NtUserSetWindowStationUser(
1593 NtUserSetWindowWord(HWND hWnd
, INT Index
, WORD NewVal
);
1597 NtUserSetWinEventHook(
1614 NtUserShowScrollBar(HWND hWnd
, int wBar
, DWORD bShow
);
1624 NtUserShowWindowAsync(
1630 NtUserSwitchDesktop(
1635 NtUserSystemParametersInfo(
1643 NtUserThunkedMenuInfo(
1649 NtUserThunkedMenuItemInfo(
1654 LPMENUITEMINFOW lpmii
,
1655 PUNICODE_STRING lpszCaption
);
1670 NtUserTrackMouseEvent(
1675 NtUserTrackPopupMenuEx(
1685 NtUserTranslateAccelerator(
1692 NtUserTranslateMessage(
1698 NtUserUnhookWindowsHookEx(
1703 NtUserUnhookWinEvent(
1708 NtUserUnloadKeyboardLayout(
1713 NtUserUnlockWindowStation(
1714 HWINSTA hWindowStation
);
1718 NtUserUnregisterClass(
1725 NtUserUnregisterHotKey(
1731 NtUserUpdateInputContext(
1738 NtUserUpdateInstance(
1744 NtUserUpdateWindow( HWND hWnd
);
1748 NtUserUpdateLayeredWindow(
1761 NtUserUpdatePerUserSystemParameters(
1767 NtUserUserHandleGrantAccess(
1774 NtUserValidateHandleSecure(
1778 NtUserValidateRect(HWND Wnd
, const RECT
* Rect
);
1790 NtUserWaitForInputIdle(
1797 NtUserWaitForMsgAndEvent(
1802 NtUserWaitMessage(VOID
);
1806 NtUserWin32PoolAllocationStats(
1816 NtUserWindowFromPoint(
1822 NtUserYieldTask(VOID
);
1825 NtUserGetWindowThreadProcessId(HWND hWnd
, LPDWORD UnsafePid
);
1828 NtUserGetQueueStatus(BOOL ClearChanges
);
1831 NtUserGetParent(HWND hWnd
);
1834 NtUserGetWindow(HWND hWnd
, UINT Relationship
);
1837 NtUserGetLastActivePopup(HWND hWnd
);
1839 #endif /* __WIN32K_NTUSER_H */