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
);
92 PULONG pRequiredSize
);
108 #define HWNDLOCK_ROUTINE_ARRANGEICONICWINDOWS 0x54
109 #define HWNDLOCK_ROUTINE_DRAWMENUBAR 0x55
110 #define HWNDLOCK_ROUTINE_REDRAWFRAME 0x58
111 #define HWNDLOCK_ROUTINE_SETFOREGROUNDWINDOW 0x5B
112 #define HWNDLOCK_ROUTINE_UPDATEWINDOW 0x5E
119 #define HWNDOPT_ROUTINE_SETPROGMANWINDOW 0x4A
120 #define HWNDOPT_ROUTINE_SETTASKMANWINDOW 0x4B
136 NtUserCallHwndParamLock(
149 NtUserCallNextHookEx(
155 #define NOPARAM_ROUTINE_REGISTER_PRIMITIVE 0xffff0001 /* Private ROS */
156 #define NOPARAM_ROUTINE_DESTROY_CARET 0xffff0002
157 #define NOPARAM_ROUTINE_UNINIT_MESSAGE_PUMP 0xffff0003
158 #define NOPARAM_ROUTINE_INIT_MESSAGE_PUMP 0xffff0004
159 #define NOPARAM_ROUTINE_GETMESSAGEEXTRAINFO 0xffff0005
165 #define ONEPARAM_ROUTINE_GETMENU 0x01
166 #define ONEPARAM_ROUTINE_ISWINDOWUNICODE 0x02
167 #define ONEPARAM_ROUTINE_WINDOWFROMDC 0x03
168 #define ONEPARAM_ROUTINE_GETWNDCONTEXTHLPID 0x04
169 #define ONEPARAM_ROUTINE_SWAPMOUSEBUTTON 0x05
170 #define ONEPARAM_ROUTINE_SETCARETBLINKTIME 0x06
171 #define ONEPARAM_ROUTINE_GETCARETINFO 0x07
172 #define ONEPARAM_ROUTINE_SWITCHCARETSHOWING 0x08
173 #define ONEPARAM_ROUTINE_ENUMCLIPBOARDFORMATS 0x09
174 #define ONEPARAM_ROUTINE_SETMESSAGEEXTRAINFO 0x0a
181 #define TWOPARAM_ROUTINE_GETWINDOWRGNBOX 0x48
182 #define TWOPARAM_ROUTINE_GETWINDOWRGN 0x49
183 #define TWOPARAM_ROUTINE_SETMENUBARHEIGHT 0x50
184 #define TWOPARAM_ROUTINE_SETMENUITEMRECT 0x51
185 #define TWOPARAM_ROUTINE_SETGUITHRDHANDLE 0x52
186 #define TPR_SGTH_ACTIVE 0x01
187 #define TPR_SGTH_FOCUS 0x02
188 #define TPR_SGTH_CAPTURE 0x03
189 #define TPR_SGTH_MENUOWNER 0x04
190 #define TPR_SGTH_MOVESIZE 0x05
191 #define TPR_SGTH_CARET 0x06
192 #define TWOPARAM_ROUTINE_ENABLEWINDOW 0x53
193 #define TWOPARAM_ROUTINE_UNKNOWN 0x54
194 #define TWOPARAM_ROUTINE_SHOWOWNEDPOPUPS 0x55
195 #define TWOPARAM_ROUTINE_SWITCHTOTHISWINDOW 0x56
196 #define TWOPARAM_ROUTINE_VALIDATERGN 0x57
197 #define TWOPARAM_ROUTINE_SETWNDCONTEXTHLPID 0x58
198 #define TWOPARAM_ROUTINE_CURSORPOSITION 0x59
199 #define TWOPARAM_ROUTINE_SETCARETPOS 0x60
209 NtUserChangeClipboardChain(
215 NtUserChangeDisplaySettings(
216 PUNICODE_STRING lpszDeviceName
,
217 LPDEVMODEW lpDevMode
,
223 NtUserChildWindowFromPointEx(HWND Parent
,
235 NtUserCloseClipboard(VOID
);
244 NtUserCloseWindowStation(
249 NtUserConvertMemHandle(
255 NtUserCopyAcceleratorTable(
262 NtUserCountClipboardFormats(VOID
);
266 NtUserCreateAcceleratorTable(
268 SIZE_T EntriesCount
);
280 NtUserCreateCursorIconHandle(
287 PUNICODE_STRING lpszDesktopName
,
289 ACCESS_MASK dwDesiredAccess
,
290 LPSECURITY_ATTRIBUTES lpSecurity
,
291 HWINSTA hWindowStation
);
295 NtUserCreateLocalMemHandle(
303 NtUserCreateWindowEx(
305 PUNICODE_STRING lpClassName
,
306 PUNICODE_STRING lpWindowName
,
317 BOOL bUnicodeWindow
);
321 NtUserCreateWindowStation(
322 PUNICODE_STRING lpszWindowStationName
,
323 ACCESS_MASK dwDesiredAccess
,
324 LPSECURITY_ATTRIBUTES lpSecurity
,
331 NtUserDdeGetQualityOfService(
347 NtUserDdeSetQualityOfService(
353 NtUserDeferWindowPos(HDWP WinPosInfo
,
362 NtUserDefSetText(HWND WindowHandle
, PANSI_STRING Text
);
366 NtUserDestroyAcceleratorTable(
371 NtUserDestroyCursorIcon(
376 NtUserDestroyWindow(HWND Wnd
);
380 NtUserDispatchMessage(CONST MSG
* lpmsg
);
401 NtUserDrawAnimatedRects(
417 NtUserDrawCaptionTemp(
436 HBRUSH hbrFlickerFreeDraw
,
443 NtUserEmptyClipboard(VOID
);
447 NtUserEnableScrollBar(
454 NtUserEndDeferWindowPosEx(
459 NtUserEndPaint(HWND hWnd
, CONST PAINTSTRUCT
* lPs
);
463 NtUserEnumDisplayDevices (
464 PUNICODE_STRING lpDevice
, /* device name */
465 DWORD iDevNum
, /* display device */
466 PDISPLAY_DEVICE lpDisplayDevice
, /* device information */
467 DWORD dwFlags
); /* reserved */
471 NtUserEnumDisplayMonitors (
474 MONITORENUMPROC lpfnEnum
,
479 NtUserEnumDisplaySettings(
480 PUNICODE_STRING lpszDeviceName
,
482 LPDEVMODEW lpDevMode
, /* FIXME is this correct? */
492 NtUserExcludeUpdateRgn(
506 NtUserFindExistingCursorIcon(
517 PUNICODE_STRING ucClassName
,
518 PUNICODE_STRING ucWindowName
537 NtUserGetAncestor(HWND hWnd
, UINT Flags
);
542 NtUserGetAsyncKeyState(
547 NtUserGetCaretBlinkTime(VOID
);
555 NtUserGetClassInfo(HINSTANCE hInst
,
563 NtUserGetClassName(HWND hWnd
,
569 NtUserGetClipboardData(
575 NtUserGetClipboardFormatName(
577 PUNICODE_STRING FormatName
,
582 NtUserGetClipboardOwner(VOID
);
586 NtUserGetClipboardSequenceNumber(VOID
);
590 NtUserGetClipboardViewer(VOID
);
599 NtUserGetComboBoxInfo(
605 NtUserGetControlBrush(
612 NtUserGetControlColor(
627 NtUserGetCursorFrameInfo(
652 NtUserGetDoubleClickTime(VOID
);
656 NtUserGetForegroundWindow(VOID
);
660 NtUserGetGuiResources(
666 NtUserGetGUIThreadInfo(
668 LPGUITHREADINFO lpgui
);
672 NtUserGetCursorIconInfo(
678 NtUserGetCursorIconSize(
693 NtUserGetInternalWindowPos(
700 NtUserGetKeyboardLayoutList(
706 NtUserGetKeyboardLayoutName(
711 NtUserGetKeyboardState(
716 NtUserGetKeyNameText( LONG lParam
, LPWSTR lpString
, int nSize
);
725 NtUserGetListBoxInfo(
738 NtUserGetMouseMovePointsEx(
747 NtUserGetObjectInformation(
752 PDWORD nLengthNeeded
);
756 NtUserGetOpenClipboardWindow(VOID
);
760 NtUserGetPriorityClipboardFormat(
761 UINT
*paFormatPriorityList
,
766 NtUserGetProcessWindowStation(VOID
);
770 NtUserGetScrollBarInfo(
773 PSCROLLBARINFO psbi
);
784 NtUserGetThreadDesktop(
788 #define THREADSTATE_FOCUSWINDOW (1)
789 #define THREADSTATE_INSENDMESSAGE (2)
792 NtUserGetThreadState(
797 NtUserGetTitleBarInfo(
802 NtUserGetUpdateRect(HWND hWnd
, LPRECT lpRect
, BOOL fErase
);
818 NtUserGetWindowPlacement(
820 WINDOWPLACEMENT
*lpwndpl
);
835 NtUserImpersonateDdeClientWindow(
841 NtUserInitializeClientPfnArrays(
864 NtUserInternalGetWindowText(
871 NtUserInvalidateRect(
886 NtUserIsClipboardFormatAvailable(
891 NtUserKillSystemTimer
907 NtUserLoadKeyboardLayoutEx(
917 NtUserLockWindowStation(
918 HWINSTA hWindowStation
);
922 NtUserLockWindowUpdate(
927 NtUserLockWorkStation(VOID
);
931 NtUserMapVirtualKeyEx( UINT keyCode
,
951 MINMAXINFO
*MinMaxInfo
,
956 NtUserMNDragLeave(VOID
);
966 NtUserModifyUserStartupInfoFlags(
983 NtUserNotifyIMEStatus(
990 NtUserNotifyWinEvent(
1005 PUNICODE_STRING lpszDesktopName
,
1007 ACCESS_MASK dwDesiredAccess
);
1011 NtUserOpenInputDesktop(
1014 ACCESS_MASK dwDesiredAccess
);
1018 NtUserOpenWindowStation(
1019 PUNICODE_STRING lpszWindowStationName
,
1020 ACCESS_MASK dwDesiredAccess
);
1046 NtUserPostThreadMessage(
1054 NtUserQuerySendMessage(
1059 NtUserQueryUserCounters(
1074 NtUserRealChildWindowFromPoint(
1084 CONST RECT
*lprcUpdate
,
1091 NtUserRegisterClassExWOW(CONST WNDCLASSEXW
* lpwcx
,
1099 NtUserRegisterHotKey(HWND hWnd
,
1106 NtUserRegisterTasklist(
1110 NtUserRegisterWindowMessage(PUNICODE_STRING MessageName
);
1113 NtUserRemoveProp(HWND hWnd
, ATOM Atom
);
1117 NtUserResolveDesktopForWOW(
1134 CONST RECT
*lprcScroll
,
1135 CONST RECT
*lprcClip
,
1140 NtUserScrollWindowEx(HWND hWnd
, INT dx
, INT dy
, const RECT
*rect
,
1141 const RECT
*clipRect
, HRGN hrgnUpdate
, LPRECT rcUpdate
, UINT flags
);
1150 typedef struct tagNTUSERSENDMESSAGEINFO
1152 BOOL HandledByKernel
;
1155 } NTUSERSENDMESSAGEINFO
, *PNTUSERSENDMESSAGEINFO
;
1158 NtUserSendMessage(HWND hWnd
,
1162 PNTUSERSENDMESSAGEINFO Info
);
1166 NtUserSendMessageCallback(
1171 SENDASYNCPROC lpCallBack
,
1175 NtUserSendMessageTimeout(HWND hWnd
,
1182 PNTUSERSENDMESSAGEINFO Info
);
1186 NtUserSendNotifyMessage(
1193 NtUserSetActiveWindow(HWND Wnd
);
1195 NtUserGetActiveWindow(VOID
);
1198 NtUserSetCapture(HWND Wnd
);
1200 NtUserGetCapture(VOID
);
1219 NtUserSetClipboardData(
1226 NtUserSetClipboardViewer(
1227 HWND hWndNewViewer
);
1231 NtUserSetConsoleReserveKeys(
1242 NtUserSetCursorIconContents(
1244 PICONINFO IconInfo
);
1248 NtUserSetCursorIconData(
1278 NtUserSetImeOwnerWindow(
1284 NtUserSetInternalWindowPos(
1292 NtUserSetKeyboardState(
1297 NtUserSetLayeredWindowAttributes(
1305 NtUserSetLogonNotifyWindow(
1310 NtUserSetObjectInformation(
1313 PVOID pvInformation
,
1320 HWND hWndNewParent
);
1324 NtUserSetProcessWindowStation(
1325 HWINSTA hWindowStation
);
1328 NtUserSetProp(HWND hWnd
, ATOM Atom
, HANDLE Data
);
1338 NtUserSetScrollInfo(
1346 NtUserSetShellWindowEx(
1348 HWND hwndShellListView
);
1352 NtUserGetShellWindow();
1364 NtUserSetSystemCursor(
1370 NtUserSetThreadDesktop(
1375 NtUserSetThreadState(
1381 NtUserSetSystemTimer
1386 TIMERPROC lpTimerFunc
1396 TIMERPROC lpTimerFunc
1401 NtUserSetWindowFNID(
1407 NtUserSetWindowLong(
1415 NtUserSetWindowPlacement(
1417 WINDOWPLACEMENT
*lpwndpl
);
1420 STDCALL
NtUserSetWindowPos(
1422 HWND hWndInsertAfter
,
1439 NtUserSetWindowsHookAW(
1446 NtUserSetWindowsHookEx(
1448 PUNICODE_STRING ModuleName
,
1456 NtUserSetWindowStationUser(
1463 NtUserSetWindowWord(HWND hWnd
, INT Index
, WORD NewVal
);
1467 NtUserSetWinEventHook(
1484 NtUserShowScrollBar(HWND hWnd
, int wBar
, DWORD bShow
);
1494 NtUserShowWindowAsync(
1500 NtUserSwitchDesktop(
1505 NtUserSystemParametersInfo(
1524 NtUserTrackMouseEvent(
1529 NtUserTranslateAccelerator(
1536 NtUserTranslateMessage(
1542 NtUserUnhookWindowsHookEx(
1547 NtUserUnhookWinEvent(
1552 NtUserUnloadKeyboardLayout(
1557 NtUserUnlockWindowStation(
1558 HWINSTA hWindowStation
);
1562 NtUserUnregisterClass(
1563 LPCWSTR ClassNameOrAtom
,
1564 HINSTANCE hInstance
,
1569 NtUserUnregisterHotKey(HWND hWnd
,
1574 NtUserUpdateInputContext(
1581 NtUserUpdateInstance(
1587 NtUserUpdateWindow( HWND hWnd
);
1591 NtUserUpdateLayeredWindow(
1604 NtUserUpdatePerUserSystemParameters(
1610 NtUserUserHandleGrantAccess(
1617 NtUserValidateHandleSecure(
1621 NtUserValidateRect(HWND Wnd
, const RECT
* Rect
);
1633 NtUserWaitForInputIdle(
1640 NtUserWaitForMsgAndEvent(
1645 NtUserWaitMessage(VOID
);
1649 NtUserWin32PoolAllocationStats(
1659 NtUserWindowFromPoint(
1665 NtUserYieldTask(VOID
);
1668 NtUserGetWindowThreadProcessId(HWND hWnd
, LPDWORD UnsafePid
);
1671 NtUserGetQueueStatus(BOOL ClearChanges
);
1674 NtUserGetParent(HWND hWnd
);
1677 NtUserGetWindow(HWND hWnd
, UINT Relationship
);
1680 NtUserGetLastActivePopup(HWND hWnd
);
1681 typedef struct _WndProcHandle
1689 NtUserDereferenceWndProcHandle(WNDPROC wpHandle
, WndProcHandle
*Data
);
1692 NtUserManualGuiCheck(LONG Check
);
1694 typedef struct _SETSCROLLBARINFO
1698 DWORD rgstate
[CCHILDREN_SCROLLBAR
+1];
1699 } SETSCROLLBARINFO
, *PSETSCROLLBARINFO
;
1703 NtUserSetScrollBarInfo(
1706 SETSCROLLBARINFO
*info
);
1708 #endif /* __WIN32K_NTUSER_H */