2021-10-12 16:42:35 +02:00
|
|
|
/*
|
|
|
|
* Copyright 2021 Jacek Caban for CodeWeavers
|
|
|
|
*
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2.1 of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This library is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Lesser General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
|
|
* License along with this library; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _NTUSER_
|
|
|
|
#define _NTUSER_
|
|
|
|
|
|
|
|
#include <winuser.h>
|
2021-10-14 15:21:15 +02:00
|
|
|
#include <wingdi.h>
|
2021-10-12 16:42:35 +02:00
|
|
|
#include <winternl.h>
|
|
|
|
|
2021-12-02 01:13:55 +01:00
|
|
|
/* KernelCallbackTable codes, not compatible with Windows */
|
|
|
|
enum
|
|
|
|
{
|
|
|
|
NtUserCallEnumDisplayMonitor,
|
2022-02-16 12:30:12 +01:00
|
|
|
NtUserCallWinEventHook,
|
2021-12-09 03:15:49 +01:00
|
|
|
NtUserCallVulkanDebugReportCallback,
|
|
|
|
NtUserCallVulkanDebugUtilsCallback,
|
|
|
|
NtUserCallCount
|
2021-12-02 01:13:55 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
/* NtUserCallEnumDisplayMonitor params */
|
|
|
|
struct enum_display_monitor_params
|
|
|
|
{
|
|
|
|
MONITORENUMPROC proc;
|
|
|
|
HMONITOR monitor;
|
|
|
|
HDC hdc;
|
|
|
|
RECT rect;
|
|
|
|
LPARAM lparam;
|
|
|
|
};
|
|
|
|
|
2022-02-16 12:30:12 +01:00
|
|
|
/* NtUserCallWinEventHook params */
|
|
|
|
struct win_hook_proc_params
|
|
|
|
{
|
|
|
|
DWORD event;
|
|
|
|
HWND hwnd;
|
|
|
|
LONG object_id;
|
|
|
|
LONG child_id;
|
|
|
|
void *handle;
|
|
|
|
WINEVENTPROC proc;
|
|
|
|
WCHAR module[MAX_PATH];
|
|
|
|
};
|
|
|
|
|
2021-12-06 03:08:21 +01:00
|
|
|
/* process DPI awareness contexts */
|
|
|
|
#define NTUSER_DPI_UNAWARE 0x00006010
|
|
|
|
#define NTUSER_DPI_SYSTEM_AWARE 0x00006011
|
|
|
|
#define NTUSER_DPI_PER_MONITOR_AWARE 0x00000012
|
|
|
|
#define NTUSER_DPI_PER_MONITOR_AWARE_V2 0x00000022
|
|
|
|
#define NTUSER_DPI_PER_UNAWARE_GDISCALED 0x40006010
|
|
|
|
|
2022-02-15 13:10:51 +01:00
|
|
|
/* NtUserCallNoParam codes, not compatible with Windows */
|
|
|
|
enum
|
|
|
|
{
|
|
|
|
NtUserGetInputState,
|
2022-02-15 13:15:56 +01:00
|
|
|
/* temporary exports */
|
|
|
|
NtUserThreadDetach,
|
2022-02-15 13:10:51 +01:00
|
|
|
};
|
|
|
|
|
2021-12-03 12:56:30 +01:00
|
|
|
/* NtUserCallOneParam codes, not compatible with Windows */
|
|
|
|
enum
|
|
|
|
{
|
2022-02-14 14:07:34 +01:00
|
|
|
NtUserGetClipCursor,
|
2022-02-14 14:08:27 +01:00
|
|
|
NtUserGetCursorPos,
|
2021-12-06 03:15:59 +01:00
|
|
|
NtUserGetSysColor,
|
|
|
|
NtUserGetSysColorBrush,
|
|
|
|
NtUserGetSysColorPen,
|
|
|
|
NtUserGetSystemMetrics,
|
2022-02-14 14:08:05 +01:00
|
|
|
NtUserMessageBeep,
|
2021-12-03 12:56:30 +01:00
|
|
|
NtUserRealizePalette,
|
2021-12-06 03:15:59 +01:00
|
|
|
/* temporary exports */
|
2022-02-15 13:10:20 +01:00
|
|
|
NtUserFlushWindowSurfaces,
|
2021-12-06 03:15:59 +01:00
|
|
|
NtUserGetDeskPattern,
|
2022-02-15 13:15:56 +01:00
|
|
|
NtUserIncrementKeyStateCounter,
|
2021-12-03 12:56:30 +01:00
|
|
|
};
|
|
|
|
|
2021-12-02 01:13:39 +01:00
|
|
|
/* NtUserCallTwoParam codes, not compatible with Windows */
|
|
|
|
enum
|
|
|
|
{
|
|
|
|
NtUserGetMonitorInfo,
|
2021-12-06 03:15:59 +01:00
|
|
|
NtUserGetSystemMetricsForDpi,
|
2021-12-07 15:28:46 +01:00
|
|
|
NtUserMirrorRgn,
|
2022-02-14 14:07:14 +01:00
|
|
|
NtUserMonitorFromRect,
|
2022-02-16 12:31:17 +01:00
|
|
|
NtUserUnhookWindowsHook,
|
2022-02-15 13:10:20 +01:00
|
|
|
/* temporary exports */
|
|
|
|
NtUserRegisterWindowSurface,
|
2021-12-02 01:13:39 +01:00
|
|
|
};
|
|
|
|
|
2021-12-07 15:29:06 +01:00
|
|
|
/* color index used to retrieve system 55aa brush */
|
|
|
|
#define COLOR_55AA_BRUSH 0x100
|
|
|
|
|
2022-02-08 13:13:00 +01:00
|
|
|
/* internal messages codes */
|
|
|
|
enum wine_internal_message
|
|
|
|
{
|
|
|
|
WM_WINE_DESTROYWINDOW = 0x80000000,
|
|
|
|
WM_WINE_SETWINDOWPOS,
|
|
|
|
WM_WINE_SHOWWINDOW,
|
|
|
|
WM_WINE_SETPARENT,
|
|
|
|
WM_WINE_SETWINDOWLONG,
|
|
|
|
WM_WINE_SETSTYLE,
|
|
|
|
WM_WINE_SETACTIVEWINDOW,
|
|
|
|
WM_WINE_KEYBOARD_LL_HOOK,
|
|
|
|
WM_WINE_MOUSE_LL_HOOK,
|
|
|
|
WM_WINE_CLIPCURSOR,
|
|
|
|
WM_WINE_UPDATEWINDOWSTATE,
|
|
|
|
WM_WINE_FIRST_DRIVER_MSG = 0x80001000, /* range of messages reserved for the USER driver */
|
|
|
|
WM_WINE_LAST_DRIVER_MSG = 0x80001fff
|
|
|
|
};
|
|
|
|
|
|
|
|
|
2021-11-17 12:46:39 +01:00
|
|
|
HKL WINAPI NtUserActivateKeyboardLayout( HKL layout, UINT flags );
|
2021-11-12 12:54:45 +01:00
|
|
|
BOOL WINAPI NtUserAddClipboardFormatListener( HWND hwnd );
|
2021-11-16 12:32:55 +01:00
|
|
|
BOOL WINAPI NtUserAttachThreadInput( DWORD from, DWORD to, BOOL attach );
|
2021-12-21 20:31:29 +01:00
|
|
|
NTSTATUS WINAPI NtUserBuildHwndList( HDESK desktop, ULONG unk2, ULONG unk3, ULONG unk4,
|
|
|
|
ULONG thread_id, ULONG count, HWND *buffer, ULONG *size );
|
2022-02-15 13:10:51 +01:00
|
|
|
ULONG_PTR WINAPI NtUserCallNoParam( ULONG code );
|
2021-12-03 12:56:30 +01:00
|
|
|
ULONG_PTR WINAPI NtUserCallOneParam( ULONG_PTR arg, ULONG code );
|
2021-12-02 01:13:39 +01:00
|
|
|
ULONG_PTR WINAPI NtUserCallTwoParam( ULONG_PTR arg1, ULONG_PTR arg2, ULONG code );
|
2021-12-02 01:14:35 +01:00
|
|
|
LONG WINAPI NtUserChangeDisplaySettings( UNICODE_STRING *devname, DEVMODEW *devmode, HWND hwnd,
|
|
|
|
DWORD flags, void *lparam );
|
2022-02-14 14:07:25 +01:00
|
|
|
BOOL WINAPI NtUserClipCursor( const RECT *rect );
|
2021-10-13 14:53:36 +02:00
|
|
|
BOOL WINAPI NtUserCloseDesktop( HDESK handle );
|
2021-10-13 14:52:53 +02:00
|
|
|
BOOL WINAPI NtUserCloseWindowStation( HWINSTA handle );
|
2021-11-11 14:13:45 +01:00
|
|
|
INT WINAPI NtUserCountClipboardFormats(void);
|
2021-10-14 15:21:15 +02:00
|
|
|
HDESK WINAPI NtUserCreateDesktopEx( OBJECT_ATTRIBUTES *attr, UNICODE_STRING *device,
|
|
|
|
DEVMODEW *devmode, DWORD flags, ACCESS_MASK access,
|
|
|
|
ULONG heap_size );
|
2021-10-14 15:20:42 +02:00
|
|
|
HWINSTA WINAPI NtUserCreateWindowStation( OBJECT_ATTRIBUTES *attr, ACCESS_MASK mask, ULONG arg3,
|
|
|
|
ULONG arg4, ULONG arg5, ULONG arg6, ULONG arg7 );
|
2021-12-10 02:06:59 +01:00
|
|
|
NTSTATUS WINAPI NtUserEnumDisplayDevices( UNICODE_STRING *device, DWORD index,
|
|
|
|
DISPLAY_DEVICEW *info, DWORD flags );
|
2021-12-02 01:13:55 +01:00
|
|
|
BOOL WINAPI NtUserEnumDisplayMonitors( HDC hdc, RECT *rect, MONITORENUMPROC proc, LPARAM lp );
|
2021-12-01 16:02:43 +01:00
|
|
|
BOOL WINAPI NtUserEnumDisplaySettings( UNICODE_STRING *device, DWORD mode,
|
|
|
|
DEVMODEW *dev_mode, DWORD flags );
|
2022-02-15 13:15:56 +01:00
|
|
|
SHORT WINAPI NtUserGetAsyncKeyState( INT key );
|
2021-11-12 12:53:28 +01:00
|
|
|
INT WINAPI NtUserGetClipboardFormatName( UINT format, WCHAR *buffer, INT maxlen );
|
2021-11-12 12:53:50 +01:00
|
|
|
HWND WINAPI NtUserGetClipboardOwner(void);
|
2021-11-12 12:54:29 +01:00
|
|
|
DWORD WINAPI NtUserGetClipboardSequenceNumber(void);
|
2021-11-12 12:53:59 +01:00
|
|
|
HWND WINAPI NtUserGetClipboardViewer(void);
|
2021-12-03 12:55:44 +01:00
|
|
|
HCURSOR WINAPI NtUserGetCursor(void);
|
2021-11-30 13:24:18 +01:00
|
|
|
LONG WINAPI NtUserGetDisplayConfigBufferSizes( UINT32 flags, UINT32 *num_path_info,
|
|
|
|
UINT32 *num_mode_info );
|
2021-12-06 03:15:59 +01:00
|
|
|
UINT WINAPI NtUserGetDoubleClickTime(void);
|
2021-12-06 03:09:07 +01:00
|
|
|
BOOL WINAPI NtUserGetDpiForMonitor( HMONITOR monitor, UINT type, UINT *x, UINT *y );
|
2021-11-16 12:32:55 +01:00
|
|
|
INT WINAPI NtUserGetKeyNameText( LONG lparam, WCHAR *buffer, INT size );
|
|
|
|
SHORT WINAPI NtUserGetKeyState( INT vkey );
|
|
|
|
HKL WINAPI NtUserGetKeyboardLayout( DWORD thread_id );
|
2021-11-17 12:46:39 +01:00
|
|
|
UINT WINAPI NtUserGetKeyboardLayoutList( INT size, HKL *layouts );
|
2021-12-03 12:56:05 +01:00
|
|
|
BOOL WINAPI NtUserGetKeyboardLayoutName( WCHAR *name );
|
2021-11-16 12:32:55 +01:00
|
|
|
BOOL WINAPI NtUserGetKeyboardState( BYTE *state );
|
2021-11-08 14:48:28 +01:00
|
|
|
BOOL WINAPI NtUserGetLayeredWindowAttributes( HWND hwnd, COLORREF *key, BYTE *alpha, DWORD *flags );
|
2021-11-17 12:46:39 +01:00
|
|
|
int WINAPI NtUserGetMouseMovePointsEx( UINT size, MOUSEMOVEPOINT *ptin, MOUSEMOVEPOINT *ptout,
|
|
|
|
int count, DWORD resolution );
|
2021-10-13 14:55:30 +02:00
|
|
|
BOOL WINAPI NtUserGetObjectInformation( HANDLE handle, INT index, void *info,
|
|
|
|
DWORD len, DWORD *needed );
|
2021-11-16 12:36:26 +01:00
|
|
|
HWND WINAPI NtUserGetOpenClipboardWindow(void);
|
2021-11-12 12:55:06 +01:00
|
|
|
INT WINAPI NtUserGetPriorityClipboardFormat( UINT *list, INT count );
|
2021-10-13 14:52:53 +02:00
|
|
|
HWINSTA WINAPI NtUserGetProcessWindowStation(void);
|
2021-11-08 14:48:37 +01:00
|
|
|
HANDLE WINAPI NtUserGetProp( HWND hwnd, const WCHAR *str );
|
2021-12-06 03:08:21 +01:00
|
|
|
ULONG WINAPI NtUserGetProcessDpiAwarenessContext( HANDLE process );
|
2022-02-15 13:10:38 +01:00
|
|
|
DWORD WINAPI NtUserGetQueueStatus( UINT flags );
|
2021-12-06 03:08:45 +01:00
|
|
|
ULONG WINAPI NtUserGetSystemDpiForProcess( HANDLE process );
|
2021-10-13 14:54:00 +02:00
|
|
|
HDESK WINAPI NtUserGetThreadDesktop( DWORD thread );
|
2021-11-12 12:54:10 +01:00
|
|
|
BOOL WINAPI NtUserGetUpdatedClipboardFormats( UINT *formats, UINT size, UINT *out_size );
|
2021-11-12 12:53:40 +01:00
|
|
|
BOOL WINAPI NtUserIsClipboardFormatAvailable( UINT format );
|
2021-11-16 12:32:55 +01:00
|
|
|
UINT WINAPI NtUserMapVirtualKeyEx( UINT code, UINT type, HKL layout );
|
2022-02-16 12:30:12 +01:00
|
|
|
void WINAPI NtUserNotifyWinEvent( DWORD event, HWND hwnd, LONG object_id, LONG child_id );
|
2021-10-14 15:20:56 +02:00
|
|
|
HWINSTA WINAPI NtUserOpenWindowStation( OBJECT_ATTRIBUTES *attr, ACCESS_MASK access );
|
2021-10-13 14:56:22 +02:00
|
|
|
BOOL WINAPI NtUserSetObjectInformation( HANDLE handle, INT index, void *info, DWORD len );
|
2021-10-14 15:21:33 +02:00
|
|
|
HDESK WINAPI NtUserOpenDesktop( OBJECT_ATTRIBUTES *attr, DWORD flags, ACCESS_MASK access );
|
2021-10-13 14:54:56 +02:00
|
|
|
HDESK WINAPI NtUserOpenInputDesktop( DWORD flags, BOOL inherit, ACCESS_MASK access );
|
2021-11-12 12:54:45 +01:00
|
|
|
BOOL WINAPI NtUserRemoveClipboardFormatListener( HWND hwnd );
|
2021-11-08 14:48:37 +01:00
|
|
|
HANDLE WINAPI NtUserRemoveProp( HWND hwnd, const WCHAR *str );
|
2021-11-17 12:49:37 +01:00
|
|
|
BOOL WINAPI NtUserScrollDC( HDC hdc, INT dx, INT dy, const RECT *scroll, const RECT *clip,
|
|
|
|
HRGN ret_update_rgn, RECT *update_rect );
|
2021-12-03 12:56:30 +01:00
|
|
|
HPALETTE WINAPI NtUserSelectPalette( HDC hdc, HPALETTE palette, WORD force_background );
|
2022-02-14 14:07:53 +01:00
|
|
|
BOOL WINAPI NtUserSetCursorPos( INT x, INT y );
|
2021-11-16 12:32:55 +01:00
|
|
|
BOOL WINAPI NtUserSetKeyboardState( BYTE *state );
|
2021-12-06 03:08:21 +01:00
|
|
|
BOOL WINAPI NtUserSetProcessDpiAwarenessContext( ULONG awareness, ULONG unknown );
|
2021-10-13 14:53:22 +02:00
|
|
|
BOOL WINAPI NtUserSetProcessWindowStation( HWINSTA handle );
|
2021-11-08 14:48:37 +01:00
|
|
|
BOOL WINAPI NtUserSetProp( HWND hwnd, const WCHAR *str, HANDLE handle );
|
2021-12-06 03:15:59 +01:00
|
|
|
BOOL WINAPI NtUserSetSysColors( INT count, const INT *colors, const COLORREF *values );
|
2021-10-13 14:54:21 +02:00
|
|
|
BOOL WINAPI NtUserSetThreadDesktop( HDESK handle );
|
2022-02-16 12:30:44 +01:00
|
|
|
HHOOK WINAPI NtUserSetWindowsHookEx( HINSTANCE inst, UNICODE_STRING *module, DWORD tid, INT id,
|
|
|
|
HOOKPROC proc, BOOL ansi );
|
2022-02-16 12:29:56 +01:00
|
|
|
HWINEVENTHOOK WINAPI NtUserSetWinEventHook( DWORD event_min, DWORD event_max, HMODULE inst,
|
|
|
|
UNICODE_STRING *module, WINEVENTPROC proc,
|
|
|
|
DWORD pid, DWORD tid, DWORD flags );
|
2021-11-17 12:46:39 +01:00
|
|
|
INT WINAPI NtUserShowCursor( BOOL show );
|
2021-12-06 03:15:59 +01:00
|
|
|
BOOL WINAPI NtUserSystemParametersInfo( UINT action, UINT val, void *ptr, UINT winini );
|
|
|
|
BOOL WINAPI NtUserSystemParametersInfoForDpi( UINT action, UINT val, PVOID ptr, UINT winini, UINT dpi );
|
2021-11-17 12:46:39 +01:00
|
|
|
INT WINAPI NtUserToUnicodeEx( UINT virt, UINT scan, const BYTE *state,
|
|
|
|
WCHAR *str, int size, UINT flags, HKL layout );
|
2022-02-16 12:29:43 +01:00
|
|
|
BOOL WINAPI NtUserUnhookWinEvent( HWINEVENTHOOK hEventHook );
|
2022-02-16 12:31:04 +01:00
|
|
|
BOOL WINAPI NtUserUnhookWindowsHookEx( HHOOK handle );
|
2021-11-17 12:46:39 +01:00
|
|
|
BOOL WINAPI NtUserUnregisterHotKey( HWND hwnd, INT id );
|
2021-11-16 12:32:55 +01:00
|
|
|
WORD WINAPI NtUserVkKeyScanEx( WCHAR chr, HKL layout );
|
2021-10-12 16:42:35 +02:00
|
|
|
|
|
|
|
#endif /* _NTUSER_ */
|