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
);
1262 typedef struct tagNTUSERSENDMESSAGEINFO
1264 BOOL HandledByKernel
;
1267 } NTUSERSENDMESSAGEINFO
, *PNTUSERSENDMESSAGEINFO
;
1270 NtUserSendMessage(HWND hWnd
,
1274 PNTUSERSENDMESSAGEINFO Info
);
1278 NtUserSendMessageCallback(
1283 SENDASYNCPROC lpCallBack
,
1288 NtUserSendNotifyMessage(
1295 NtUserSetActiveWindow(HWND Wnd
);
1297 NtUserGetActiveWindow(VOID
);
1300 NtUserSetCapture(HWND Wnd
);
1302 NtUserGetCapture(VOID
);
1321 NtUserSetClipboardData(
1328 NtUserSetClipboardViewer(
1333 NtUserSetConsoleReserveKeys(
1344 NtUserSetCursorIconContents(
1346 PICONINFO IconInfo
);
1350 NtUserSetCursorIconData(
1380 NtUserSetImeOwnerWindow(
1386 NtUserSetInternalWindowPos(
1394 NtUserSetKeyboardState(
1399 NtUserSetLayeredWindowAttributes(
1407 NtUserSetLogonNotifyWindow(
1419 NtUserSetMenuContextHelpId(
1421 DWORD dwContextHelpId
);
1425 NtUserSetMenuDefaultItem(
1432 NtUserSetMenuFlagRtoL(
1437 NtUserSetObjectInformation(
1440 PVOID pvInformation
,
1447 HWND hWndNewParent
);
1451 NtUserSetProcessWindowStation(
1452 HWINSTA hWindowStation
);
1455 NtUserSetProp(HWND hWnd
, ATOM Atom
, HANDLE Data
);
1465 NtUserSetScrollInfo(
1473 NtUserSetShellWindowEx(
1475 HWND hwndShellListView
);
1479 NtUserGetShellWindow();
1491 NtUserSetSystemCursor(
1497 NtUserSetSystemMenu(
1503 NtUserSetThreadDesktop(
1508 NtUserSetThreadState(
1514 NtUserSetSystemTimer
1519 TIMERPROC lpTimerFunc
1529 TIMERPROC lpTimerFunc
1534 NtUserSetWindowFNID(
1540 NtUserSetWindowLong(
1548 NtUserSetWindowPlacement(
1553 STDCALL
NtUserSetWindowPos(
1555 HWND hWndInsertAfter
,
1572 NtUserSetWindowsHookAW(
1579 NtUserSetWindowsHookEx(
1581 PUNICODE_STRING ModuleName
,
1589 NtUserSetWindowStationUser(
1596 NtUserSetWindowWord(HWND hWnd
, INT Index
, WORD NewVal
);
1600 NtUserSetWinEventHook(
1617 NtUserShowScrollBar(HWND hWnd
, int wBar
, DWORD bShow
);
1627 NtUserShowWindowAsync(
1633 NtUserSwitchDesktop(
1638 NtUserSystemParametersInfo(
1646 NtUserThunkedMenuInfo(
1652 NtUserThunkedMenuItemInfo(
1657 LPMENUITEMINFOW lpmii
,
1658 PUNICODE_STRING lpszCaption
);
1673 NtUserTrackMouseEvent(
1678 NtUserTrackPopupMenuEx(
1688 NtUserTranslateAccelerator(
1695 NtUserTranslateMessage(
1701 NtUserUnhookWindowsHookEx(
1706 NtUserUnhookWinEvent(
1711 NtUserUnloadKeyboardLayout(
1716 NtUserUnlockWindowStation(
1717 HWINSTA hWindowStation
);
1721 NtUserUnregisterClass(
1722 LPCWSTR ClassNameOrAtom
,
1723 HINSTANCE hInstance
,
1728 NtUserUnregisterHotKey(HWND hWnd
,
1733 NtUserUpdateInputContext(
1740 NtUserUpdateInstance(
1746 NtUserUpdateWindow( HWND hWnd
);
1750 NtUserUpdateLayeredWindow(
1763 NtUserUpdatePerUserSystemParameters(
1769 NtUserUserHandleGrantAccess(
1776 NtUserValidateHandleSecure(
1780 NtUserValidateRect(HWND Wnd
, const RECT
* Rect
);
1792 NtUserWaitForInputIdle(
1799 NtUserWaitForMsgAndEvent(
1804 NtUserWaitMessage(VOID
);
1808 NtUserWin32PoolAllocationStats(
1818 NtUserWindowFromPoint(
1824 NtUserYieldTask(VOID
);
1827 NtUserGetWindowThreadProcessId(HWND hWnd
, LPDWORD UnsafePid
);
1830 NtUserGetQueueStatus(BOOL ClearChanges
);
1833 NtUserGetParent(HWND hWnd
);
1836 NtUserGetWindow(HWND hWnd
, UINT Relationship
);
1839 NtUserGetLastActivePopup(HWND hWnd
);
1840 typedef struct _WndProcHandle
1848 NtUserDereferenceWndProcHandle(WNDPROC wpHandle
, WndProcHandle
*Data
);
1851 NtUserManualGuiCheck(LONG Check
);
1852 #endif /* __WIN32K_NTUSER_H */