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
);
275 NtUserCreateCursorIconHandle(
282 PUNICODE_STRING lpszDesktopName
,
284 ACCESS_MASK dwDesiredAccess
,
285 LPSECURITY_ATTRIBUTES lpSecurity
,
286 HWINSTA hWindowStation
);
290 NtUserCreateLocalMemHandle(
298 NtUserCreateMenu(VOID
);
302 NtUserCreateWindowEx(
304 PUNICODE_STRING lpClassName
,
305 PUNICODE_STRING lpWindowName
,
316 BOOL bUnicodeWindow
);
320 NtUserCreateWindowStation(
321 PUNICODE_STRING lpszWindowStationName
,
322 ACCESS_MASK dwDesiredAccess
,
323 LPSECURITY_ATTRIBUTES lpSecurity
,
330 NtUserDdeGetQualityOfService(
346 NtUserDdeSetQualityOfService(
352 NtUserDeferWindowPos(HDWP WinPosInfo
,
361 NtUserDefSetText(HWND WindowHandle
, PANSI_STRING Text
);
372 NtUserDestroyAcceleratorTable(
387 NtUserDestroyWindow(HWND Wnd
);
391 NtUserDispatchMessage(CONST MSG
* lpmsg
);
412 NtUserDrawAnimatedRects(
428 NtUserDrawCaptionTemp(
447 HBRUSH hbrFlickerFreeDraw
,
454 NtUserDrawMenuBarTemp(
463 NtUserEmptyClipboard(VOID
);
467 NtUserEnableMenuItem(
474 NtUserInsertMenuItem(
478 LPCMENUITEMINFOW lpmii
);
483 NtUserEnableScrollBar(
490 NtUserEndDeferWindowPosEx(
499 NtUserEndPaint(HWND hWnd
, CONST PAINTSTRUCT
* lPs
);
503 NtUserEnumDisplayDevices (
504 PUNICODE_STRING lpDevice
, /* device name */
505 DWORD iDevNum
, /* display device */
506 PDISPLAY_DEVICE lpDisplayDevice
, /* device information */
507 DWORD dwFlags
); /* reserved */
511 NtUserEnumDisplayMonitors (
514 MONITORENUMPROC lpfnEnum
,
519 NtUserEnumDisplaySettings(
520 PUNICODE_STRING lpszDeviceName
,
522 LPDEVMODEW lpDevMode
, /* FIXME is this correct? */
532 NtUserExcludeUpdateRgn(
546 NtUserFindExistingCursorIcon(
555 PUNICODE_STRING ucClassName
,
556 PUNICODE_STRING ucWindowName
575 NtUserGetAncestor(HWND hWnd
, UINT Flags
);
580 NtUserGetAsyncKeyState(
585 NtUserGetCaretBlinkTime(VOID
);
593 NtUserGetClassInfo(HINSTANCE hInst
,
601 NtUserGetClassName(HWND hWnd
,
607 NtUserGetClipboardData(
613 NtUserGetClipboardFormatName(
620 NtUserGetClipboardOwner(VOID
);
624 NtUserGetClipboardSequenceNumber(VOID
);
628 NtUserGetClipboardViewer(VOID
);
637 NtUserGetComboBoxInfo(
643 NtUserGetControlBrush(
650 NtUserGetControlColor(
665 NtUserGetCursorFrameInfo(
677 NtUserGetMenuDefaultItem(
683 NtUserGetDC(HWND hWnd
);
685 HDC STDCALL
NtUserGetDCEx(HWND hWnd
, HANDLE hRegion
, ULONG Flags
);
689 NtUserGetDoubleClickTime(VOID
);
693 NtUserGetForegroundWindow(VOID
);
697 NtUserGetGuiResources(
703 NtUserGetGUIThreadInfo(
730 NtUserGetInternalWindowPos(
737 NtUserGetKeyboardLayoutList(
743 NtUserGetKeyboardLayoutName(
748 NtUserGetKeyboardState(
753 NtUserGetKeyNameText( LONG lParam
, LPWSTR lpString
, int nSize
);
762 NtUserGetListBoxInfo(
767 NtUserGetMenuBarInfo(
781 NtUserGetMenuItemRect(
797 NtUserGetMouseMovePointsEx(
806 NtUserGetObjectInformation(
811 PDWORD nLengthNeeded
);
815 NtUserGetOpenClipboardWindow(VOID
);
819 NtUserGetPriorityClipboardFormat(
825 NtUserGetProcessWindowStation(VOID
);
829 NtUserGetScrollBarInfo(
832 PSCROLLBARINFO psbi
);
849 NtUserGetThreadDesktop(
855 NtUserGetThreadState(
860 NtUserGetTitleBarInfo(
885 NtUserGetWindowPlacement(
902 NtUserHiliteMenuItem(
910 NtUserImpersonateDdeClientWindow(
916 NtUserInitializeClientPfnArrays(
939 NtUserInternalGetWindowText(
946 NtUserInvalidateRect(
961 NtUserIsClipboardFormatAvailable(
966 NtUserKillSystemTimer
982 NtUserLoadKeyboardLayoutEx(
992 NtUserLockWindowStation(
993 HWINSTA hWindowStation
);
997 NtUserLockWindowUpdate(
1002 NtUserLockWorkStation(VOID
);
1006 NtUserMapVirtualKeyEx( UINT keyCode
,
1021 NtUserMenuItemFromPoint(
1033 LPMENUITEMINFOW lpmii
,
1057 NtUserMNDragLeave(VOID
);
1067 NtUserModifyUserStartupInfoFlags(
1084 NtUserNotifyIMEStatus(
1091 NtUserNotifyWinEvent(
1099 NtUserOpenClipboard(
1106 PUNICODE_STRING lpszDesktopName
,
1108 ACCESS_MASK dwDesiredAccess
);
1112 NtUserOpenInputDesktop(
1115 ACCESS_MASK dwDesiredAccess
);
1119 NtUserOpenWindowStation(
1120 PUNICODE_STRING lpszWindowStationName
,
1121 ACCESS_MASK dwDesiredAccess
);
1147 NtUserPostThreadMessage(
1155 NtUserQuerySendMessage(
1160 NtUserQueryUserCounters(
1175 NtUserRealChildWindowFromPoint(
1185 CONST RECT
*lprcUpdate
,
1192 NtUserRegisterClassExWOW(CONST WNDCLASSEXW
* lpwcx
,
1200 NtUserRegisterHotKey(HWND hWnd
,
1207 NtUserRegisterTasklist(
1211 NtUserRegisterWindowMessage(PUNICODE_STRING MessageName
);
1221 NtUserRemoveProp(HWND hWnd
, ATOM Atom
);
1225 NtUserResolveDesktopForWOW(
1242 CONST RECT
*lprcScroll
,
1243 CONST RECT
*lprcClip
,
1249 NtUserScrollWindowEx(
1267 NtUserSendMessage(HWND hWnd
,
1274 NtUserSendMessageCallback(
1279 SENDASYNCPROC lpCallBack
,
1284 NtUserSendNotifyMessage(
1291 NtUserSetActiveWindow(HWND Wnd
);
1293 NtUserGetActiveWindow(VOID
);
1296 NtUserSetCapture(HWND Wnd
);
1298 NtUserGetCapture(VOID
);
1317 NtUserSetClipboardData(
1324 NtUserSetClipboardViewer(
1329 NtUserSetConsoleReserveKeys(
1340 NtUserSetCursorIconContents(
1342 PICONINFO IconInfo
);
1346 NtUserSetCursorIconData(
1376 NtUserSetImeOwnerWindow(
1382 NtUserSetInternalWindowPos(
1390 NtUserSetKeyboardState(
1395 NtUserSetLayeredWindowAttributes(
1403 NtUserSetLogonNotifyWindow(
1415 NtUserSetMenuContextHelpId(
1417 DWORD dwContextHelpId
);
1421 NtUserSetMenuDefaultItem(
1428 NtUserSetMenuFlagRtoL(
1433 NtUserSetObjectInformation(
1436 PVOID pvInformation
,
1443 HWND hWndNewParent
);
1447 NtUserSetProcessWindowStation(
1448 HWINSTA hWindowStation
);
1451 NtUserSetProp(HWND hWnd
, ATOM Atom
, HANDLE Data
);
1461 NtUserSetScrollInfo(
1469 NtUserSetShellWindowEx(
1471 HWND hwndShellListView
);
1475 NtUserGetShellWindow();
1487 NtUserSetSystemCursor(
1493 NtUserSetSystemMenu(
1499 NtUserSetThreadDesktop(
1504 NtUserSetThreadState(
1510 NtUserSetSystemTimer
1515 TIMERPROC lpTimerFunc
1525 TIMERPROC lpTimerFunc
1530 NtUserSetWindowFNID(
1536 NtUserSetWindowLong(
1544 NtUserSetWindowPlacement(
1549 STDCALL
NtUserSetWindowPos(
1551 HWND hWndInsertAfter
,
1568 NtUserSetWindowsHookAW(
1575 NtUserSetWindowsHookEx(
1585 NtUserSetWindowStationUser(
1592 NtUserSetWindowWord(HWND hWnd
, INT Index
, WORD NewVal
);
1596 NtUserSetWinEventHook(
1613 NtUserShowScrollBar(HWND hWnd
, int wBar
, DWORD bShow
);
1623 NtUserShowWindowAsync(
1629 NtUserSwitchDesktop(
1634 NtUserSystemParametersInfo(
1642 NtUserThunkedMenuInfo(
1648 NtUserThunkedMenuItemInfo(
1653 LPMENUITEMINFOW lpmii
,
1654 PUNICODE_STRING lpszCaption
);
1669 NtUserTrackMouseEvent(
1674 NtUserTrackPopupMenuEx(
1684 NtUserTranslateAccelerator(
1691 NtUserTranslateMessage(
1697 NtUserUnhookWindowsHookEx(
1702 NtUserUnhookWinEvent(
1707 NtUserUnloadKeyboardLayout(
1712 NtUserUnlockWindowStation(
1713 HWINSTA hWindowStation
);
1717 NtUserUnregisterClass(
1724 NtUserUnregisterHotKey(HWND hWnd
,
1729 NtUserUpdateInputContext(
1736 NtUserUpdateInstance(
1742 NtUserUpdateWindow( HWND hWnd
);
1746 NtUserUpdateLayeredWindow(
1759 NtUserUpdatePerUserSystemParameters(
1765 NtUserUserHandleGrantAccess(
1772 NtUserValidateHandleSecure(
1776 NtUserValidateRect(HWND Wnd
, const RECT
* Rect
);
1788 NtUserWaitForInputIdle(
1795 NtUserWaitForMsgAndEvent(
1800 NtUserWaitMessage(VOID
);
1804 NtUserWin32PoolAllocationStats(
1814 NtUserWindowFromPoint(
1820 NtUserYieldTask(VOID
);
1823 NtUserGetWindowThreadProcessId(HWND hWnd
, LPDWORD UnsafePid
);
1826 NtUserGetQueueStatus(BOOL ClearChanges
);
1829 NtUserGetParent(HWND hWnd
);
1832 NtUserGetWindow(HWND hWnd
, UINT Relationship
);
1835 NtUserGetLastActivePopup(HWND hWnd
);
1836 typedef struct _WndProcHandle
1844 NtUserDereferenceWndProcHandle(WNDPROC wpHandle
, WndProcHandle
*Data
);
1845 #endif /* __WIN32K_NTUSER_H */