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,
|
|
|
|
};
|
|
|
|
|
|
|
|
/* NtUserCallEnumDisplayMonitor params */
|
|
|
|
struct enum_display_monitor_params
|
|
|
|
{
|
|
|
|
MONITORENUMPROC proc;
|
|
|
|
HMONITOR monitor;
|
|
|
|
HDC hdc;
|
|
|
|
RECT rect;
|
|
|
|
LPARAM lparam;
|
|
|
|
};
|
|
|
|
|
2021-12-03 12:56:30 +01:00
|
|
|
/* NtUserCallOneParam codes, not compatible with Windows */
|
|
|
|
enum
|
|
|
|
{
|
|
|
|
NtUserRealizePalette,
|
|
|
|
};
|
|
|
|
|
2021-12-02 01:13:39 +01:00
|
|
|
/* NtUserCallTwoParam codes, not compatible with Windows */
|
|
|
|
enum
|
|
|
|
{
|
|
|
|
NtUserGetMonitorInfo,
|
|
|
|
};
|
|
|
|
|
2021-11-16 12:35:43 +01:00
|
|
|
/* this is the structure stored in TEB->Win32ClientInfo */
|
|
|
|
/* no attempt is made to keep the layout compatible with the Windows one */
|
|
|
|
struct user_thread_info
|
|
|
|
{
|
|
|
|
HANDLE server_queue; /* Handle to server-side queue */
|
|
|
|
DWORD wake_mask; /* Current queue wake mask */
|
|
|
|
DWORD changed_mask; /* Current queue changed mask */
|
|
|
|
WORD recursion_count; /* SendMessage recursion counter */
|
|
|
|
WORD message_count; /* Get/PeekMessage loop counter */
|
|
|
|
WORD hook_call_depth; /* Number of recursively called hook procs */
|
|
|
|
WORD hook_unicode; /* Is current hook unicode? */
|
|
|
|
HHOOK hook; /* Current hook */
|
|
|
|
UINT active_hooks; /* Bitmap of active hooks */
|
|
|
|
DPI_AWARENESS dpi_awareness; /* DPI awareness */
|
|
|
|
INPUT_MESSAGE_SOURCE msg_source; /* Message source for current message */
|
|
|
|
struct received_message_info *receive_info; /* Message being currently received */
|
|
|
|
struct wm_char_mapping_data *wmchar_data; /* Data for WM_CHAR mappings */
|
|
|
|
DWORD GetMessageTimeVal; /* Value for GetMessageTime */
|
|
|
|
DWORD GetMessagePosVal; /* Value for GetMessagePos */
|
|
|
|
ULONG_PTR GetMessageExtraInfoVal; /* Value for GetMessageExtraInfo */
|
|
|
|
struct user_key_state_info *key_state; /* Cache of global key state */
|
|
|
|
HKL kbd_layout; /* Current keyboard layout */
|
|
|
|
DWORD kbd_layout_id; /* Current keyboard layout ID */
|
|
|
|
HWND top_window; /* Desktop window */
|
|
|
|
HWND msg_window; /* HWND_MESSAGE parent window */
|
|
|
|
struct rawinput_thread_data *rawinput; /* RawInput thread local data / buffer */
|
|
|
|
};
|
|
|
|
|
|
|
|
C_ASSERT( sizeof(struct user_thread_info) <= sizeof(((TEB *)0)->Win32ClientInfo) );
|
|
|
|
|
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-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 );
|
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-11-30 13:26:48 +01:00
|
|
|
BOOL 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 );
|
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-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-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 );
|
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 );
|
2021-11-16 12:32:55 +01:00
|
|
|
BOOL WINAPI NtUserSetKeyboardState( BYTE *state );
|
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-10-13 14:54:21 +02:00
|
|
|
BOOL WINAPI NtUserSetThreadDesktop( HDESK handle );
|
2021-11-17 12:46:39 +01:00
|
|
|
INT WINAPI NtUserShowCursor( BOOL show );
|
|
|
|
INT WINAPI NtUserToUnicodeEx( UINT virt, UINT scan, const BYTE *state,
|
|
|
|
WCHAR *str, int size, UINT flags, HKL layout );
|
|
|
|
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_ */
|