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
167 #define NOPARAM_ROUTINE_GETMESSAGEEXTRAINFO 0xffff0005
173 #define ONEPARAM_ROUTINE_GETMENU 0x01
174 #define ONEPARAM_ROUTINE_ISWINDOWUNICODE 0x02
175 #define ONEPARAM_ROUTINE_WINDOWFROMDC 0x03
176 #define ONEPARAM_ROUTINE_GETWNDCONTEXTHLPID 0x04
177 #define ONEPARAM_ROUTINE_SWAPMOUSEBUTTON 0x05
178 #define ONEPARAM_ROUTINE_SETCARETBLINKTIME 0x06
179 #define ONEPARAM_ROUTINE_GETCARETINFO 0x07
180 #define ONEPARAM_ROUTINE_SWITCHCARETSHOWING 0x08
181 #define ONEPARAM_ROUTINE_ENUMCLIPBOARDFORMATS 0x09
182 #define ONEPARAM_ROUTINE_SETMESSAGEEXTRAINFO 0x0a
189 #define TWOPARAM_ROUTINE_ENABLEWINDOW 0x53
190 #define TWOPARAM_ROUTINE_UNKNOWN 0x54
191 #define TWOPARAM_ROUTINE_SHOWOWNEDPOPUPS 0x55
192 #define TWOPARAM_ROUTINE_SWITCHTOTHISWINDOW 0x56
193 #define TWOPARAM_ROUTINE_VALIDATERGN 0x57
194 #define TWOPARAM_ROUTINE_SETWNDCONTEXTHLPID 0x58
195 #define TWOPARAM_ROUTINE_CURSORPOSITION 0x59
196 #define TWOPARAM_ROUTINE_SETCARETPOS 0x60
206 NtUserChangeClipboardChain(
212 NtUserChangeDisplaySettings(
213 PUNICODE_STRING lpszDeviceName
,
214 LPDEVMODEW lpDevMode
,
227 NtUserChildWindowFromPointEx(HWND Parent
,
239 NtUserCloseClipboard(VOID
);
248 NtUserCloseWindowStation(
253 NtUserConvertMemHandle(
259 NtUserCopyAcceleratorTable(
266 NtUserCountClipboardFormats(VOID
);
270 NtUserCreateAcceleratorTable(
272 SIZE_T EntriesCount
);
284 NtUserCreateCursorIconHandle(
291 PUNICODE_STRING lpszDesktopName
,
293 ACCESS_MASK dwDesiredAccess
,
294 LPSECURITY_ATTRIBUTES lpSecurity
,
295 HWINSTA hWindowStation
);
299 NtUserCreateLocalMemHandle(
307 NtUserCreateMenu(VOID
);
311 NtUserCreateWindowEx(
313 PUNICODE_STRING lpClassName
,
314 PUNICODE_STRING lpWindowName
,
325 BOOL bUnicodeWindow
);
329 NtUserCreateWindowStation(
330 PUNICODE_STRING lpszWindowStationName
,
331 ACCESS_MASK dwDesiredAccess
,
332 LPSECURITY_ATTRIBUTES lpSecurity
,
339 NtUserDdeGetQualityOfService(
355 NtUserDdeSetQualityOfService(
361 NtUserDeferWindowPos(HDWP WinPosInfo
,
370 NtUserDefSetText(HWND WindowHandle
, PANSI_STRING Text
);
381 NtUserDestroyAcceleratorTable(
386 NtUserDestroyCursorIcon(
396 NtUserDestroyWindow(HWND Wnd
);
400 NtUserDispatchMessage(CONST MSG
* lpmsg
);
421 NtUserDrawAnimatedRects(
437 NtUserDrawCaptionTemp(
456 HBRUSH hbrFlickerFreeDraw
,
463 NtUserDrawMenuBarTemp(
472 NtUserEmptyClipboard(VOID
);
476 NtUserEnableMenuItem(
483 NtUserInsertMenuItem(
487 LPCMENUITEMINFOW lpmii
);
492 NtUserEnableScrollBar(
499 NtUserEndDeferWindowPosEx(
508 NtUserEndPaint(HWND hWnd
, CONST PAINTSTRUCT
* lPs
);
512 NtUserEnumDisplayDevices (
513 PUNICODE_STRING lpDevice
, /* device name */
514 DWORD iDevNum
, /* display device */
515 PDISPLAY_DEVICE lpDisplayDevice
, /* device information */
516 DWORD dwFlags
); /* reserved */
520 NtUserEnumDisplayMonitors (
523 MONITORENUMPROC lpfnEnum
,
528 NtUserEnumDisplaySettings(
529 PUNICODE_STRING lpszDeviceName
,
531 LPDEVMODEW lpDevMode
, /* FIXME is this correct? */
541 NtUserExcludeUpdateRgn(
555 NtUserFindExistingCursorIcon(
566 PUNICODE_STRING ucClassName
,
567 PUNICODE_STRING ucWindowName
586 NtUserGetAncestor(HWND hWnd
, UINT Flags
);
591 NtUserGetAsyncKeyState(
596 NtUserGetCaretBlinkTime(VOID
);
604 NtUserGetClassInfo(HINSTANCE hInst
,
612 NtUserGetClassName(HWND hWnd
,
618 NtUserGetClipboardData(
624 NtUserGetClipboardFormatName(
626 PUNICODE_STRING FormatName
,
631 NtUserGetClipboardOwner(VOID
);
635 NtUserGetClipboardSequenceNumber(VOID
);
639 NtUserGetClipboardViewer(VOID
);
648 NtUserGetComboBoxInfo(
654 NtUserGetControlBrush(
661 NtUserGetControlColor(
676 NtUserGetCursorFrameInfo(
688 NtUserGetMenuDefaultItem(
694 NtUserGetDC(HWND hWnd
);
696 HDC STDCALL
NtUserGetDCEx(HWND hWnd
, HANDLE hRegion
, ULONG Flags
);
700 NtUserGetDoubleClickTime(VOID
);
704 NtUserGetForegroundWindow(VOID
);
708 NtUserGetGuiResources(
714 NtUserGetGUIThreadInfo(
716 LPGUITHREADINFO lpgui
);
720 NtUserGetCursorIconInfo(
726 NtUserGetCursorIconSize(
741 NtUserGetInternalWindowPos(
748 NtUserGetKeyboardLayoutList(
754 NtUserGetKeyboardLayoutName(
759 NtUserGetKeyboardState(
764 NtUserGetKeyNameText( LONG lParam
, LPWSTR lpString
, int nSize
);
773 NtUserGetListBoxInfo(
778 NtUserGetMenuBarInfo(
792 NtUserGetMenuItemRect(
808 NtUserGetMouseMovePointsEx(
817 NtUserGetObjectInformation(
822 PDWORD nLengthNeeded
);
826 NtUserGetOpenClipboardWindow(VOID
);
830 NtUserGetPriorityClipboardFormat(
831 UINT
*paFormatPriorityList
,
836 NtUserGetProcessWindowStation(VOID
);
840 NtUserGetScrollBarInfo(
843 PSCROLLBARINFO psbi
);
860 NtUserGetThreadDesktop(
866 NtUserGetThreadState(
871 NtUserGetTitleBarInfo(
876 NtUserGetUpdateRect(HWND hWnd
, LPRECT lpRect
, BOOL fErase
);
892 NtUserGetWindowPlacement(
894 WINDOWPLACEMENT
*lpwndpl
);
909 NtUserHiliteMenuItem(
917 NtUserImpersonateDdeClientWindow(
923 NtUserInitializeClientPfnArrays(
946 NtUserInternalGetWindowText(
953 NtUserInvalidateRect(
968 NtUserIsClipboardFormatAvailable(
973 NtUserKillSystemTimer
989 NtUserLoadKeyboardLayoutEx(
999 NtUserLockWindowStation(
1000 HWINSTA hWindowStation
);
1004 NtUserLockWindowUpdate(
1009 NtUserLockWorkStation(VOID
);
1013 NtUserMapVirtualKeyEx( UINT keyCode
,
1028 NtUserMenuItemFromPoint(
1040 LPMENUITEMINFOW lpmii
,
1057 NtUserGetMinMaxInfo(
1059 MINMAXINFO
*MinMaxInfo
,
1064 NtUserMNDragLeave(VOID
);
1074 NtUserModifyUserStartupInfoFlags(
1091 NtUserNotifyIMEStatus(
1098 NtUserNotifyWinEvent(
1106 NtUserOpenClipboard(
1113 PUNICODE_STRING lpszDesktopName
,
1115 ACCESS_MASK dwDesiredAccess
);
1119 NtUserOpenInputDesktop(
1122 ACCESS_MASK dwDesiredAccess
);
1126 NtUserOpenWindowStation(
1127 PUNICODE_STRING lpszWindowStationName
,
1128 ACCESS_MASK dwDesiredAccess
);
1154 NtUserPostThreadMessage(
1162 NtUserQuerySendMessage(
1167 NtUserQueryUserCounters(
1182 NtUserRealChildWindowFromPoint(
1192 CONST RECT
*lprcUpdate
,
1199 NtUserRegisterClassExWOW(CONST WNDCLASSEXW
* lpwcx
,
1207 NtUserRegisterHotKey(HWND hWnd
,
1214 NtUserRegisterTasklist(
1218 NtUserRegisterWindowMessage(PUNICODE_STRING MessageName
);
1228 NtUserRemoveProp(HWND hWnd
, ATOM Atom
);
1232 NtUserResolveDesktopForWOW(
1249 CONST RECT
*lprcScroll
,
1250 CONST RECT
*lprcClip
,
1255 NtUserScrollWindowEx(HWND hWnd
, INT dx
, INT dy
, const RECT
*rect
,
1256 const RECT
*clipRect
, HRGN hrgnUpdate
, LPRECT rcUpdate
, UINT flags
);
1265 typedef struct tagNTUSERSENDMESSAGEINFO
1267 BOOL HandledByKernel
;
1270 } NTUSERSENDMESSAGEINFO
, *PNTUSERSENDMESSAGEINFO
;
1273 NtUserSendMessage(HWND hWnd
,
1277 PNTUSERSENDMESSAGEINFO Info
);
1281 NtUserSendMessageCallback(
1286 SENDASYNCPROC lpCallBack
,
1291 NtUserSendNotifyMessage(
1298 NtUserSetActiveWindow(HWND Wnd
);
1300 NtUserGetActiveWindow(VOID
);
1303 NtUserSetCapture(HWND Wnd
);
1305 NtUserGetCapture(VOID
);
1324 NtUserSetClipboardData(
1331 NtUserSetClipboardViewer(
1332 HWND hWndNewViewer
);
1336 NtUserSetConsoleReserveKeys(
1347 NtUserSetCursorIconContents(
1349 PICONINFO IconInfo
);
1353 NtUserSetCursorIconData(
1383 NtUserSetImeOwnerWindow(
1389 NtUserSetInternalWindowPos(
1397 NtUserSetKeyboardState(
1402 NtUserSetLayeredWindowAttributes(
1410 NtUserSetLogonNotifyWindow(
1422 NtUserSetMenuContextHelpId(
1424 DWORD dwContextHelpId
);
1428 NtUserSetMenuDefaultItem(
1435 NtUserSetMenuFlagRtoL(
1440 NtUserSetObjectInformation(
1443 PVOID pvInformation
,
1450 HWND hWndNewParent
);
1454 NtUserSetProcessWindowStation(
1455 HWINSTA hWindowStation
);
1458 NtUserSetProp(HWND hWnd
, ATOM Atom
, HANDLE Data
);
1468 NtUserSetScrollInfo(
1476 NtUserSetShellWindowEx(
1478 HWND hwndShellListView
);
1482 NtUserGetShellWindow();
1494 NtUserSetSystemCursor(
1500 NtUserSetSystemMenu(
1506 NtUserSetThreadDesktop(
1511 NtUserSetThreadState(
1517 NtUserSetSystemTimer
1522 TIMERPROC lpTimerFunc
1532 TIMERPROC lpTimerFunc
1537 NtUserSetWindowFNID(
1543 NtUserSetWindowLong(
1551 NtUserSetWindowPlacement(
1553 WINDOWPLACEMENT
*lpwndpl
);
1556 STDCALL
NtUserSetWindowPos(
1558 HWND hWndInsertAfter
,
1575 NtUserSetWindowsHookAW(
1582 NtUserSetWindowsHookEx(
1584 PUNICODE_STRING ModuleName
,
1592 NtUserSetWindowStationUser(
1599 NtUserSetWindowWord(HWND hWnd
, INT Index
, WORD NewVal
);
1603 NtUserSetWinEventHook(
1620 NtUserShowScrollBar(HWND hWnd
, int wBar
, DWORD bShow
);
1630 NtUserShowWindowAsync(
1636 NtUserSwitchDesktop(
1641 NtUserSystemParametersInfo(
1649 NtUserThunkedMenuInfo(
1655 NtUserThunkedMenuItemInfo(
1660 LPMENUITEMINFOW lpmii
,
1661 PUNICODE_STRING lpszCaption
);
1676 NtUserTrackMouseEvent(
1681 NtUserTrackPopupMenuEx(
1691 NtUserTranslateAccelerator(
1698 NtUserTranslateMessage(
1704 NtUserUnhookWindowsHookEx(
1709 NtUserUnhookWinEvent(
1714 NtUserUnloadKeyboardLayout(
1719 NtUserUnlockWindowStation(
1720 HWINSTA hWindowStation
);
1724 NtUserUnregisterClass(
1725 LPCWSTR ClassNameOrAtom
,
1726 HINSTANCE hInstance
,
1731 NtUserUnregisterHotKey(HWND hWnd
,
1736 NtUserUpdateInputContext(
1743 NtUserUpdateInstance(
1749 NtUserUpdateWindow( HWND hWnd
);
1753 NtUserUpdateLayeredWindow(
1766 NtUserUpdatePerUserSystemParameters(
1772 NtUserUserHandleGrantAccess(
1779 NtUserValidateHandleSecure(
1783 NtUserValidateRect(HWND Wnd
, const RECT
* Rect
);
1795 NtUserWaitForInputIdle(
1802 NtUserWaitForMsgAndEvent(
1807 NtUserWaitMessage(VOID
);
1811 NtUserWin32PoolAllocationStats(
1821 NtUserWindowFromPoint(
1827 NtUserYieldTask(VOID
);
1830 NtUserGetWindowThreadProcessId(HWND hWnd
, LPDWORD UnsafePid
);
1833 NtUserGetQueueStatus(BOOL ClearChanges
);
1836 NtUserGetParent(HWND hWnd
);
1839 NtUserGetWindow(HWND hWnd
, UINT Relationship
);
1842 NtUserGetLastActivePopup(HWND hWnd
);
1843 typedef struct _WndProcHandle
1851 NtUserDereferenceWndProcHandle(WNDPROC wpHandle
, WndProcHandle
*Data
);
1854 NtUserManualGuiCheck(LONG Check
);
1856 typedef struct _SETSCROLLBARINFO
1860 DWORD rgstate
[CCHILDREN_SCROLLBAR
+1];
1861 } SETSCROLLBARINFO
, *PSETSCROLLBARINFO
;
1865 NtUserSetScrollBarInfo(
1868 SETSCROLLBARINFO
*info
);
1870 #endif /* __WIN32K_NTUSER_H */