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(
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(
561 PUNICODE_STRING ucClassName
,
562 PUNICODE_STRING ucWindowName
581 NtUserGetAncestor(HWND hWnd
, UINT Flags
);
586 NtUserGetAsyncKeyState(
591 NtUserGetCaretBlinkTime(VOID
);
599 NtUserGetClassInfo(HINSTANCE hInst
,
607 NtUserGetClassName(HWND hWnd
,
613 NtUserGetClipboardData(
619 NtUserGetClipboardFormatName(
626 NtUserGetClipboardOwner(VOID
);
630 NtUserGetClipboardSequenceNumber(VOID
);
634 NtUserGetClipboardViewer(VOID
);
643 NtUserGetComboBoxInfo(
649 NtUserGetControlBrush(
656 NtUserGetControlColor(
671 NtUserGetCursorFrameInfo(
683 NtUserGetMenuDefaultItem(
689 NtUserGetDC(HWND hWnd
);
691 HDC STDCALL
NtUserGetDCEx(HWND hWnd
, HANDLE hRegion
, ULONG Flags
);
695 NtUserGetDoubleClickTime(VOID
);
699 NtUserGetForegroundWindow(VOID
);
703 NtUserGetGuiResources(
709 NtUserGetGUIThreadInfo(
711 LPGUITHREADINFO lpgui
);
736 NtUserGetInternalWindowPos(
743 NtUserGetKeyboardLayoutList(
749 NtUserGetKeyboardLayoutName(
754 NtUserGetKeyboardState(
759 NtUserGetKeyNameText( LONG lParam
, LPWSTR lpString
, int nSize
);
768 NtUserGetListBoxInfo(
773 NtUserGetMenuBarInfo(
787 NtUserGetMenuItemRect(
803 NtUserGetMouseMovePointsEx(
812 NtUserGetObjectInformation(
817 PDWORD nLengthNeeded
);
821 NtUserGetOpenClipboardWindow(VOID
);
825 NtUserGetPriorityClipboardFormat(
831 NtUserGetProcessWindowStation(VOID
);
835 NtUserGetScrollBarInfo(
838 PSCROLLBARINFO psbi
);
855 NtUserGetThreadDesktop(
861 NtUserGetThreadState(
866 NtUserGetTitleBarInfo(
871 NtUserGetUpdateRect(HWND hWnd
, LPRECT lpRect
, BOOL fErase
);
887 NtUserGetWindowPlacement(
904 NtUserHiliteMenuItem(
912 NtUserImpersonateDdeClientWindow(
918 NtUserInitializeClientPfnArrays(
941 NtUserInternalGetWindowText(
948 NtUserInvalidateRect(
963 NtUserIsClipboardFormatAvailable(
968 NtUserKillSystemTimer
984 NtUserLoadKeyboardLayoutEx(
994 NtUserLockWindowStation(
995 HWINSTA hWindowStation
);
999 NtUserLockWindowUpdate(
1004 NtUserLockWorkStation(VOID
);
1008 NtUserMapVirtualKeyEx( UINT keyCode
,
1023 NtUserMenuItemFromPoint(
1035 LPMENUITEMINFOW lpmii
,
1059 NtUserMNDragLeave(VOID
);
1069 NtUserModifyUserStartupInfoFlags(
1086 NtUserNotifyIMEStatus(
1093 NtUserNotifyWinEvent(
1101 NtUserOpenClipboard(
1108 PUNICODE_STRING lpszDesktopName
,
1110 ACCESS_MASK dwDesiredAccess
);
1114 NtUserOpenInputDesktop(
1117 ACCESS_MASK dwDesiredAccess
);
1121 NtUserOpenWindowStation(
1122 PUNICODE_STRING lpszWindowStationName
,
1123 ACCESS_MASK dwDesiredAccess
);
1149 NtUserPostThreadMessage(
1157 NtUserQuerySendMessage(
1162 NtUserQueryUserCounters(
1177 NtUserRealChildWindowFromPoint(
1187 CONST RECT
*lprcUpdate
,
1194 NtUserRegisterClassExWOW(CONST WNDCLASSEXW
* lpwcx
,
1202 NtUserRegisterHotKey(HWND hWnd
,
1209 NtUserRegisterTasklist(
1213 NtUserRegisterWindowMessage(PUNICODE_STRING MessageName
);
1223 NtUserRemoveProp(HWND hWnd
, ATOM Atom
);
1227 NtUserResolveDesktopForWOW(
1244 CONST RECT
*lprcScroll
,
1245 CONST RECT
*lprcClip
,
1251 NtUserScrollWindowEx(
1269 NtUserSendMessage(HWND hWnd
,
1276 NtUserSendMessageCallback(
1281 SENDASYNCPROC lpCallBack
,
1286 NtUserSendNotifyMessage(
1293 NtUserSetActiveWindow(HWND Wnd
);
1295 NtUserGetActiveWindow(VOID
);
1298 NtUserSetCapture(HWND Wnd
);
1300 NtUserGetCapture(VOID
);
1319 NtUserSetClipboardData(
1326 NtUserSetClipboardViewer(
1331 NtUserSetConsoleReserveKeys(
1342 NtUserSetCursorIconContents(
1344 PICONINFO IconInfo
);
1348 NtUserSetCursorIconData(
1378 NtUserSetImeOwnerWindow(
1384 NtUserSetInternalWindowPos(
1392 NtUserSetKeyboardState(
1397 NtUserSetLayeredWindowAttributes(
1405 NtUserSetLogonNotifyWindow(
1417 NtUserSetMenuContextHelpId(
1419 DWORD dwContextHelpId
);
1423 NtUserSetMenuDefaultItem(
1430 NtUserSetMenuFlagRtoL(
1435 NtUserSetObjectInformation(
1438 PVOID pvInformation
,
1445 HWND hWndNewParent
);
1449 NtUserSetProcessWindowStation(
1450 HWINSTA hWindowStation
);
1453 NtUserSetProp(HWND hWnd
, ATOM Atom
, HANDLE Data
);
1463 NtUserSetScrollInfo(
1471 NtUserSetShellWindowEx(
1473 HWND hwndShellListView
);
1477 NtUserGetShellWindow();
1489 NtUserSetSystemCursor(
1495 NtUserSetSystemMenu(
1501 NtUserSetThreadDesktop(
1506 NtUserSetThreadState(
1512 NtUserSetSystemTimer
1517 TIMERPROC lpTimerFunc
1527 TIMERPROC lpTimerFunc
1532 NtUserSetWindowFNID(
1538 NtUserSetWindowLong(
1546 NtUserSetWindowPlacement(
1551 STDCALL
NtUserSetWindowPos(
1553 HWND hWndInsertAfter
,
1570 NtUserSetWindowsHookAW(
1577 NtUserSetWindowsHookEx(
1587 NtUserSetWindowStationUser(
1594 NtUserSetWindowWord(HWND hWnd
, INT Index
, WORD NewVal
);
1598 NtUserSetWinEventHook(
1615 NtUserShowScrollBar(HWND hWnd
, int wBar
, DWORD bShow
);
1625 NtUserShowWindowAsync(
1631 NtUserSwitchDesktop(
1636 NtUserSystemParametersInfo(
1644 NtUserThunkedMenuInfo(
1650 NtUserThunkedMenuItemInfo(
1655 LPMENUITEMINFOW lpmii
,
1656 PUNICODE_STRING lpszCaption
);
1671 NtUserTrackMouseEvent(
1676 NtUserTrackPopupMenuEx(
1686 NtUserTranslateAccelerator(
1693 NtUserTranslateMessage(
1699 NtUserUnhookWindowsHookEx(
1704 NtUserUnhookWinEvent(
1709 NtUserUnloadKeyboardLayout(
1714 NtUserUnlockWindowStation(
1715 HWINSTA hWindowStation
);
1719 NtUserUnregisterClass(
1720 LPCWSTR ClassNameOrAtom
,
1721 HINSTANCE hInstance
,
1726 NtUserUnregisterHotKey(HWND hWnd
,
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
);
1838 typedef struct _WndProcHandle
1846 NtUserDereferenceWndProcHandle(WNDPROC wpHandle
, WndProcHandle
*Data
);
1847 #endif /* __WIN32K_NTUSER_H */