2021-10-12 14:42:35 +00: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 13:21:15 +00:00
|
|
|
#include <wingdi.h>
|
2022-07-06 20:06:03 +00:00
|
|
|
#include <imm.h>
|
2023-05-09 12:33:37 +00:00
|
|
|
#include <immdev.h>
|
2023-06-21 20:59:38 +00:00
|
|
|
#include <shellapi.h>
|
2021-10-12 14:42:35 +00:00
|
|
|
#include <winternl.h>
|
|
|
|
|
2023-11-03 16:33:59 +00:00
|
|
|
#ifndef W32KAPI
|
|
|
|
# if defined(_WIN32U_) || defined(WINE_UNIX_LIB)
|
2023-11-08 09:27:08 +00:00
|
|
|
# define W32KAPI DECLSPEC_EXPORT
|
2023-11-03 16:33:59 +00:00
|
|
|
# else
|
|
|
|
# define W32KAPI DECLSPEC_IMPORT
|
|
|
|
# endif
|
|
|
|
#endif
|
|
|
|
|
2021-12-02 00:13:55 +00:00
|
|
|
/* KernelCallbackTable codes, not compatible with Windows */
|
|
|
|
enum
|
|
|
|
{
|
2022-02-22 12:53:11 +00:00
|
|
|
/* user32 callbacks */
|
2021-12-02 00:13:55 +00:00
|
|
|
NtUserCallEnumDisplayMonitor,
|
2022-03-31 13:36:39 +00:00
|
|
|
NtUserCallSendAsyncCallback,
|
2022-02-16 11:30:12 +00:00
|
|
|
NtUserCallWinEventHook,
|
2022-04-08 11:30:22 +00:00
|
|
|
NtUserCallWinProc,
|
2022-02-25 15:02:12 +00:00
|
|
|
NtUserCallWindowsHook,
|
2022-05-05 11:34:25 +00:00
|
|
|
NtUserCopyImage,
|
2022-10-23 09:58:41 +00:00
|
|
|
NtUserDrawNonClientButton,
|
2022-06-30 15:12:46 +00:00
|
|
|
NtUserDrawScrollBar,
|
2022-06-10 13:52:01 +00:00
|
|
|
NtUserDrawText,
|
2022-04-25 14:59:16 +00:00
|
|
|
NtUserFreeCachedClipboardData,
|
2022-07-09 12:09:29 +00:00
|
|
|
NtUserImmProcessKey,
|
|
|
|
NtUserImmTranslateMessage,
|
2022-07-29 18:33:22 +00:00
|
|
|
NtUserInitBuiltinClasses,
|
2022-03-09 14:20:48 +00:00
|
|
|
NtUserLoadDriver,
|
2022-05-11 22:10:41 +00:00
|
|
|
NtUserLoadImage,
|
2022-04-14 22:54:36 +00:00
|
|
|
NtUserLoadSysMenu,
|
2022-07-09 13:13:42 +00:00
|
|
|
NtUserPostDDEMessage,
|
2022-04-25 14:59:16 +00:00
|
|
|
NtUserRenderSynthesizedFormat,
|
2022-07-09 13:13:42 +00:00
|
|
|
NtUserUnpackDDEMessage,
|
2022-02-22 12:53:11 +00:00
|
|
|
/* win16 hooks */
|
|
|
|
NtUserCallFreeIcon,
|
2022-03-31 13:36:51 +00:00
|
|
|
NtUserThunkLock,
|
2022-02-22 12:53:11 +00:00
|
|
|
/* Vulkan support */
|
2021-12-09 02:15:49 +00:00
|
|
|
NtUserCallVulkanDebugReportCallback,
|
|
|
|
NtUserCallVulkanDebugUtilsCallback,
|
2022-10-06 01:55:54 +00:00
|
|
|
/* OpenGL support */
|
|
|
|
NtUserCallOpenGLDebugMessageCallback,
|
2022-05-02 23:07:17 +00:00
|
|
|
/* Driver-specific callbacks */
|
|
|
|
NtUserDriverCallbackFirst,
|
2022-07-30 13:44:58 +00:00
|
|
|
NtUserDriverCallbackLast = NtUserDriverCallbackFirst + 9,
|
2021-12-09 02:15:49 +00:00
|
|
|
NtUserCallCount
|
2021-12-02 00:13:55 +00:00
|
|
|
};
|
|
|
|
|
2022-04-19 13:31:01 +00:00
|
|
|
/* TEB thread info, not compatible with Windows */
|
|
|
|
struct ntuser_thread_info
|
|
|
|
{
|
2022-07-30 01:09:47 +00:00
|
|
|
UINT64 driver_data; /* driver-specific data */
|
2022-07-29 19:09:53 +00:00
|
|
|
DWORD message_time; /* value for GetMessageTime */
|
|
|
|
DWORD message_pos; /* value for GetMessagePos */
|
2022-07-30 01:09:47 +00:00
|
|
|
UINT64 message_extra; /* value for GetMessageExtraInfo */
|
2022-07-29 20:01:44 +00:00
|
|
|
INPUT_MESSAGE_SOURCE msg_source; /* Message source for current message */
|
|
|
|
WORD recursion_count; /* SendMessage recursion counter */
|
2022-07-30 00:28:59 +00:00
|
|
|
UINT receive_flags; /* currently received message flags */
|
2022-07-30 01:09:47 +00:00
|
|
|
UINT top_window; /* desktop window */
|
|
|
|
UINT msg_window; /* HWND_MESSAGE parent window */
|
2022-07-29 19:09:53 +00:00
|
|
|
DPI_AWARENESS dpi_awareness; /* DPI awareness */
|
2022-07-30 01:09:47 +00:00
|
|
|
UINT default_imc; /* default input context */
|
|
|
|
UINT64 client_imm; /* client IMM thread info */
|
|
|
|
UINT64 wmchar_data; /* client data for WM_CHAR mappings */
|
2022-04-19 13:31:01 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
static inline struct ntuser_thread_info *NtUserGetThreadInfo(void)
|
|
|
|
{
|
2022-07-30 10:49:51 +00:00
|
|
|
#ifndef _WIN64
|
|
|
|
if (NtCurrentTeb()->GdiBatchCount)
|
|
|
|
{
|
|
|
|
TEB64 *teb64 = (TEB64 *)(UINT_PTR)NtCurrentTeb()->GdiBatchCount;
|
|
|
|
return (struct ntuser_thread_info *)teb64->Win32ClientInfo;
|
|
|
|
}
|
|
|
|
#endif
|
2022-04-19 13:31:01 +00:00
|
|
|
return (struct ntuser_thread_info *)NtCurrentTeb()->Win32ClientInfo;
|
|
|
|
}
|
|
|
|
|
2021-12-02 00:13:55 +00:00
|
|
|
/* NtUserCallEnumDisplayMonitor params */
|
|
|
|
struct enum_display_monitor_params
|
|
|
|
{
|
|
|
|
MONITORENUMPROC proc;
|
|
|
|
HMONITOR monitor;
|
|
|
|
HDC hdc;
|
|
|
|
RECT rect;
|
|
|
|
LPARAM lparam;
|
|
|
|
};
|
|
|
|
|
2022-03-31 13:36:39 +00:00
|
|
|
/* NtUserCallSendAsyncCallback params */
|
|
|
|
struct send_async_params
|
|
|
|
{
|
|
|
|
SENDASYNCPROC callback;
|
|
|
|
HWND hwnd;
|
|
|
|
UINT msg;
|
|
|
|
ULONG_PTR data;
|
|
|
|
LRESULT result;
|
|
|
|
};
|
|
|
|
|
2022-02-16 11:30:12 +00:00
|
|
|
/* NtUserCallWinEventHook params */
|
2022-02-25 15:02:12 +00:00
|
|
|
struct win_event_hook_params
|
2022-02-16 11:30:12 +00:00
|
|
|
{
|
|
|
|
DWORD event;
|
|
|
|
HWND hwnd;
|
|
|
|
LONG object_id;
|
|
|
|
LONG child_id;
|
|
|
|
void *handle;
|
2022-03-23 13:01:42 +00:00
|
|
|
DWORD tid;
|
|
|
|
DWORD time;
|
2022-02-16 11:30:12 +00:00
|
|
|
WINEVENTPROC proc;
|
|
|
|
WCHAR module[MAX_PATH];
|
|
|
|
};
|
|
|
|
|
2022-03-23 13:00:21 +00:00
|
|
|
/* type of message-sending functions that need special WM_CHAR handling */
|
|
|
|
enum wm_char_mapping
|
|
|
|
{
|
|
|
|
WMCHAR_MAP_POSTMESSAGE,
|
|
|
|
WMCHAR_MAP_SENDMESSAGE,
|
|
|
|
WMCHAR_MAP_SENDMESSAGETIMEOUT,
|
|
|
|
WMCHAR_MAP_RECVMESSAGE,
|
|
|
|
WMCHAR_MAP_DISPATCHMESSAGE,
|
|
|
|
WMCHAR_MAP_CALLWINDOWPROC,
|
2023-08-17 08:33:52 +00:00
|
|
|
WMCHAR_MAP_ISDIALOGMESSAGE,
|
2022-03-23 13:00:21 +00:00
|
|
|
WMCHAR_MAP_COUNT,
|
|
|
|
WMCHAR_MAP_NOMAPPING = WMCHAR_MAP_COUNT
|
|
|
|
};
|
|
|
|
|
|
|
|
/* NtUserCallWindowProc params */
|
|
|
|
struct win_proc_params
|
|
|
|
{
|
|
|
|
WNDPROC func;
|
|
|
|
HWND hwnd;
|
|
|
|
UINT msg;
|
|
|
|
WPARAM wparam;
|
|
|
|
LPARAM lparam;
|
|
|
|
BOOL ansi;
|
|
|
|
BOOL ansi_dst;
|
|
|
|
enum wm_char_mapping mapping;
|
2022-03-23 13:00:43 +00:00
|
|
|
DPI_AWARENESS_CONTEXT dpi_awareness;
|
2022-03-23 13:00:21 +00:00
|
|
|
WNDPROC procA;
|
|
|
|
WNDPROC procW;
|
|
|
|
};
|
|
|
|
|
2022-02-25 15:02:12 +00:00
|
|
|
/* NtUserCallWindowsHook params */
|
|
|
|
struct win_hook_params
|
|
|
|
{
|
|
|
|
void *proc;
|
|
|
|
void *handle;
|
|
|
|
DWORD pid;
|
|
|
|
DWORD tid;
|
|
|
|
int id;
|
|
|
|
int code;
|
|
|
|
WPARAM wparam;
|
|
|
|
LPARAM lparam;
|
|
|
|
BOOL prev_unicode;
|
|
|
|
BOOL next_unicode;
|
2023-07-11 14:03:26 +00:00
|
|
|
WCHAR module[1];
|
2022-02-25 15:02:12 +00:00
|
|
|
};
|
|
|
|
|
2022-05-11 22:10:41 +00:00
|
|
|
/* NtUserCopyImage params */
|
2022-05-05 11:34:25 +00:00
|
|
|
struct copy_image_params
|
|
|
|
{
|
|
|
|
HANDLE hwnd;
|
|
|
|
UINT type;
|
|
|
|
INT dx;
|
|
|
|
INT dy;
|
|
|
|
UINT flags;
|
|
|
|
};
|
|
|
|
|
2022-06-10 13:52:01 +00:00
|
|
|
/* NtUserDrawText params */
|
|
|
|
struct draw_text_params
|
|
|
|
{
|
|
|
|
HDC hdc;
|
|
|
|
int count;
|
2022-08-16 12:22:21 +00:00
|
|
|
RECT rect;
|
2022-06-10 13:52:01 +00:00
|
|
|
UINT flags;
|
|
|
|
WCHAR str[1];
|
|
|
|
};
|
|
|
|
|
2022-04-25 14:59:16 +00:00
|
|
|
/* NtUserFreeCachedClipboardData params */
|
|
|
|
struct free_cached_data_params
|
|
|
|
{
|
|
|
|
UINT format;
|
|
|
|
HANDLE handle;
|
|
|
|
};
|
|
|
|
|
2022-07-09 12:09:29 +00:00
|
|
|
/* NtUserImmProcessKey params */
|
|
|
|
struct imm_process_key_params
|
|
|
|
{
|
|
|
|
HWND hwnd;
|
|
|
|
HKL hkl;
|
|
|
|
UINT vkey;
|
|
|
|
LPARAM key_data;
|
|
|
|
};
|
|
|
|
|
|
|
|
/* NtUserImmTranslateMessage params */
|
|
|
|
struct imm_translate_message_params
|
|
|
|
{
|
|
|
|
HWND hwnd;
|
|
|
|
UINT msg;
|
|
|
|
WPARAM wparam;
|
|
|
|
LPARAM key_data;
|
|
|
|
};
|
|
|
|
|
2022-05-11 22:10:41 +00:00
|
|
|
/* NtUserLoadImage params */
|
|
|
|
struct load_image_params
|
|
|
|
{
|
|
|
|
HINSTANCE hinst;
|
|
|
|
const WCHAR *name;
|
|
|
|
UINT type;
|
|
|
|
INT dx;
|
|
|
|
INT dy;
|
|
|
|
UINT flags;
|
|
|
|
};
|
|
|
|
|
2022-04-14 22:54:36 +00:00
|
|
|
/* NtUserLoadSysMenu params */
|
|
|
|
struct load_sys_menu_params
|
|
|
|
{
|
|
|
|
BOOL mdi;
|
|
|
|
};
|
|
|
|
|
2022-07-09 13:13:42 +00:00
|
|
|
/* NtUserPostDDEMessage params */
|
|
|
|
struct post_dde_message_params
|
|
|
|
{
|
|
|
|
HWND hwnd;
|
|
|
|
UINT msg;
|
|
|
|
WPARAM wparam;
|
|
|
|
LPARAM lparam;
|
|
|
|
DWORD dest_tid;
|
|
|
|
DWORD type;
|
|
|
|
};
|
|
|
|
|
2022-04-25 14:59:16 +00:00
|
|
|
/* NtUserRenderSynthesizedFormat params */
|
|
|
|
struct render_synthesized_format_params
|
|
|
|
{
|
|
|
|
UINT format;
|
|
|
|
UINT from;
|
|
|
|
};
|
|
|
|
|
2022-07-09 13:13:42 +00:00
|
|
|
/* NtUserUnpackDDEMessage params */
|
|
|
|
struct unpack_dde_message_result
|
|
|
|
{
|
|
|
|
WPARAM wparam;
|
|
|
|
LPARAM lparam;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct unpack_dde_message_params
|
|
|
|
{
|
|
|
|
struct unpack_dde_message_result *result; /* FIXME: Use NtCallbackReturn instead */
|
|
|
|
HWND hwnd;
|
|
|
|
UINT message;
|
|
|
|
WPARAM wparam;
|
|
|
|
LPARAM lparam;
|
|
|
|
char data[1];
|
|
|
|
};
|
|
|
|
|
2021-12-06 02:08:21 +00: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-07-29 19:41:44 +00:00
|
|
|
/* message spy definitions */
|
|
|
|
#define SPY_DISPATCHMESSAGE 0x0100
|
|
|
|
#define SPY_SENDMESSAGE 0x0101
|
|
|
|
#define SPY_DEFWNDPROC 0x0102
|
|
|
|
|
|
|
|
#define SPY_RESULT_OK 0x0001
|
|
|
|
#define SPY_RESULT_DEFWND 0x0002
|
|
|
|
|
2023-05-29 10:43:38 +00:00
|
|
|
/* CreateDesktop wine specific flag */
|
|
|
|
#define DF_WINE_CREATE_DESKTOP 0x80000000
|
|
|
|
|
2022-03-11 13:22:04 +00:00
|
|
|
/* NtUserMessageCall codes */
|
|
|
|
enum
|
|
|
|
{
|
2022-06-28 18:52:31 +00:00
|
|
|
NtUserScrollBarWndProc = 0x029a,
|
2022-06-10 23:42:50 +00:00
|
|
|
NtUserPopupMenuWndProc = 0x029c,
|
2022-05-19 12:23:17 +00:00
|
|
|
NtUserDesktopWindowProc = 0x029d,
|
2022-04-08 11:30:22 +00:00
|
|
|
NtUserDefWindowProc = 0x029e,
|
|
|
|
NtUserCallWindowProc = 0x02ab,
|
|
|
|
NtUserSendMessage = 0x02b1,
|
|
|
|
NtUserSendMessageTimeout = 0x02b3,
|
|
|
|
NtUserSendNotifyMessage = 0x02b7,
|
|
|
|
NtUserSendMessageCallback = 0x02b8,
|
2022-03-21 15:42:08 +00:00
|
|
|
/* Wine-specific exports */
|
2022-05-30 19:43:17 +00:00
|
|
|
NtUserClipboardWindowProc = 0x0300,
|
2022-07-19 16:33:42 +00:00
|
|
|
NtUserGetDispatchParams = 0x3001,
|
2023-08-01 15:24:19 +00:00
|
|
|
NtUserSpyGetMsgName = 0x3002,
|
|
|
|
NtUserSpyEnter = 0x0303,
|
|
|
|
NtUserSpyExit = 0x0304,
|
|
|
|
NtUserImeDriverCall = 0x0305,
|
2023-06-21 20:59:38 +00:00
|
|
|
NtUserSystemTrayCall = 0x0306,
|
2022-04-04 14:57:23 +00:00
|
|
|
};
|
|
|
|
|
2022-04-13 22:51:26 +00:00
|
|
|
/* NtUserThunkedMenuItemInfo codes */
|
|
|
|
enum
|
|
|
|
{
|
|
|
|
NtUserSetMenuItemInfo,
|
|
|
|
NtUserInsertMenuItem,
|
2022-04-14 14:20:38 +00:00
|
|
|
/* Wine extensions */
|
2022-06-21 15:53:02 +00:00
|
|
|
NtUserCheckMenuRadioItem,
|
2022-06-26 12:58:27 +00:00
|
|
|
NtUserGetMenuDefaultItem,
|
2022-06-21 11:52:55 +00:00
|
|
|
NtUserGetMenuItemID,
|
2022-04-14 17:39:06 +00:00
|
|
|
NtUserGetMenuItemInfoA,
|
|
|
|
NtUserGetMenuItemInfoW,
|
2022-04-14 14:20:38 +00:00
|
|
|
NtUserGetMenuState,
|
2022-06-21 15:58:18 +00:00
|
|
|
NtUserGetSubMenu,
|
2022-04-13 22:51:26 +00:00
|
|
|
};
|
|
|
|
|
2022-04-04 14:57:23 +00:00
|
|
|
struct send_message_timeout_params
|
|
|
|
{
|
|
|
|
UINT flags;
|
|
|
|
UINT timeout;
|
|
|
|
DWORD_PTR result;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct send_message_callback_params
|
|
|
|
{
|
|
|
|
SENDASYNCPROC callback;
|
|
|
|
ULONG_PTR data;
|
2022-03-11 13:22:04 +00:00
|
|
|
};
|
|
|
|
|
2021-12-07 14:29:06 +00:00
|
|
|
/* color index used to retrieve system 55aa brush */
|
|
|
|
#define COLOR_55AA_BRUSH 0x100
|
|
|
|
|
2022-02-22 12:40:33 +00:00
|
|
|
/* user object types */
|
|
|
|
#define NTUSER_OBJ_WINDOW 0x01
|
|
|
|
#define NTUSER_OBJ_MENU 0x02
|
|
|
|
#define NTUSER_OBJ_ICON 0x03
|
|
|
|
#define NTUSER_OBJ_WINPOS 0x04
|
|
|
|
#define NTUSER_OBJ_ACCEL 0x08
|
|
|
|
#define NTUSER_OBJ_HOOK 0x0f
|
2022-07-06 20:06:03 +00:00
|
|
|
#define NTUSER_OBJ_IMC 0x11
|
2022-02-22 12:40:33 +00:00
|
|
|
|
2022-06-08 17:15:14 +00:00
|
|
|
/* NtUserScrollWindowEx flag */
|
|
|
|
#define SW_NODCCACHE 0x8000
|
|
|
|
|
2022-07-03 21:31:45 +00:00
|
|
|
/* NtUserSetScrollInfo flag */
|
|
|
|
#define SIF_RETURNPREV 0x1000
|
|
|
|
|
2022-03-04 13:27:58 +00:00
|
|
|
/* NtUserInitializeClientPfnArrays parameter, not compatible with Windows */
|
|
|
|
struct user_client_procs
|
|
|
|
{
|
|
|
|
WNDPROC pButtonWndProc;
|
|
|
|
WNDPROC pComboWndProc;
|
|
|
|
WNDPROC pDefWindowProc;
|
|
|
|
WNDPROC pDefDlgProc;
|
|
|
|
WNDPROC pEditWndProc;
|
|
|
|
WNDPROC pListBoxWndProc;
|
|
|
|
WNDPROC pMDIClientWndProc;
|
|
|
|
WNDPROC pScrollBarWndProc;
|
|
|
|
WNDPROC pStaticWndProc;
|
|
|
|
WNDPROC pImeWndProc;
|
|
|
|
WNDPROC pDesktopWndProc;
|
|
|
|
WNDPROC pIconTitleWndProc;
|
|
|
|
WNDPROC pPopupMenuWndProc;
|
|
|
|
WNDPROC pMessageWndProc;
|
|
|
|
};
|
|
|
|
|
2022-02-22 12:41:40 +00:00
|
|
|
/* NtUserSetCursorIconData parameter, not compatible with Windows */
|
2022-02-22 12:53:11 +00:00
|
|
|
struct cursoricon_frame
|
|
|
|
{
|
|
|
|
UINT width; /* frame-specific width */
|
|
|
|
UINT height; /* frame-specific height */
|
|
|
|
HBITMAP color; /* color bitmap */
|
|
|
|
HBITMAP alpha; /* pre-multiplied alpha bitmap for 32-bpp icons */
|
|
|
|
HBITMAP mask; /* mask bitmap (followed by color for 1-bpp icons) */
|
|
|
|
POINT hotspot;
|
|
|
|
};
|
|
|
|
|
2022-02-22 12:41:40 +00:00
|
|
|
struct cursoricon_desc
|
|
|
|
{
|
|
|
|
UINT flags;
|
|
|
|
UINT num_steps;
|
|
|
|
UINT num_frames;
|
|
|
|
UINT delay;
|
|
|
|
struct cursoricon_frame *frames;
|
|
|
|
DWORD *frame_seq;
|
|
|
|
DWORD *frame_rates;
|
|
|
|
HRSRC rsrc;
|
|
|
|
};
|
|
|
|
|
2022-03-07 13:42:03 +00:00
|
|
|
struct client_menu_name
|
|
|
|
{
|
|
|
|
char *nameA;
|
|
|
|
WCHAR *nameW;
|
|
|
|
UNICODE_STRING *nameUS;
|
|
|
|
};
|
|
|
|
|
2022-04-25 14:59:10 +00:00
|
|
|
/* NtUserGetClipboardData params, not compatible with Windows */
|
|
|
|
struct get_clipboard_params
|
|
|
|
{
|
2022-04-25 14:59:16 +00:00
|
|
|
void *data;
|
|
|
|
size_t size;
|
|
|
|
size_t data_size;
|
|
|
|
UINT seqno;
|
2022-04-26 15:06:06 +00:00
|
|
|
BOOL data_only;
|
2022-04-25 14:59:10 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
/* NtUserSetClipboardData params, not compatible with Windows */
|
|
|
|
struct set_clipboard_params
|
|
|
|
{
|
2022-04-25 14:59:16 +00:00
|
|
|
void *data;
|
|
|
|
size_t size;
|
|
|
|
BOOL cache_only;
|
|
|
|
UINT seqno;
|
2022-04-25 14:59:10 +00:00
|
|
|
};
|
|
|
|
|
2022-10-23 09:58:41 +00:00
|
|
|
/* NtUserNonClientButton params */
|
|
|
|
struct draw_non_client_button_params
|
|
|
|
{
|
|
|
|
HWND hwnd;
|
|
|
|
HDC hdc;
|
|
|
|
enum NONCLIENT_BUTTON_TYPE type;
|
|
|
|
RECT rect;
|
|
|
|
BOOL down;
|
|
|
|
BOOL grayed;
|
|
|
|
};
|
|
|
|
|
2022-06-30 15:12:46 +00:00
|
|
|
/* NtUserDrawScrollBar params */
|
|
|
|
struct draw_scroll_bar_params
|
|
|
|
{
|
|
|
|
HWND hwnd;
|
|
|
|
HDC hdc;
|
|
|
|
INT bar;
|
|
|
|
UINT hit_test;
|
|
|
|
struct SCROLL_TRACKING_INFO tracking_info;
|
|
|
|
BOOL arrows;
|
|
|
|
BOOL interior;
|
|
|
|
RECT rect;
|
|
|
|
UINT enable_flags;
|
|
|
|
INT arrow_size;
|
|
|
|
INT thumb_pos;
|
|
|
|
INT thumb_size;
|
|
|
|
BOOL vertical;
|
|
|
|
};
|
|
|
|
|
2022-07-06 20:06:03 +00:00
|
|
|
/* NtUserUpdateInputContext param, not compatible with Window */
|
|
|
|
enum input_context_attr
|
|
|
|
{
|
|
|
|
NtUserInputContextClientPtr,
|
|
|
|
NtUserInputContextThreadId,
|
|
|
|
};
|
|
|
|
|
2022-07-08 18:09:26 +00:00
|
|
|
/* NtUserAssociateInputContext result */
|
|
|
|
enum associate_input_context_result
|
|
|
|
{
|
|
|
|
AICR_OK,
|
|
|
|
AICR_FOCUS_CHANGED,
|
|
|
|
AICR_FAILED,
|
|
|
|
};
|
|
|
|
|
2022-02-08 12:13:00 +00: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_UPDATEWINDOWSTATE,
|
|
|
|
WM_WINE_FIRST_DRIVER_MSG = 0x80001000, /* range of messages reserved for the USER driver */
|
2023-12-11 19:26:59 +00:00
|
|
|
WM_WINE_CLIPCURSOR = 0x80001ff0, /* internal driver notification messages */
|
|
|
|
WM_WINE_SETCURSOR,
|
2022-02-08 12:13:00 +00:00
|
|
|
WM_WINE_LAST_DRIVER_MSG = 0x80001fff
|
|
|
|
};
|
|
|
|
|
2022-07-07 22:43:21 +00:00
|
|
|
/* internal IME message */
|
|
|
|
#define WM_IME_INTERNAL 0x287
|
|
|
|
#define IME_INTERNAL_ACTIVATE 0x17
|
|
|
|
#define IME_INTERNAL_DEACTIVATE 0x18
|
2023-03-27 09:24:21 +00:00
|
|
|
#define IME_INTERNAL_HKL_ACTIVATE 0x19
|
|
|
|
#define IME_INTERNAL_HKL_DEACTIVATE 0x20
|
2022-07-07 22:43:21 +00:00
|
|
|
|
2023-04-01 09:56:58 +00:00
|
|
|
/* internal WM_IME_NOTIFY wparams, not compatible with Windows */
|
|
|
|
#define IMN_WINE_SET_OPEN_STATUS 0x000f
|
2023-05-09 12:29:18 +00:00
|
|
|
#define IMN_WINE_SET_COMP_STRING 0x0010
|
2023-04-01 09:56:58 +00:00
|
|
|
|
2023-05-12 05:23:00 +00:00
|
|
|
/* builtin IME driver calls */
|
|
|
|
enum wine_ime_call
|
|
|
|
{
|
|
|
|
WINE_IME_PROCESS_KEY,
|
2023-05-09 12:33:37 +00:00
|
|
|
WINE_IME_TO_ASCII_EX,
|
2023-05-12 05:23:00 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
/* NtUserImeDriverCall params */
|
|
|
|
struct ime_driver_call_params
|
|
|
|
{
|
|
|
|
HIMC himc;
|
|
|
|
const BYTE *state;
|
2023-05-09 12:33:37 +00:00
|
|
|
COMPOSITIONSTRING *compstr;
|
2023-05-12 05:23:00 +00:00
|
|
|
};
|
|
|
|
|
2023-06-21 20:59:38 +00:00
|
|
|
/* NtUserSystemTrayCall calls */
|
|
|
|
enum wine_systray_call
|
|
|
|
{
|
|
|
|
WINE_SYSTRAY_NOTIFY_ICON,
|
|
|
|
WINE_SYSTRAY_CLEANUP_ICONS,
|
2023-06-23 13:17:44 +00:00
|
|
|
WINE_SYSTRAY_DOCK_INIT,
|
|
|
|
WINE_SYSTRAY_DOCK_INSERT,
|
|
|
|
WINE_SYSTRAY_DOCK_CLEAR,
|
|
|
|
WINE_SYSTRAY_DOCK_REMOVE,
|
2023-06-21 20:59:38 +00:00
|
|
|
};
|
|
|
|
|
2022-07-29 19:41:44 +00:00
|
|
|
#define WM_SYSTIMER 0x0118
|
|
|
|
|
2022-02-08 12:13:00 +00:00
|
|
|
|
2023-11-03 16:33:59 +00:00
|
|
|
W32KAPI HKL WINAPI NtUserActivateKeyboardLayout( HKL layout, UINT flags );
|
|
|
|
W32KAPI BOOL WINAPI NtUserAddClipboardFormatListener( HWND hwnd );
|
|
|
|
W32KAPI UINT WINAPI NtUserAssociateInputContext( HWND hwnd, HIMC ctx, ULONG flags );
|
|
|
|
W32KAPI BOOL WINAPI NtUserAttachThreadInput( DWORD from, DWORD to, BOOL attach );
|
|
|
|
W32KAPI HDC WINAPI NtUserBeginPaint( HWND hwnd, PAINTSTRUCT *ps );
|
|
|
|
W32KAPI NTSTATUS WINAPI NtUserBuildHimcList( UINT thread_id, UINT count, HIMC *buffer, UINT *size );
|
|
|
|
W32KAPI NTSTATUS WINAPI NtUserBuildHwndList( HDESK desktop, ULONG unk2, ULONG unk3, ULONG unk4,
|
|
|
|
ULONG thread_id, ULONG count, HWND *buffer, ULONG *size );
|
|
|
|
W32KAPI ULONG_PTR WINAPI NtUserCallHwnd( HWND hwnd, DWORD code );
|
|
|
|
W32KAPI ULONG_PTR WINAPI NtUserCallHwndParam( HWND hwnd, DWORD_PTR param, DWORD code );
|
|
|
|
W32KAPI LRESULT WINAPI NtUserCallNextHookEx( HHOOK hhook, INT code, WPARAM wparam, LPARAM lparam );
|
|
|
|
W32KAPI BOOL WINAPI NtUserCallMsgFilter( MSG *msg, INT code );
|
|
|
|
W32KAPI ULONG_PTR WINAPI NtUserCallNoParam( ULONG code );
|
|
|
|
W32KAPI ULONG_PTR WINAPI NtUserCallOneParam( ULONG_PTR arg, ULONG code );
|
|
|
|
W32KAPI ULONG_PTR WINAPI NtUserCallTwoParam( ULONG_PTR arg1, ULONG_PTR arg2, ULONG code );
|
|
|
|
W32KAPI BOOL WINAPI NtUserChangeClipboardChain( HWND hwnd, HWND next );
|
|
|
|
W32KAPI LONG WINAPI NtUserChangeDisplaySettings( UNICODE_STRING *devname, DEVMODEW *devmode, HWND hwnd,
|
|
|
|
DWORD flags, void *lparam );
|
|
|
|
W32KAPI DWORD WINAPI NtUserCheckMenuItem( HMENU handle, UINT id, UINT flags );
|
|
|
|
W32KAPI HWND WINAPI NtUserChildWindowFromPointEx( HWND parent, LONG x, LONG y, UINT flags );
|
|
|
|
W32KAPI BOOL WINAPI NtUserClipCursor( const RECT *rect );
|
|
|
|
W32KAPI BOOL WINAPI NtUserCloseClipboard(void);
|
|
|
|
W32KAPI BOOL WINAPI NtUserCloseDesktop( HDESK handle );
|
|
|
|
W32KAPI BOOL WINAPI NtUserCloseWindowStation( HWINSTA handle );
|
|
|
|
W32KAPI INT WINAPI NtUserCopyAcceleratorTable( HACCEL src, ACCEL *dst, INT count );
|
|
|
|
W32KAPI INT WINAPI NtUserCountClipboardFormats(void);
|
|
|
|
W32KAPI HACCEL WINAPI NtUserCreateAcceleratorTable( ACCEL *table, INT count );
|
|
|
|
W32KAPI BOOL WINAPI NtUserCreateCaret( HWND hwnd, HBITMAP bitmap, int width, int height );
|
|
|
|
W32KAPI HDESK WINAPI NtUserCreateDesktopEx( OBJECT_ATTRIBUTES *attr, UNICODE_STRING *device,
|
|
|
|
DEVMODEW *devmode, DWORD flags, ACCESS_MASK access,
|
|
|
|
ULONG heap_size );
|
|
|
|
W32KAPI HIMC WINAPI NtUserCreateInputContext( UINT_PTR client_ptr );
|
|
|
|
W32KAPI HWND WINAPI NtUserCreateWindowEx( DWORD ex_style, UNICODE_STRING *class_name,
|
|
|
|
UNICODE_STRING *version, UNICODE_STRING *window_name,
|
|
|
|
DWORD style, INT x, INT y, INT cx, INT cy,
|
|
|
|
HWND parent, HMENU menu, HINSTANCE instance, void *params,
|
|
|
|
DWORD flags, HINSTANCE client_instance, DWORD unk, BOOL ansi );
|
|
|
|
W32KAPI HWINSTA WINAPI NtUserCreateWindowStation( OBJECT_ATTRIBUTES *attr, ACCESS_MASK mask, ULONG arg3,
|
|
|
|
ULONG arg4, ULONG arg5, ULONG arg6, ULONG arg7 );
|
|
|
|
W32KAPI HDWP WINAPI NtUserDeferWindowPosAndBand( HDWP hdwp, HWND hwnd, HWND after, INT x, INT y,
|
|
|
|
INT cx, INT cy, UINT flags, UINT unk1, UINT unk2 );
|
|
|
|
W32KAPI BOOL WINAPI NtUserDeleteMenu( HMENU menu, UINT id, UINT flags );
|
|
|
|
W32KAPI BOOL WINAPI NtUserDestroyAcceleratorTable( HACCEL handle );
|
|
|
|
W32KAPI BOOL WINAPI NtUserDestroyCursor( HCURSOR cursor, ULONG arg );
|
|
|
|
W32KAPI BOOL WINAPI NtUserDestroyInputContext( HIMC handle );
|
|
|
|
W32KAPI BOOL WINAPI NtUserDestroyMenu( HMENU menu );
|
|
|
|
W32KAPI BOOL WINAPI NtUserDestroyWindow( HWND hwnd );
|
|
|
|
W32KAPI BOOL WINAPI NtUserDisableThreadIme( DWORD thread_id );
|
|
|
|
W32KAPI LRESULT WINAPI NtUserDispatchMessage( const MSG *msg );
|
|
|
|
W32KAPI NTSTATUS WINAPI NtUserDisplayConfigGetDeviceInfo( DISPLAYCONFIG_DEVICE_INFO_HEADER *packet );
|
|
|
|
W32KAPI BOOL WINAPI NtUserDragDetect( HWND hwnd, int x, int y );
|
|
|
|
W32KAPI DWORD WINAPI NtUserDragObject( HWND parent, HWND hwnd, UINT fmt, ULONG_PTR data, HCURSOR cursor );
|
|
|
|
W32KAPI BOOL WINAPI NtUserDrawCaptionTemp( HWND hwnd, HDC hdc, const RECT *rect, HFONT font,
|
|
|
|
HICON icon, const WCHAR *str, UINT flags );
|
|
|
|
W32KAPI BOOL WINAPI NtUserDrawIconEx( HDC hdc, INT x0, INT y0, HICON icon, INT width,
|
|
|
|
INT height, UINT istep, HBRUSH hbr, UINT flags );
|
|
|
|
W32KAPI DWORD WINAPI NtUserDrawMenuBarTemp( HWND hwnd, HDC hdc, RECT *rect, HMENU handle, HFONT font );
|
|
|
|
W32KAPI BOOL WINAPI NtUserEmptyClipboard(void);
|
|
|
|
W32KAPI BOOL WINAPI NtUserEnableMenuItem( HMENU handle, UINT id, UINT flags );
|
|
|
|
W32KAPI BOOL WINAPI NtUserEnableMouseInPointer( BOOL );
|
|
|
|
W32KAPI BOOL WINAPI NtUserEnableScrollBar( HWND hwnd, UINT bar, UINT flags );
|
|
|
|
W32KAPI BOOL WINAPI NtUserEndDeferWindowPosEx( HDWP hdwp, BOOL async );
|
|
|
|
W32KAPI BOOL WINAPI NtUserEndMenu(void);
|
|
|
|
W32KAPI BOOL WINAPI NtUserEndPaint( HWND hwnd, const PAINTSTRUCT *ps );
|
|
|
|
W32KAPI NTSTATUS WINAPI NtUserEnumDisplayDevices( UNICODE_STRING *device, DWORD index,
|
|
|
|
DISPLAY_DEVICEW *info, DWORD flags );
|
|
|
|
W32KAPI BOOL WINAPI NtUserEnumDisplayMonitors( HDC hdc, RECT *rect, MONITORENUMPROC proc, LPARAM lp );
|
|
|
|
W32KAPI BOOL WINAPI NtUserEnumDisplaySettings( UNICODE_STRING *device, DWORD mode,
|
|
|
|
DEVMODEW *dev_mode, DWORD flags );
|
|
|
|
W32KAPI INT WINAPI NtUserExcludeUpdateRgn( HDC hdc, HWND hwnd );
|
|
|
|
W32KAPI HICON WINAPI NtUserFindExistingCursorIcon( UNICODE_STRING *module, UNICODE_STRING *res_name,
|
|
|
|
void *desc );
|
|
|
|
W32KAPI HWND WINAPI NtUserFindWindowEx( HWND parent, HWND child, UNICODE_STRING *class,
|
|
|
|
UNICODE_STRING *title, ULONG unk );
|
|
|
|
W32KAPI BOOL WINAPI NtUserFlashWindowEx( FLASHWINFO *info );
|
|
|
|
W32KAPI HWND WINAPI NtUserGetAncestor( HWND hwnd, UINT type );
|
|
|
|
W32KAPI SHORT WINAPI NtUserGetAsyncKeyState( INT key );
|
|
|
|
W32KAPI ULONG WINAPI NtUserGetAtomName( ATOM atom, UNICODE_STRING *name );
|
|
|
|
W32KAPI UINT WINAPI NtUserGetCaretBlinkTime(void);
|
|
|
|
W32KAPI BOOL WINAPI NtUserGetCaretPos( POINT *point );
|
|
|
|
W32KAPI ATOM WINAPI NtUserGetClassInfoEx( HINSTANCE instance, UNICODE_STRING *name, WNDCLASSEXW *wc,
|
|
|
|
struct client_menu_name *menu_name, BOOL ansi );
|
|
|
|
W32KAPI INT WINAPI NtUserGetClassName( HWND hwnd, BOOL real, UNICODE_STRING *name );
|
|
|
|
W32KAPI HANDLE WINAPI NtUserGetClipboardData( UINT format, struct get_clipboard_params *params );
|
|
|
|
W32KAPI INT WINAPI NtUserGetClipboardFormatName( UINT format, WCHAR *buffer, INT maxlen );
|
|
|
|
W32KAPI HWND WINAPI NtUserGetClipboardOwner(void);
|
|
|
|
W32KAPI DWORD WINAPI NtUserGetClipboardSequenceNumber(void);
|
|
|
|
W32KAPI HWND WINAPI NtUserGetClipboardViewer(void);
|
|
|
|
W32KAPI HCURSOR WINAPI NtUserGetCursor(void);
|
|
|
|
W32KAPI HCURSOR WINAPI NtUserGetCursorFrameInfo( HCURSOR hCursor, DWORD istep, DWORD *rate_jiffies,
|
|
|
|
DWORD *num_steps );
|
|
|
|
W32KAPI BOOL WINAPI NtUserGetCursorInfo( CURSORINFO *info );
|
|
|
|
W32KAPI HDC WINAPI NtUserGetDC( HWND hwnd );
|
|
|
|
W32KAPI HDC WINAPI NtUserGetDCEx( HWND hwnd, HRGN clip_rgn, DWORD flags );
|
|
|
|
W32KAPI LONG WINAPI NtUserGetDisplayConfigBufferSizes( UINT32 flags, UINT32 *num_path_info,
|
|
|
|
UINT32 *num_mode_info );
|
|
|
|
W32KAPI UINT WINAPI NtUserGetDoubleClickTime(void);
|
|
|
|
W32KAPI BOOL WINAPI NtUserGetDpiForMonitor( HMONITOR monitor, UINT type, UINT *x, UINT *y );
|
|
|
|
W32KAPI HWND WINAPI NtUserGetForegroundWindow(void);
|
|
|
|
W32KAPI BOOL WINAPI NtUserGetGUIThreadInfo( DWORD id, GUITHREADINFO *info );
|
|
|
|
W32KAPI BOOL WINAPI NtUserGetIconInfo( HICON icon, ICONINFO *info, UNICODE_STRING *module,
|
|
|
|
UNICODE_STRING *res_name, DWORD *bpp, LONG unk );
|
|
|
|
W32KAPI BOOL WINAPI NtUserGetIconSize( HICON handle, UINT step, LONG *width, LONG *height );
|
|
|
|
W32KAPI UINT WINAPI NtUserGetInternalWindowPos( HWND hwnd, RECT *rect, POINT *pt );
|
|
|
|
W32KAPI INT WINAPI NtUserGetKeyNameText( LONG lparam, WCHAR *buffer, INT size );
|
|
|
|
W32KAPI SHORT WINAPI NtUserGetKeyState( INT vkey );
|
|
|
|
W32KAPI HKL WINAPI NtUserGetKeyboardLayout( DWORD thread_id );
|
|
|
|
W32KAPI UINT WINAPI NtUserGetKeyboardLayoutList( INT size, HKL *layouts );
|
|
|
|
W32KAPI BOOL WINAPI NtUserGetKeyboardLayoutName( WCHAR *name );
|
|
|
|
W32KAPI BOOL WINAPI NtUserGetKeyboardState( BYTE *state );
|
|
|
|
W32KAPI BOOL WINAPI NtUserGetLayeredWindowAttributes( HWND hwnd, COLORREF *key, BYTE *alpha, DWORD *flags );
|
|
|
|
W32KAPI BOOL WINAPI NtUserGetMenuBarInfo( HWND hwnd, LONG id, LONG item, MENUBARINFO *info );
|
|
|
|
W32KAPI BOOL WINAPI NtUserGetMenuItemRect( HWND hwnd, HMENU menu, UINT item, RECT *rect );
|
|
|
|
W32KAPI BOOL WINAPI NtUserGetMessage( MSG *msg, HWND hwnd, UINT first, UINT last );
|
|
|
|
W32KAPI int WINAPI NtUserGetMouseMovePointsEx( UINT size, MOUSEMOVEPOINT *ptin, MOUSEMOVEPOINT *ptout,
|
|
|
|
int count, DWORD resolution );
|
|
|
|
W32KAPI BOOL WINAPI NtUserGetObjectInformation( HANDLE handle, INT index, void *info,
|
|
|
|
DWORD len, DWORD *needed );
|
|
|
|
W32KAPI HWND WINAPI NtUserGetOpenClipboardWindow(void);
|
|
|
|
W32KAPI BOOL WINAPI NtUserGetPointerInfoList( UINT32 id, POINTER_INPUT_TYPE type, UINT_PTR, UINT_PTR, SIZE_T size,
|
|
|
|
UINT32 *entry_count, UINT32 *pointer_count, void *pointer_info );
|
|
|
|
W32KAPI INT WINAPI NtUserGetPriorityClipboardFormat( UINT *list, INT count );
|
|
|
|
W32KAPI HWINSTA WINAPI NtUserGetProcessWindowStation(void);
|
|
|
|
W32KAPI HANDLE WINAPI NtUserGetProp( HWND hwnd, const WCHAR *str );
|
|
|
|
W32KAPI ULONG WINAPI NtUserGetProcessDpiAwarenessContext( HANDLE process );
|
|
|
|
W32KAPI DWORD WINAPI NtUserGetQueueStatus( UINT flags );
|
|
|
|
W32KAPI UINT WINAPI NtUserGetRawInputBuffer( RAWINPUT *data, UINT *data_size, UINT header_size );
|
|
|
|
W32KAPI UINT WINAPI NtUserGetRawInputData( HRAWINPUT rawinput, UINT command, void *data, UINT *data_size, UINT header_size );
|
|
|
|
W32KAPI UINT WINAPI NtUserGetRawInputDeviceInfo( HANDLE handle, UINT command, void *data, UINT *data_size );
|
|
|
|
W32KAPI UINT WINAPI NtUserGetRawInputDeviceList( RAWINPUTDEVICELIST *devices, UINT *device_count, UINT size );
|
|
|
|
W32KAPI UINT WINAPI NtUserGetRegisteredRawInputDevices( RAWINPUTDEVICE *devices, UINT *device_count, UINT size );
|
|
|
|
W32KAPI BOOL WINAPI NtUserGetScrollBarInfo( HWND hwnd, LONG id, SCROLLBARINFO *info );
|
|
|
|
W32KAPI ULONG WINAPI NtUserGetSystemDpiForProcess( HANDLE process );
|
|
|
|
W32KAPI HMENU WINAPI NtUserGetSystemMenu( HWND hwnd, BOOL revert );
|
|
|
|
W32KAPI HDESK WINAPI NtUserGetThreadDesktop( DWORD thread );
|
|
|
|
W32KAPI BOOL WINAPI NtUserGetTitleBarInfo( HWND hwnd, TITLEBARINFO *info );
|
|
|
|
W32KAPI INT WINAPI NtUserGetUpdateRgn( HWND hwnd, HRGN hrgn, BOOL erase );
|
|
|
|
W32KAPI BOOL WINAPI NtUserGetUpdatedClipboardFormats( UINT *formats, UINT size, UINT *out_size );
|
|
|
|
W32KAPI BOOL WINAPI NtUserGetUpdateRect( HWND hwnd, RECT *rect, BOOL erase );
|
|
|
|
W32KAPI HDC WINAPI NtUserGetWindowDC( HWND hwnd );
|
|
|
|
W32KAPI BOOL WINAPI NtUserGetWindowPlacement( HWND hwnd, WINDOWPLACEMENT *placement );
|
|
|
|
W32KAPI int WINAPI NtUserGetWindowRgnEx( HWND hwnd, HRGN hrgn, UINT unk );
|
|
|
|
W32KAPI BOOL WINAPI NtUserHideCaret( HWND hwnd );
|
|
|
|
W32KAPI BOOL WINAPI NtUserHiliteMenuItem( HWND hwnd, HMENU handle, UINT item, UINT hilite );
|
|
|
|
W32KAPI NTSTATUS WINAPI NtUserInitializeClientPfnArrays( const struct user_client_procs *client_procsA,
|
|
|
|
const struct user_client_procs *client_procsW,
|
|
|
|
const void *client_workers, HINSTANCE user_module );
|
|
|
|
W32KAPI HICON WINAPI NtUserInternalGetWindowIcon( HWND hwnd, UINT type );
|
|
|
|
W32KAPI INT WINAPI NtUserInternalGetWindowText( HWND hwnd, WCHAR *text, INT count );
|
|
|
|
W32KAPI BOOL WINAPI NtUserIsClipboardFormatAvailable( UINT format );
|
|
|
|
W32KAPI BOOL WINAPI NtUserIsMouseInPointerEnabled(void);
|
|
|
|
W32KAPI BOOL WINAPI NtUserInvalidateRect( HWND hwnd, const RECT *rect, BOOL erase );
|
|
|
|
W32KAPI BOOL WINAPI NtUserInvalidateRgn( HWND hwnd, HRGN hrgn, BOOL erase );
|
|
|
|
W32KAPI BOOL WINAPI NtUserKillTimer( HWND hwnd, UINT_PTR id );
|
|
|
|
W32KAPI BOOL WINAPI NtUserLockWindowUpdate( HWND hwnd );
|
|
|
|
W32KAPI BOOL WINAPI NtUserLogicalToPerMonitorDPIPhysicalPoint( HWND hwnd, POINT *pt );
|
|
|
|
W32KAPI UINT WINAPI NtUserMapVirtualKeyEx( UINT code, UINT type, HKL layout );
|
|
|
|
W32KAPI INT WINAPI NtUserMenuItemFromPoint( HWND hwnd, HMENU handle, int x, int y );
|
|
|
|
W32KAPI LRESULT WINAPI NtUserMessageCall( HWND hwnd, UINT msg, WPARAM wparam, LPARAM lparam,
|
|
|
|
void *result_info, DWORD type, BOOL ansi );
|
|
|
|
W32KAPI BOOL WINAPI NtUserMoveWindow( HWND hwnd, INT x, INT y, INT cx, INT cy, BOOL repaint );
|
|
|
|
W32KAPI DWORD WINAPI NtUserMsgWaitForMultipleObjectsEx( DWORD count, const HANDLE *handles,
|
|
|
|
DWORD timeout, DWORD mask, DWORD flags );
|
|
|
|
W32KAPI void WINAPI NtUserNotifyIMEStatus( HWND hwnd, UINT status );
|
|
|
|
W32KAPI void WINAPI NtUserNotifyWinEvent( DWORD event, HWND hwnd, LONG object_id, LONG child_id );
|
|
|
|
W32KAPI HWINSTA WINAPI NtUserOpenWindowStation( OBJECT_ATTRIBUTES *attr, ACCESS_MASK access );
|
|
|
|
W32KAPI BOOL WINAPI NtUserOpenClipboard( HWND hwnd, ULONG unk );
|
|
|
|
W32KAPI HDESK WINAPI NtUserOpenDesktop( OBJECT_ATTRIBUTES *attr, DWORD flags, ACCESS_MASK access );
|
|
|
|
W32KAPI HDESK WINAPI NtUserOpenInputDesktop( DWORD flags, BOOL inherit, ACCESS_MASK access );
|
|
|
|
W32KAPI BOOL WINAPI NtUserPeekMessage( MSG *msg_out, HWND hwnd, UINT first, UINT last, UINT flags );
|
|
|
|
W32KAPI BOOL WINAPI NtUserPerMonitorDPIPhysicalToLogicalPoint( HWND hwnd, POINT *pt );
|
|
|
|
W32KAPI BOOL WINAPI NtUserPostMessage( HWND hwnd, UINT msg, WPARAM wparam, LPARAM lparam );
|
|
|
|
W32KAPI BOOL WINAPI NtUserPostThreadMessage( DWORD thread, UINT msg, WPARAM wparam, LPARAM lparam );
|
|
|
|
W32KAPI BOOL WINAPI NtUserPrintWindow( HWND hwnd, HDC hdc, UINT flags );
|
|
|
|
W32KAPI LONG WINAPI NtUserQueryDisplayConfig( UINT32 flags, UINT32 *paths_count, DISPLAYCONFIG_PATH_INFO *paths,
|
|
|
|
UINT32 *modes_count, DISPLAYCONFIG_MODE_INFO *modes,
|
|
|
|
DISPLAYCONFIG_TOPOLOGY_ID *topology_id);
|
|
|
|
W32KAPI UINT_PTR WINAPI NtUserQueryInputContext( HIMC handle, UINT attr );
|
|
|
|
W32KAPI HWND WINAPI NtUserRealChildWindowFromPoint( HWND parent, LONG x, LONG y );
|
|
|
|
W32KAPI BOOL WINAPI NtUserRedrawWindow( HWND hwnd, const RECT *rect, HRGN hrgn, UINT flags );
|
|
|
|
W32KAPI ATOM WINAPI NtUserRegisterClassExWOW( const WNDCLASSEXW *wc, UNICODE_STRING *name, UNICODE_STRING *version,
|
|
|
|
struct client_menu_name *client_menu_name, DWORD fnid, DWORD flags,
|
|
|
|
DWORD *wow );
|
|
|
|
W32KAPI BOOL WINAPI NtUserRegisterHotKey( HWND hwnd, INT id, UINT modifiers, UINT vk );
|
|
|
|
W32KAPI BOOL WINAPI NtUserRegisterRawInputDevices( const RAWINPUTDEVICE *devices, UINT device_count, UINT size );
|
|
|
|
W32KAPI INT WINAPI NtUserReleaseDC( HWND hwnd, HDC hdc );
|
|
|
|
W32KAPI BOOL WINAPI NtUserRemoveClipboardFormatListener( HWND hwnd );
|
|
|
|
W32KAPI BOOL WINAPI NtUserRemoveMenu( HMENU menu, UINT id, UINT flags );
|
|
|
|
W32KAPI HANDLE WINAPI NtUserRemoveProp( HWND hwnd, const WCHAR *str );
|
|
|
|
W32KAPI BOOL WINAPI NtUserScrollDC( HDC hdc, INT dx, INT dy, const RECT *scroll, const RECT *clip,
|
|
|
|
HRGN ret_update_rgn, RECT *update_rect );
|
|
|
|
W32KAPI INT WINAPI NtUserScrollWindowEx( HWND hwnd, INT dx, INT dy, const RECT *rect,
|
|
|
|
const RECT *clip_rect, HRGN update_rgn,
|
|
|
|
RECT *update_rect, UINT flags );
|
|
|
|
W32KAPI HPALETTE WINAPI NtUserSelectPalette( HDC hdc, HPALETTE palette, WORD force_background );
|
|
|
|
W32KAPI UINT WINAPI NtUserSendInput( UINT count, INPUT *inputs, int size );
|
|
|
|
W32KAPI HWND WINAPI NtUserSetActiveWindow( HWND hwnd );
|
|
|
|
W32KAPI HWND WINAPI NtUserSetCapture( HWND hwnd );
|
|
|
|
W32KAPI DWORD WINAPI NtUserSetClassLong( HWND hwnd, INT offset, LONG newval, BOOL ansi );
|
|
|
|
W32KAPI ULONG_PTR WINAPI NtUserSetClassLongPtr( HWND hwnd, INT offset, LONG_PTR newval, BOOL ansi );
|
|
|
|
W32KAPI WORD WINAPI NtUserSetClassWord( HWND hwnd, INT offset, WORD newval );
|
|
|
|
W32KAPI NTSTATUS WINAPI NtUserSetClipboardData( UINT format, HANDLE handle, struct set_clipboard_params *params );
|
|
|
|
W32KAPI HWND WINAPI NtUserSetClipboardViewer( HWND hwnd );
|
|
|
|
W32KAPI HCURSOR WINAPI NtUserSetCursor( HCURSOR cursor );
|
|
|
|
W32KAPI BOOL WINAPI NtUserSetCursorIconData( HCURSOR cursor, UNICODE_STRING *module, UNICODE_STRING *res_name,
|
|
|
|
struct cursoricon_desc *desc );
|
|
|
|
W32KAPI BOOL WINAPI NtUserSetCursorPos( INT x, INT y );
|
|
|
|
W32KAPI HWND WINAPI NtUserSetFocus( HWND hwnd );
|
|
|
|
W32KAPI void WINAPI NtUserSetInternalWindowPos( HWND hwnd, UINT cmd, RECT *rect, POINT *pt );
|
|
|
|
W32KAPI BOOL WINAPI NtUserSetKeyboardState( BYTE *state );
|
|
|
|
W32KAPI BOOL WINAPI NtUserSetLayeredWindowAttributes( HWND hwnd, COLORREF key, BYTE alpha, DWORD flags );
|
|
|
|
W32KAPI BOOL WINAPI NtUserSetMenu( HWND hwnd, HMENU menu );
|
|
|
|
W32KAPI BOOL WINAPI NtUserSetMenuContextHelpId( HMENU handle, DWORD id );
|
|
|
|
W32KAPI BOOL WINAPI NtUserSetMenuDefaultItem( HMENU handle, UINT item, UINT bypos );
|
|
|
|
W32KAPI BOOL WINAPI NtUserSetObjectInformation( HANDLE handle, INT index, void *info, DWORD len );
|
|
|
|
W32KAPI HWND WINAPI NtUserSetParent( HWND hwnd, HWND parent );
|
|
|
|
W32KAPI BOOL WINAPI NtUserSetProcessDpiAwarenessContext( ULONG awareness, ULONG unknown );
|
|
|
|
W32KAPI BOOL WINAPI NtUserSetProcessWindowStation( HWINSTA handle );
|
|
|
|
W32KAPI BOOL WINAPI NtUserSetProp( HWND hwnd, const WCHAR *str, HANDLE handle );
|
|
|
|
W32KAPI INT WINAPI NtUserSetScrollInfo( HWND hwnd, INT bar, const SCROLLINFO *info, BOOL redraw );
|
|
|
|
W32KAPI BOOL WINAPI NtUserSetShellWindowEx( HWND shell, HWND list_view );
|
|
|
|
W32KAPI BOOL WINAPI NtUserSetSysColors( INT count, const INT *colors, const COLORREF *values );
|
|
|
|
W32KAPI BOOL WINAPI NtUserSetSystemMenu( HWND hwnd, HMENU menu );
|
|
|
|
W32KAPI UINT_PTR WINAPI NtUserSetSystemTimer( HWND hwnd, UINT_PTR id, UINT timeout );
|
|
|
|
W32KAPI BOOL WINAPI NtUserSetThreadDesktop( HDESK handle );
|
|
|
|
W32KAPI UINT_PTR WINAPI NtUserSetTimer( HWND hwnd, UINT_PTR id, UINT timeout, TIMERPROC proc, ULONG tolerance );
|
|
|
|
W32KAPI LONG WINAPI NtUserSetWindowLong( HWND hwnd, INT offset, LONG newval, BOOL ansi );
|
|
|
|
W32KAPI LONG_PTR WINAPI NtUserSetWindowLongPtr( HWND hwnd, INT offset, LONG_PTR newval, BOOL ansi );
|
|
|
|
W32KAPI BOOL WINAPI NtUserSetWindowPlacement( HWND hwnd, const WINDOWPLACEMENT *wpl );
|
|
|
|
W32KAPI BOOL WINAPI NtUserSetWindowPos( HWND hwnd, HWND after, INT x, INT y, INT cx, INT cy, UINT flags );
|
|
|
|
W32KAPI int WINAPI NtUserSetWindowRgn( HWND hwnd, HRGN hrgn, BOOL redraw );
|
|
|
|
W32KAPI WORD WINAPI NtUserSetWindowWord( HWND hwnd, INT offset, WORD newval );
|
|
|
|
W32KAPI HHOOK WINAPI NtUserSetWindowsHookEx( HINSTANCE inst, UNICODE_STRING *module, DWORD tid, INT id,
|
|
|
|
HOOKPROC proc, BOOL ansi );
|
|
|
|
W32KAPI HWINEVENTHOOK WINAPI NtUserSetWinEventHook( DWORD event_min, DWORD event_max, HMODULE inst,
|
|
|
|
UNICODE_STRING *module, WINEVENTPROC proc,
|
|
|
|
DWORD pid, DWORD tid, DWORD flags );
|
|
|
|
W32KAPI BOOL WINAPI NtUserShowCaret( HWND hwnd );
|
|
|
|
W32KAPI INT WINAPI NtUserShowCursor( BOOL show );
|
|
|
|
W32KAPI BOOL WINAPI NtUserShowScrollBar( HWND hwnd, INT bar, BOOL show );
|
|
|
|
W32KAPI BOOL WINAPI NtUserShowWindow( HWND hwnd, INT cmd );
|
|
|
|
W32KAPI BOOL WINAPI NtUserShowWindowAsync( HWND hwnd, INT cmd );
|
|
|
|
W32KAPI BOOL WINAPI NtUserSystemParametersInfo( UINT action, UINT val, void *ptr, UINT winini );
|
|
|
|
W32KAPI BOOL WINAPI NtUserSystemParametersInfoForDpi( UINT action, UINT val, PVOID ptr, UINT winini, UINT dpi );
|
|
|
|
W32KAPI BOOL WINAPI NtUserThunkedMenuInfo( HMENU menu, const MENUINFO *info );
|
|
|
|
W32KAPI UINT WINAPI NtUserThunkedMenuItemInfo( HMENU menu, UINT pos, UINT flags, UINT method,
|
|
|
|
MENUITEMINFOW *info, UNICODE_STRING *str );
|
|
|
|
W32KAPI INT WINAPI NtUserToUnicodeEx( UINT virt, UINT scan, const BYTE *state,
|
|
|
|
WCHAR *str, int size, UINT flags, HKL layout );
|
|
|
|
W32KAPI BOOL WINAPI NtUserTrackMouseEvent( TRACKMOUSEEVENT *info );
|
|
|
|
W32KAPI BOOL WINAPI NtUserTrackPopupMenuEx( HMENU handle, UINT flags, INT x, INT y, HWND hwnd, TPMPARAMS *params );
|
|
|
|
W32KAPI INT WINAPI NtUserTranslateAccelerator( HWND hwnd, HACCEL accel, MSG *msg );
|
|
|
|
W32KAPI BOOL WINAPI NtUserTranslateMessage( const MSG *msg, UINT flags );
|
|
|
|
W32KAPI BOOL WINAPI NtUserUnhookWinEvent( HWINEVENTHOOK hEventHook );
|
|
|
|
W32KAPI BOOL WINAPI NtUserUnhookWindowsHookEx( HHOOK handle );
|
|
|
|
W32KAPI BOOL WINAPI NtUserUnregisterClass( UNICODE_STRING *name, HINSTANCE instance,
|
|
|
|
struct client_menu_name *client_menu_name );
|
|
|
|
W32KAPI BOOL WINAPI NtUserUnregisterHotKey( HWND hwnd, INT id );
|
|
|
|
W32KAPI BOOL WINAPI NtUserUpdateInputContext( HIMC handle, UINT attr, UINT_PTR value );
|
|
|
|
W32KAPI BOOL WINAPI NtUserUpdateLayeredWindow( HWND hwnd, HDC hdc_dst, const POINT *pts_dst, const SIZE *size,
|
|
|
|
HDC hdc_src, const POINT *pts_src, COLORREF key,
|
|
|
|
const BLENDFUNCTION *blend, DWORD flags, const RECT *dirty );
|
|
|
|
W32KAPI BOOL WINAPI NtUserValidateRect( HWND hwnd, const RECT *rect );
|
|
|
|
W32KAPI WORD WINAPI NtUserVkKeyScanEx( WCHAR chr, HKL layout );
|
|
|
|
W32KAPI DWORD WINAPI NtUserWaitForInputIdle( HANDLE process, DWORD timeout, BOOL wow );
|
|
|
|
W32KAPI BOOL WINAPI NtUserWaitMessage(void);
|
|
|
|
W32KAPI HWND WINAPI NtUserWindowFromDC( HDC hdc );
|
|
|
|
W32KAPI HWND WINAPI NtUserWindowFromPoint( LONG x, LONG y );
|
2021-10-12 14:42:35 +00:00
|
|
|
|
2022-04-13 13:06:44 +00:00
|
|
|
/* NtUserCallNoParam codes, not compatible with Windows */
|
|
|
|
enum
|
|
|
|
{
|
2022-04-26 15:06:04 +00:00
|
|
|
NtUserCallNoParam_DestroyCaret,
|
2022-04-13 13:06:44 +00:00
|
|
|
NtUserCallNoParam_GetDesktopWindow,
|
2022-06-10 16:39:37 +00:00
|
|
|
NtUserCallNoParam_GetDialogBaseUnits,
|
2022-04-13 13:06:44 +00:00
|
|
|
NtUserCallNoParam_GetInputState,
|
2022-06-14 23:49:12 +00:00
|
|
|
NtUserCallNoParam_GetProcessDefaultLayout,
|
2022-12-09 11:51:15 +00:00
|
|
|
NtUserCallNoParam_GetProgmanWindow,
|
2022-12-09 11:36:22 +00:00
|
|
|
NtUserCallNoParam_GetShellWindow,
|
2022-12-09 11:56:06 +00:00
|
|
|
NtUserCallNoParam_GetTaskmanWindow,
|
2022-04-13 13:06:44 +00:00
|
|
|
NtUserCallNoParam_ReleaseCapture,
|
|
|
|
/* temporary exports */
|
|
|
|
NtUserExitingThread,
|
|
|
|
NtUserThreadDetach,
|
|
|
|
};
|
|
|
|
|
2022-04-26 15:06:04 +00:00
|
|
|
static inline BOOL NtUserDestroyCaret(void)
|
|
|
|
{
|
|
|
|
return NtUserCallNoParam( NtUserCallNoParam_DestroyCaret );
|
|
|
|
}
|
|
|
|
|
2022-04-13 13:06:44 +00:00
|
|
|
static inline HWND NtUserGetDesktopWindow(void)
|
|
|
|
{
|
|
|
|
return UlongToHandle( NtUserCallNoParam( NtUserCallNoParam_GetDesktopWindow ));
|
|
|
|
}
|
|
|
|
|
2022-06-10 16:39:37 +00:00
|
|
|
static inline DWORD NtUserGetDialogBaseUnits(void)
|
|
|
|
{
|
|
|
|
return NtUserCallNoParam( NtUserCallNoParam_GetDialogBaseUnits );
|
|
|
|
};
|
|
|
|
|
2022-04-13 13:06:44 +00:00
|
|
|
static inline BOOL NtUserGetInputState(void)
|
|
|
|
{
|
|
|
|
return NtUserCallNoParam( NtUserCallNoParam_GetInputState );
|
|
|
|
}
|
|
|
|
|
2022-06-14 23:49:12 +00:00
|
|
|
static inline DWORD NtUserGetProcessDefaultLayout(void)
|
|
|
|
{
|
|
|
|
return NtUserCallNoParam( NtUserCallNoParam_GetProcessDefaultLayout );
|
|
|
|
}
|
|
|
|
|
2022-12-09 11:51:15 +00:00
|
|
|
static inline HWND NtUserGetProgmanWindow(void)
|
|
|
|
{
|
|
|
|
return UlongToHandle( NtUserCallNoParam( NtUserCallNoParam_GetProgmanWindow ));
|
|
|
|
}
|
|
|
|
|
2022-12-09 11:36:22 +00:00
|
|
|
static inline HWND NtUserGetShellWindow(void)
|
|
|
|
{
|
|
|
|
return UlongToHandle( NtUserCallNoParam( NtUserCallNoParam_GetShellWindow ));
|
|
|
|
}
|
|
|
|
|
2022-12-09 11:56:06 +00:00
|
|
|
static inline HWND NtUserGetTaskmanWindow(void)
|
|
|
|
{
|
|
|
|
return UlongToHandle( NtUserCallNoParam( NtUserCallNoParam_GetTaskmanWindow ));
|
|
|
|
}
|
|
|
|
|
2022-04-13 13:06:44 +00:00
|
|
|
static inline BOOL NtUserReleaseCapture(void)
|
|
|
|
{
|
|
|
|
return NtUserCallNoParam( NtUserCallNoParam_ReleaseCapture );
|
|
|
|
}
|
|
|
|
|
2022-04-13 13:07:13 +00:00
|
|
|
/* NtUserCallOneParam codes, not compatible with Windows */
|
|
|
|
enum
|
|
|
|
{
|
|
|
|
NtUserCallOneParam_BeginDeferWindowPos,
|
|
|
|
NtUserCallOneParam_CreateCursorIcon,
|
2022-04-15 12:52:51 +00:00
|
|
|
NtUserCallOneParam_CreateMenu,
|
2022-04-13 13:07:13 +00:00
|
|
|
NtUserCallOneParam_EnableDC,
|
|
|
|
NtUserCallOneParam_EnableThunkLock,
|
2022-04-22 12:46:17 +00:00
|
|
|
NtUserCallOneParam_EnumClipboardFormats,
|
2022-04-13 13:07:13 +00:00
|
|
|
NtUserCallOneParam_GetClipCursor,
|
|
|
|
NtUserCallOneParam_GetCursorPos,
|
|
|
|
NtUserCallOneParam_GetIconParam,
|
2022-04-14 14:28:06 +00:00
|
|
|
NtUserCallOneParam_GetMenuItemCount,
|
2022-04-13 13:07:13 +00:00
|
|
|
NtUserCallOneParam_GetPrimaryMonitorRect,
|
|
|
|
NtUserCallOneParam_GetSysColor,
|
|
|
|
NtUserCallOneParam_GetSysColorBrush,
|
|
|
|
NtUserCallOneParam_GetSysColorPen,
|
|
|
|
NtUserCallOneParam_GetSystemMetrics,
|
|
|
|
NtUserCallOneParam_GetVirtualScreenRect,
|
2022-04-20 14:00:23 +00:00
|
|
|
NtUserCallOneParam_IsWindowRectFullScreen,
|
2022-04-13 13:07:13 +00:00
|
|
|
NtUserCallOneParam_MessageBeep,
|
|
|
|
NtUserCallOneParam_RealizePalette,
|
2022-08-12 11:01:38 +00:00
|
|
|
NtUserCallOneParam_ReplyMessage,
|
2022-04-26 15:06:04 +00:00
|
|
|
NtUserCallOneParam_SetCaretBlinkTime,
|
2022-06-14 23:49:12 +00:00
|
|
|
NtUserCallOneParam_SetProcessDefaultLayout,
|
2023-10-11 14:17:14 +00:00
|
|
|
NtUserCallOneParam_SetKeyboardAutoRepeat,
|
2022-04-13 13:07:13 +00:00
|
|
|
/* temporary exports */
|
|
|
|
NtUserGetDeskPattern,
|
|
|
|
};
|
|
|
|
|
|
|
|
static inline HDWP NtUserBeginDeferWindowPos( INT count )
|
|
|
|
{
|
|
|
|
return UlongToHandle( NtUserCallOneParam( count, NtUserCallOneParam_BeginDeferWindowPos ));
|
|
|
|
}
|
|
|
|
|
|
|
|
static inline HICON NtUserCreateCursorIcon( BOOL is_icon )
|
|
|
|
{
|
|
|
|
return UlongToHandle( NtUserCallOneParam( is_icon, NtUserCallOneParam_CreateCursorIcon ));
|
|
|
|
}
|
|
|
|
|
2022-04-15 12:52:51 +00:00
|
|
|
static inline HMENU NtUserCreateMenu( BOOL is_popup )
|
|
|
|
{
|
|
|
|
return UlongToHandle( NtUserCallOneParam( is_popup, NtUserCallOneParam_CreateMenu ));
|
|
|
|
}
|
|
|
|
|
2022-04-13 13:07:13 +00:00
|
|
|
static inline WORD NtUserEnableDC( HDC hdc )
|
|
|
|
{
|
|
|
|
return NtUserCallOneParam( HandleToUlong(hdc), NtUserCallOneParam_EnableDC );
|
|
|
|
}
|
|
|
|
|
|
|
|
static inline void NtUserEnableThunkLock( BOOL enable )
|
|
|
|
{
|
|
|
|
NtUserCallOneParam( enable, NtUserCallOneParam_EnableThunkLock );
|
|
|
|
}
|
|
|
|
|
2022-04-22 12:46:17 +00:00
|
|
|
static inline UINT NtUserEnumClipboardFormats( UINT format )
|
|
|
|
{
|
|
|
|
return NtUserCallOneParam( format, NtUserCallOneParam_EnumClipboardFormats );
|
|
|
|
}
|
|
|
|
|
2022-04-13 13:07:13 +00:00
|
|
|
static inline BOOL NtUserGetClipCursor( RECT *rect )
|
|
|
|
{
|
|
|
|
return NtUserCallOneParam( (UINT_PTR)rect, NtUserCallOneParam_GetClipCursor );
|
|
|
|
}
|
|
|
|
|
|
|
|
static inline BOOL NtUserGetCursorPos( POINT *pt )
|
|
|
|
{
|
|
|
|
return NtUserCallOneParam( (UINT_PTR)pt, NtUserCallOneParam_GetCursorPos );
|
|
|
|
}
|
|
|
|
|
|
|
|
static inline UINT_PTR NtUserGetIconParam( HICON icon )
|
|
|
|
{
|
|
|
|
return NtUserCallOneParam( HandleToUlong(icon), NtUserCallOneParam_GetIconParam );
|
|
|
|
}
|
|
|
|
|
2022-04-14 14:28:06 +00:00
|
|
|
static inline UINT_PTR NtUserGetMenuItemCount( HMENU menu )
|
|
|
|
{
|
|
|
|
return NtUserCallOneParam( HandleToUlong(menu), NtUserCallOneParam_GetMenuItemCount );
|
|
|
|
}
|
|
|
|
|
2022-04-13 13:07:13 +00:00
|
|
|
static inline RECT NtUserGetPrimaryMonitorRect(void)
|
|
|
|
{
|
|
|
|
RECT primary;
|
|
|
|
NtUserCallOneParam( (UINT_PTR)&primary, NtUserCallOneParam_GetPrimaryMonitorRect );
|
|
|
|
return primary;
|
|
|
|
}
|
|
|
|
|
2022-04-26 15:06:04 +00:00
|
|
|
static inline BOOL NtUserSetCaretBlinkTime( unsigned int time )
|
|
|
|
{
|
|
|
|
return NtUserCallOneParam( time, NtUserCallOneParam_SetCaretBlinkTime );
|
|
|
|
}
|
|
|
|
|
2022-04-13 13:07:13 +00:00
|
|
|
static inline COLORREF NtUserGetSysColor( INT index )
|
|
|
|
{
|
|
|
|
return NtUserCallOneParam( index, NtUserCallOneParam_GetSysColor );
|
|
|
|
}
|
|
|
|
|
|
|
|
static inline HBRUSH NtUserGetSysColorBrush( INT index )
|
|
|
|
{
|
|
|
|
return UlongToHandle( NtUserCallOneParam( index, NtUserCallOneParam_GetSysColorBrush ));
|
|
|
|
}
|
|
|
|
|
|
|
|
static inline HPEN NtUserGetSysColorPen( INT index )
|
|
|
|
{
|
|
|
|
return UlongToHandle( NtUserCallOneParam( index, NtUserCallOneParam_GetSysColorPen ));
|
|
|
|
}
|
|
|
|
|
|
|
|
static inline INT NtUserGetSystemMetrics( INT index )
|
|
|
|
{
|
|
|
|
return NtUserCallOneParam( index, NtUserCallOneParam_GetSystemMetrics );
|
|
|
|
}
|
|
|
|
|
|
|
|
static inline RECT NtUserGetVirtualScreenRect(void)
|
|
|
|
{
|
|
|
|
RECT virtual;
|
|
|
|
NtUserCallOneParam( (UINT_PTR)&virtual, NtUserCallOneParam_GetVirtualScreenRect );
|
|
|
|
return virtual;
|
|
|
|
}
|
|
|
|
|
2022-04-20 14:00:23 +00:00
|
|
|
static inline BOOL NtUserIsWindowRectFullScreen( const RECT *rect )
|
|
|
|
{
|
|
|
|
return NtUserCallOneParam( (UINT_PTR)rect, NtUserCallOneParam_IsWindowRectFullScreen );
|
|
|
|
}
|
|
|
|
|
2022-04-13 13:07:13 +00:00
|
|
|
static inline BOOL NtUserMessageBeep( UINT i )
|
|
|
|
{
|
|
|
|
return NtUserCallOneParam( i, NtUserCallOneParam_MessageBeep );
|
|
|
|
}
|
|
|
|
|
|
|
|
static inline UINT NtUserRealizePalette( HDC hdc )
|
|
|
|
{
|
|
|
|
return NtUserCallOneParam( HandleToUlong(hdc), NtUserCallOneParam_RealizePalette );
|
|
|
|
}
|
|
|
|
|
2022-08-12 11:01:38 +00:00
|
|
|
static inline BOOL NtUserReplyMessage( LRESULT result )
|
|
|
|
{
|
|
|
|
return NtUserCallOneParam( result, NtUserCallOneParam_ReplyMessage );
|
|
|
|
}
|
|
|
|
|
2022-06-14 23:49:12 +00:00
|
|
|
static inline UINT NtUserSetProcessDefaultLayout( DWORD layout )
|
|
|
|
{
|
|
|
|
return NtUserCallOneParam( layout, NtUserCallOneParam_SetProcessDefaultLayout );
|
|
|
|
}
|
|
|
|
|
2022-04-13 13:07:48 +00:00
|
|
|
/* NtUserCallTwoParam codes, not compatible with Windows */
|
|
|
|
enum
|
|
|
|
{
|
2022-08-17 22:19:57 +00:00
|
|
|
NtUserCallTwoParam_GetDialogProc,
|
2022-04-20 13:58:00 +00:00
|
|
|
NtUserCallTwoParam_GetMenuInfo,
|
2022-04-13 13:07:48 +00:00
|
|
|
NtUserCallTwoParam_GetMonitorInfo,
|
|
|
|
NtUserCallTwoParam_GetSystemMetricsForDpi,
|
|
|
|
NtUserCallTwoParam_MonitorFromRect,
|
2022-04-26 15:06:04 +00:00
|
|
|
NtUserCallTwoParam_SetCaretPos,
|
2022-04-13 13:07:48 +00:00
|
|
|
NtUserCallTwoParam_SetIconParam,
|
|
|
|
NtUserCallTwoParam_UnhookWindowsHook,
|
|
|
|
/* temporary exports */
|
|
|
|
NtUserAllocWinProc,
|
|
|
|
};
|
|
|
|
|
2022-08-17 22:19:57 +00:00
|
|
|
static inline DLGPROC NtUserGetDialogProc( DLGPROC proc, BOOL ansi )
|
|
|
|
{
|
|
|
|
return (DLGPROC)NtUserCallTwoParam( (UINT_PTR)proc, ansi, NtUserCallTwoParam_GetDialogProc );
|
|
|
|
}
|
|
|
|
|
2022-04-20 13:58:00 +00:00
|
|
|
static inline BOOL NtUserGetMenuInfo( HMENU menu, MENUINFO *info )
|
|
|
|
{
|
|
|
|
return NtUserCallTwoParam( HandleToUlong(menu), (ULONG_PTR)info,
|
|
|
|
NtUserCallTwoParam_GetMenuInfo );
|
|
|
|
}
|
|
|
|
|
2022-04-13 13:07:48 +00:00
|
|
|
static inline BOOL NtUserGetMonitorInfo( HMONITOR monitor, MONITORINFO *info )
|
|
|
|
{
|
|
|
|
return NtUserCallTwoParam( HandleToUlong(monitor), (ULONG_PTR)info,
|
|
|
|
NtUserCallTwoParam_GetMonitorInfo );
|
|
|
|
}
|
|
|
|
|
|
|
|
static inline INT NtUserGetSystemMetricsForDpi( INT index, UINT dpi )
|
|
|
|
{
|
|
|
|
return NtUserCallTwoParam( index, dpi, NtUserCallTwoParam_GetSystemMetricsForDpi );
|
|
|
|
}
|
|
|
|
|
|
|
|
static inline HMONITOR NtUserMonitorFromRect( const RECT *rect, DWORD flags )
|
|
|
|
{
|
|
|
|
ULONG ret = NtUserCallTwoParam( (LONG_PTR)rect, flags, NtUserCallTwoParam_MonitorFromRect );
|
|
|
|
return UlongToHandle( ret );
|
|
|
|
}
|
|
|
|
|
2022-04-26 15:06:04 +00:00
|
|
|
static inline BOOL NtUserSetCaretPos( int x, int y )
|
|
|
|
{
|
|
|
|
return NtUserCallTwoParam( x, y, NtUserCallTwoParam_SetCaretPos );
|
|
|
|
}
|
|
|
|
|
2022-04-13 13:07:48 +00:00
|
|
|
static inline UINT_PTR NtUserSetIconParam( HICON icon, ULONG_PTR param )
|
|
|
|
{
|
|
|
|
return NtUserCallTwoParam( HandleToUlong(icon), param, NtUserCallTwoParam_SetIconParam );
|
|
|
|
}
|
|
|
|
|
|
|
|
static inline BOOL NtUserUnhookWindowsHook( INT id, HOOKPROC proc )
|
|
|
|
{
|
|
|
|
return NtUserCallTwoParam( id, (UINT_PTR)proc, NtUserCallTwoParam_UnhookWindowsHook );
|
|
|
|
}
|
|
|
|
|
2022-04-13 13:08:02 +00:00
|
|
|
/* NtUserCallHwnd codes, not compatible with Windows */
|
|
|
|
enum
|
|
|
|
{
|
2022-08-26 09:55:13 +00:00
|
|
|
NtUserCallHwnd_ActivateOtherWindow,
|
2022-04-13 13:08:02 +00:00
|
|
|
NtUserCallHwnd_ArrangeIconicWindows,
|
2022-04-15 12:53:43 +00:00
|
|
|
NtUserCallHwnd_DrawMenuBar,
|
2022-07-08 23:17:54 +00:00
|
|
|
NtUserCallHwnd_GetDefaultImeWindow,
|
2022-07-26 17:12:12 +00:00
|
|
|
NtUserCallHwnd_GetDialogInfo,
|
2022-04-13 13:08:02 +00:00
|
|
|
NtUserCallHwnd_GetDpiForWindow,
|
2022-07-28 19:26:31 +00:00
|
|
|
NtUserCallHwnd_GetMDIClientInfo,
|
2022-04-13 13:08:02 +00:00
|
|
|
NtUserCallHwnd_GetParent,
|
|
|
|
NtUserCallHwnd_GetWindowContextHelpId,
|
|
|
|
NtUserCallHwnd_GetWindowDpiAwarenessContext,
|
2022-07-08 18:09:26 +00:00
|
|
|
NtUserCallHwnd_GetWindowInputContext,
|
2022-07-28 17:21:53 +00:00
|
|
|
NtUserCallHwnd_GetWindowSysSubMenu,
|
2022-04-13 13:08:02 +00:00
|
|
|
NtUserCallHwnd_GetWindowTextLength,
|
|
|
|
NtUserCallHwnd_IsWindow,
|
|
|
|
NtUserCallHwnd_IsWindowEnabled,
|
|
|
|
NtUserCallHwnd_IsWindowUnicode,
|
|
|
|
NtUserCallHwnd_IsWindowVisible,
|
2022-06-15 11:30:32 +00:00
|
|
|
NtUserCallHwnd_SetForegroundWindow,
|
2022-12-09 11:48:35 +00:00
|
|
|
NtUserCallHwnd_SetProgmanWindow,
|
2022-12-09 11:54:07 +00:00
|
|
|
NtUserCallHwnd_SetTaskmanWindow,
|
2022-07-26 14:08:55 +00:00
|
|
|
/* temporary exports */
|
|
|
|
NtUserGetFullWindowHandle,
|
2023-10-10 15:27:46 +00:00
|
|
|
NtUserIsCurrentProcessWindow,
|
|
|
|
NtUserIsCurrentThreadWindow,
|
2022-04-13 13:08:02 +00:00
|
|
|
};
|
|
|
|
|
2022-08-26 09:55:13 +00:00
|
|
|
static inline void NtUserActivateOtherWindow( HWND hwnd )
|
|
|
|
{
|
|
|
|
NtUserCallHwnd( hwnd, NtUserCallHwnd_ActivateOtherWindow );
|
|
|
|
}
|
|
|
|
|
2022-04-13 13:08:02 +00:00
|
|
|
static inline UINT NtUserArrangeIconicWindows( HWND parent )
|
|
|
|
{
|
|
|
|
return NtUserCallHwnd( parent, NtUserCallHwnd_ArrangeIconicWindows );
|
|
|
|
}
|
|
|
|
|
2022-04-15 12:53:43 +00:00
|
|
|
static inline BOOL NtUserDrawMenuBar( HWND hwnd )
|
|
|
|
{
|
|
|
|
return NtUserCallHwnd( hwnd, NtUserCallHwnd_DrawMenuBar );
|
|
|
|
}
|
|
|
|
|
2022-04-13 13:08:02 +00:00
|
|
|
static inline DWORD NtUserGetWindowContextHelpId( HWND hwnd )
|
|
|
|
{
|
|
|
|
return NtUserCallHwnd( hwnd, NtUserCallHwnd_GetWindowContextHelpId );
|
|
|
|
}
|
|
|
|
|
2022-07-08 23:17:54 +00:00
|
|
|
static inline HWND NtUserGetDefaultImeWindow( HWND hwnd )
|
|
|
|
{
|
|
|
|
return UlongToHandle( NtUserCallHwnd( hwnd, NtUserCallHwnd_GetDefaultImeWindow ));
|
|
|
|
}
|
|
|
|
|
2022-07-26 17:12:12 +00:00
|
|
|
static inline void *NtUserGetDialogInfo( HWND hwnd )
|
|
|
|
{
|
|
|
|
return (void *)NtUserCallHwnd( hwnd, NtUserCallHwnd_GetDialogInfo );
|
|
|
|
}
|
|
|
|
|
2022-04-13 13:08:02 +00:00
|
|
|
static inline UINT NtUserGetDpiForWindow( HWND hwnd )
|
|
|
|
{
|
|
|
|
return NtUserCallHwnd( hwnd, NtUserCallHwnd_GetDpiForWindow );
|
|
|
|
}
|
|
|
|
|
2022-07-28 19:26:31 +00:00
|
|
|
static inline void *NtUserGetMDIClientInfo( HWND hwnd )
|
|
|
|
{
|
|
|
|
return (void *)NtUserCallHwnd( hwnd, NtUserCallHwnd_GetMDIClientInfo );
|
|
|
|
}
|
|
|
|
|
2022-04-13 13:08:02 +00:00
|
|
|
static inline HWND NtUserGetParent( HWND hwnd )
|
|
|
|
{
|
|
|
|
return UlongToHandle( NtUserCallHwnd( hwnd, NtUserCallHwnd_GetParent ));
|
|
|
|
}
|
|
|
|
|
|
|
|
static inline DPI_AWARENESS_CONTEXT NtUserGetWindowDpiAwarenessContext( HWND hwnd )
|
|
|
|
{
|
|
|
|
return (DPI_AWARENESS_CONTEXT)NtUserCallHwnd( hwnd,
|
|
|
|
NtUserCallHwnd_GetWindowDpiAwarenessContext );
|
|
|
|
}
|
|
|
|
|
2022-07-08 18:09:26 +00:00
|
|
|
static inline HIMC NtUserGetWindowInputContext( HWND hwnd )
|
|
|
|
{
|
|
|
|
return UlongToHandle( NtUserCallHwnd( hwnd, NtUserCallHwnd_GetWindowInputContext ));
|
|
|
|
}
|
|
|
|
|
2022-07-28 17:21:53 +00:00
|
|
|
static inline HMENU NtUserGetWindowSysSubMenu( HWND hwnd )
|
|
|
|
{
|
|
|
|
return UlongToHandle( NtUserCallHwnd( hwnd, NtUserCallHwnd_GetWindowSysSubMenu ));
|
|
|
|
}
|
|
|
|
|
2022-04-13 13:08:02 +00:00
|
|
|
static inline INT NtUserGetWindowTextLength( HWND hwnd )
|
|
|
|
{
|
|
|
|
return NtUserCallHwnd( hwnd, NtUserCallHwnd_GetWindowTextLength );
|
|
|
|
}
|
|
|
|
|
|
|
|
static inline BOOL NtUserIsWindow( HWND hwnd )
|
|
|
|
{
|
|
|
|
return NtUserCallHwnd( hwnd, NtUserCallHwnd_IsWindow );
|
|
|
|
}
|
|
|
|
|
|
|
|
static inline BOOL NtUserIsWindowEnabled( HWND hwnd )
|
|
|
|
{
|
|
|
|
return NtUserCallHwnd( hwnd, NtUserCallHwnd_IsWindowEnabled );
|
|
|
|
}
|
|
|
|
|
|
|
|
static inline BOOL NtUserIsWindowUnicode( HWND hwnd )
|
|
|
|
{
|
|
|
|
return NtUserCallHwnd( hwnd, NtUserCallHwnd_IsWindowUnicode );
|
|
|
|
}
|
|
|
|
|
|
|
|
static inline BOOL NtUserIsWindowVisible( HWND hwnd )
|
|
|
|
{
|
|
|
|
return NtUserCallHwnd( hwnd, NtUserCallHwnd_IsWindowVisible );
|
|
|
|
}
|
|
|
|
|
2022-06-15 11:30:32 +00:00
|
|
|
static inline BOOL NtUserSetForegroundWindow( HWND hwnd )
|
|
|
|
{
|
|
|
|
return NtUserCallHwnd( hwnd, NtUserCallHwnd_SetForegroundWindow );
|
|
|
|
}
|
|
|
|
|
2022-12-09 11:48:35 +00:00
|
|
|
static inline HWND NtUserSetProgmanWindow( HWND hwnd )
|
|
|
|
{
|
|
|
|
return UlongToHandle( NtUserCallHwnd( hwnd, NtUserCallHwnd_SetProgmanWindow ));
|
|
|
|
}
|
|
|
|
|
2022-12-09 11:54:07 +00:00
|
|
|
static inline HWND NtUserSetTaskmanWindow( HWND hwnd )
|
|
|
|
{
|
|
|
|
return UlongToHandle( NtUserCallHwnd( hwnd, NtUserCallHwnd_SetTaskmanWindow ));
|
|
|
|
}
|
|
|
|
|
2022-04-13 13:08:21 +00:00
|
|
|
/* NtUserCallHwndParam codes, not compatible with Windows */
|
|
|
|
enum
|
|
|
|
{
|
2022-04-14 12:11:31 +00:00
|
|
|
NtUserCallHwndParam_ClientToScreen,
|
2022-04-14 12:10:56 +00:00
|
|
|
NtUserCallHwndParam_EnableWindow,
|
2022-07-29 17:44:39 +00:00
|
|
|
NtUserCallHwndParam_GetChildRect,
|
2022-04-13 13:08:21 +00:00
|
|
|
NtUserCallHwndParam_GetClassLongA,
|
|
|
|
NtUserCallHwndParam_GetClassLongW,
|
|
|
|
NtUserCallHwndParam_GetClassLongPtrA,
|
|
|
|
NtUserCallHwndParam_GetClassLongPtrW,
|
|
|
|
NtUserCallHwndParam_GetClassWord,
|
|
|
|
NtUserCallHwndParam_GetClientRect,
|
2022-06-30 15:12:46 +00:00
|
|
|
NtUserCallHwndParam_GetScrollInfo,
|
2022-04-13 13:08:21 +00:00
|
|
|
NtUserCallHwndParam_GetWindowInfo,
|
|
|
|
NtUserCallHwndParam_GetWindowLongA,
|
|
|
|
NtUserCallHwndParam_GetWindowLongW,
|
|
|
|
NtUserCallHwndParam_GetWindowLongPtrA,
|
|
|
|
NtUserCallHwndParam_GetWindowLongPtrW,
|
|
|
|
NtUserCallHwndParam_GetWindowRect,
|
|
|
|
NtUserCallHwndParam_GetWindowRelative,
|
|
|
|
NtUserCallHwndParam_GetWindowThread,
|
|
|
|
NtUserCallHwndParam_GetWindowWord,
|
|
|
|
NtUserCallHwndParam_IsChild,
|
|
|
|
NtUserCallHwndParam_KillSystemTimer,
|
2022-04-14 12:11:09 +00:00
|
|
|
NtUserCallHwndParam_MapWindowPoints,
|
2022-04-13 13:08:21 +00:00
|
|
|
NtUserCallHwndParam_MirrorRgn,
|
|
|
|
NtUserCallHwndParam_MonitorFromWindow,
|
|
|
|
NtUserCallHwndParam_ScreenToClient,
|
2022-07-26 17:12:12 +00:00
|
|
|
NtUserCallHwndParam_SetDialogInfo,
|
2022-07-28 19:26:31 +00:00
|
|
|
NtUserCallHwndParam_SetMDIClientInfo,
|
2022-06-08 18:15:02 +00:00
|
|
|
NtUserCallHwndParam_SetWindowContextHelpId,
|
2022-04-15 12:54:04 +00:00
|
|
|
NtUserCallHwndParam_ShowOwnedPopups,
|
2022-04-13 13:08:21 +00:00
|
|
|
/* temporary exports */
|
|
|
|
NtUserSetWindowStyle,
|
|
|
|
};
|
|
|
|
|
2022-04-14 12:11:31 +00:00
|
|
|
static inline BOOL NtUserClientToScreen( HWND hwnd, POINT *pt )
|
|
|
|
{
|
|
|
|
return NtUserCallHwndParam( hwnd, (UINT_PTR)pt, NtUserCallHwndParam_ClientToScreen );
|
|
|
|
}
|
|
|
|
|
2022-04-14 12:10:56 +00:00
|
|
|
static inline BOOL NtUserEnableWindow( HWND hwnd, BOOL enable )
|
|
|
|
{
|
|
|
|
return NtUserCallHwndParam( hwnd, enable, NtUserCallHwndParam_EnableWindow );
|
|
|
|
}
|
|
|
|
|
2022-07-29 17:44:39 +00:00
|
|
|
static inline BOOL NtUserGetChildRect( HWND hwnd, RECT *rect )
|
|
|
|
{
|
|
|
|
return NtUserCallHwndParam( hwnd, (UINT_PTR)rect, NtUserCallHwndParam_GetChildRect );
|
|
|
|
}
|
|
|
|
|
2022-04-13 13:08:21 +00:00
|
|
|
static inline DWORD NtUserGetClassLongA( HWND hwnd, INT offset )
|
|
|
|
{
|
|
|
|
return NtUserCallHwndParam( hwnd, offset, NtUserCallHwndParam_GetClassLongA );
|
|
|
|
}
|
|
|
|
|
|
|
|
static inline ULONG_PTR NtUserGetClassLongPtrA( HWND hwnd, INT offset )
|
|
|
|
{
|
|
|
|
return NtUserCallHwndParam( hwnd, offset, NtUserCallHwndParam_GetClassLongPtrA );
|
|
|
|
}
|
|
|
|
|
|
|
|
static inline ULONG_PTR NtUserGetClassLongPtrW( HWND hwnd, INT offset )
|
|
|
|
{
|
|
|
|
return NtUserCallHwndParam( hwnd, offset, NtUserCallHwndParam_GetClassLongPtrW );
|
|
|
|
}
|
|
|
|
|
|
|
|
static inline DWORD NtUserGetClassLongW( HWND hwnd, INT offset )
|
|
|
|
{
|
|
|
|
return NtUserCallHwndParam( hwnd, offset, NtUserCallHwndParam_GetClassLongW );
|
|
|
|
}
|
|
|
|
|
|
|
|
static inline WORD NtUserGetClassWord( HWND hwnd, INT offset )
|
|
|
|
{
|
|
|
|
return NtUserCallHwndParam( hwnd, offset, NtUserCallHwndParam_GetClassWord );
|
|
|
|
}
|
|
|
|
|
|
|
|
static inline BOOL NtUserGetClientRect( HWND hwnd, RECT *rect )
|
|
|
|
{
|
|
|
|
return NtUserCallHwndParam( hwnd, (UINT_PTR)rect, NtUserCallHwndParam_GetClientRect );
|
|
|
|
}
|
|
|
|
|
2022-06-30 15:12:46 +00:00
|
|
|
struct get_scroll_info_params
|
|
|
|
{
|
|
|
|
int bar;
|
|
|
|
SCROLLINFO *info;
|
|
|
|
};
|
|
|
|
|
|
|
|
static inline BOOL NtUserGetScrollInfo( HWND hwnd, INT bar, SCROLLINFO *info )
|
|
|
|
{
|
|
|
|
struct get_scroll_info_params params = { .bar = bar, .info = info };
|
|
|
|
return NtUserCallHwndParam( hwnd, (UINT_PTR)¶ms, NtUserCallHwndParam_GetScrollInfo );
|
|
|
|
}
|
|
|
|
|
2022-04-13 13:08:21 +00:00
|
|
|
static inline BOOL NtUserGetWindowInfo( HWND hwnd, WINDOWINFO *info )
|
|
|
|
{
|
|
|
|
return NtUserCallHwndParam( hwnd, (UINT_PTR)info, NtUserCallHwndParam_GetWindowInfo );
|
|
|
|
}
|
|
|
|
|
|
|
|
static inline LONG NtUserGetWindowLongA( HWND hwnd, INT offset )
|
|
|
|
{
|
|
|
|
return NtUserCallHwndParam( hwnd, offset, NtUserCallHwndParam_GetWindowLongA );
|
|
|
|
}
|
|
|
|
|
|
|
|
static inline LONG_PTR NtUserGetWindowLongPtrA( HWND hwnd, INT offset )
|
|
|
|
{
|
|
|
|
return NtUserCallHwndParam( hwnd, offset, NtUserCallHwndParam_GetWindowLongPtrA );
|
|
|
|
}
|
|
|
|
|
|
|
|
static inline LONG_PTR NtUserGetWindowLongPtrW( HWND hwnd, INT offset )
|
|
|
|
{
|
|
|
|
return NtUserCallHwndParam( hwnd, offset, NtUserCallHwndParam_GetWindowLongPtrW );
|
|
|
|
}
|
|
|
|
|
|
|
|
static inline LONG NtUserGetWindowLongW( HWND hwnd, INT offset )
|
|
|
|
{
|
|
|
|
return NtUserCallHwndParam( hwnd, offset, NtUserCallHwndParam_GetWindowLongW );
|
|
|
|
}
|
|
|
|
|
|
|
|
static inline BOOL NtUserGetWindowRect( HWND hwnd, RECT *rect )
|
|
|
|
{
|
|
|
|
return NtUserCallHwndParam( hwnd, (UINT_PTR)rect, NtUserCallHwndParam_GetWindowRect );
|
|
|
|
}
|
|
|
|
|
|
|
|
static inline HWND NtUserGetWindowRelative( HWND hwnd, UINT rel )
|
|
|
|
{
|
|
|
|
return UlongToHandle( NtUserCallHwndParam( hwnd, rel,
|
|
|
|
NtUserCallHwndParam_GetWindowRelative ));
|
|
|
|
}
|
|
|
|
|
|
|
|
static inline DWORD NtUserGetWindowThread( HWND hwnd, DWORD *process )
|
|
|
|
{
|
|
|
|
return NtUserCallHwndParam( hwnd, (UINT_PTR)process, NtUserCallHwndParam_GetWindowThread );
|
|
|
|
}
|
|
|
|
|
|
|
|
static inline WORD NtUserGetWindowWord( HWND hwnd, INT offset )
|
|
|
|
{
|
|
|
|
return NtUserCallHwndParam( hwnd, offset, NtUserCallHwndParam_GetWindowWord );
|
|
|
|
}
|
|
|
|
|
|
|
|
static inline BOOL NtUserIsChild( HWND parent, HWND child )
|
|
|
|
{
|
|
|
|
return NtUserCallHwndParam( parent, HandleToUlong(child), NtUserCallHwndParam_IsChild );
|
|
|
|
}
|
|
|
|
|
|
|
|
static inline BOOL NtUserKillSystemTimer( HWND hwnd, UINT_PTR id )
|
|
|
|
{
|
|
|
|
return NtUserCallHwndParam( hwnd, id, NtUserCallHwndParam_KillSystemTimer );
|
|
|
|
}
|
|
|
|
|
2022-04-14 12:11:09 +00:00
|
|
|
struct map_window_points_params
|
|
|
|
{
|
|
|
|
HWND hwnd_to;
|
|
|
|
POINT *points;
|
|
|
|
UINT count;
|
|
|
|
};
|
|
|
|
|
|
|
|
static inline int NtUserMapWindowPoints( HWND hwnd_from, HWND hwnd_to, POINT *points, UINT count )
|
|
|
|
{
|
|
|
|
struct map_window_points_params params;
|
|
|
|
params.hwnd_to = hwnd_to;
|
|
|
|
params.points = points;
|
|
|
|
params.count = count;
|
|
|
|
return NtUserCallHwndParam( hwnd_from, (UINT_PTR)¶ms,
|
|
|
|
NtUserCallHwndParam_MapWindowPoints );
|
|
|
|
}
|
|
|
|
|
2022-04-13 13:08:21 +00:00
|
|
|
static inline BOOL NtUserMirrorRgn( HWND hwnd, HRGN hrgn )
|
|
|
|
{
|
|
|
|
return NtUserCallHwndParam( hwnd, HandleToUlong(hrgn), NtUserCallHwndParam_MirrorRgn );
|
|
|
|
}
|
|
|
|
|
|
|
|
static inline HMONITOR NtUserMonitorFromWindow( HWND hwnd, DWORD flags )
|
|
|
|
{
|
|
|
|
ULONG ret = NtUserCallHwndParam( hwnd, flags, NtUserCallHwndParam_MonitorFromWindow );
|
|
|
|
return UlongToHandle( ret );
|
|
|
|
}
|
|
|
|
|
|
|
|
static inline BOOL NtUserScreenToClient( HWND hwnd, POINT *pt )
|
|
|
|
{
|
|
|
|
return NtUserCallHwndParam( hwnd, (UINT_PTR)pt, NtUserCallHwndParam_ScreenToClient );
|
|
|
|
}
|
|
|
|
|
2022-07-26 17:12:12 +00:00
|
|
|
static inline void NtUserSetDialogInfo( HWND hwnd, void *info )
|
|
|
|
{
|
|
|
|
NtUserCallHwndParam( hwnd, (UINT_PTR)info, NtUserCallHwndParam_SetDialogInfo );
|
|
|
|
}
|
|
|
|
|
2022-07-28 19:26:31 +00:00
|
|
|
static inline void NtUserSetMDIClientInfo( HWND hwnd, void *info )
|
|
|
|
{
|
|
|
|
NtUserCallHwndParam( hwnd, (UINT_PTR)info, NtUserCallHwndParam_SetMDIClientInfo );
|
|
|
|
}
|
|
|
|
|
2022-06-08 18:15:02 +00:00
|
|
|
static inline BOOL NtUserSetWindowContextHelpId( HWND hwnd, DWORD id )
|
|
|
|
{
|
|
|
|
return NtUserCallHwndParam( hwnd, id, NtUserCallHwndParam_SetWindowContextHelpId );
|
|
|
|
}
|
|
|
|
|
2022-04-15 12:54:04 +00:00
|
|
|
static inline BOOL NtUserShowOwnedPopups( HWND hwnd, BOOL show )
|
|
|
|
{
|
|
|
|
return NtUserCallHwndParam( hwnd, show, NtUserCallHwndParam_ShowOwnedPopups );
|
|
|
|
}
|
|
|
|
|
2023-05-27 16:49:50 +00:00
|
|
|
/* Wine extensions */
|
2023-11-03 16:33:59 +00:00
|
|
|
W32KAPI BOOL WINAPI __wine_send_input( HWND hwnd, const INPUT *input, const RAWINPUT *rawinput );
|
2023-05-27 16:49:50 +00:00
|
|
|
|
2021-10-12 14:42:35 +00:00
|
|
|
#endif /* _NTUSER_ */
|