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>
|
2021-10-12 14:42:35 +00:00
|
|
|
#include <winternl.h>
|
|
|
|
|
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,
|
|
|
|
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;
|
|
|
|
LRESULT *result;
|
|
|
|
BOOL ansi;
|
|
|
|
BOOL ansi_dst;
|
2022-03-31 13:36:15 +00:00
|
|
|
BOOL needs_unpack;
|
2022-03-23 13:00:21 +00:00
|
|
|
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;
|
2022-08-16 10:35:09 +00:00
|
|
|
UINT lparam_size;
|
2022-02-25 15:02:12 +00:00
|
|
|
BOOL prev_unicode;
|
|
|
|
BOOL next_unicode;
|
|
|
|
};
|
|
|
|
|
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;
|
|
|
|
RECT *ret_rect; /* FIXME: Use NtCallbackReturn instead */
|
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
|
|
|
|
|
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,
|
2022-09-17 16:52:24 +00:00
|
|
|
NtUserSendDriverMessage = 0x3002,
|
|
|
|
NtUserSpyGetMsgName = 0x3003,
|
|
|
|
NtUserSpyEnter = 0x0304,
|
|
|
|
NtUserSpyExit = 0x0305,
|
|
|
|
NtUserWinProcResult = 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_CLIPCURSOR,
|
|
|
|
WM_WINE_UPDATEWINDOWSTATE,
|
|
|
|
WM_WINE_FIRST_DRIVER_MSG = 0x80001000, /* range of messages reserved for the USER driver */
|
|
|
|
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
|
|
|
|
|
2022-07-29 19:41:44 +00:00
|
|
|
#define WM_SYSTIMER 0x0118
|
|
|
|
|
2022-03-31 13:36:02 +00:00
|
|
|
/* the various structures that can be sent in messages, in platform-independent layout */
|
|
|
|
struct packed_CREATESTRUCTW
|
|
|
|
{
|
|
|
|
ULONGLONG lpCreateParams;
|
|
|
|
ULONGLONG hInstance;
|
|
|
|
UINT hMenu;
|
|
|
|
DWORD __pad1;
|
|
|
|
UINT hwndParent;
|
|
|
|
DWORD __pad2;
|
|
|
|
INT cy;
|
|
|
|
INT cx;
|
|
|
|
INT y;
|
|
|
|
INT x;
|
|
|
|
LONG style;
|
|
|
|
ULONGLONG lpszName;
|
|
|
|
ULONGLONG lpszClass;
|
|
|
|
DWORD dwExStyle;
|
|
|
|
DWORD __pad3;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct packed_DRAWITEMSTRUCT
|
|
|
|
{
|
|
|
|
UINT CtlType;
|
|
|
|
UINT CtlID;
|
|
|
|
UINT itemID;
|
|
|
|
UINT itemAction;
|
|
|
|
UINT itemState;
|
|
|
|
UINT hwndItem;
|
|
|
|
DWORD __pad1;
|
|
|
|
UINT hDC;
|
|
|
|
DWORD __pad2;
|
|
|
|
RECT rcItem;
|
|
|
|
ULONGLONG itemData;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct packed_MEASUREITEMSTRUCT
|
|
|
|
{
|
|
|
|
UINT CtlType;
|
|
|
|
UINT CtlID;
|
|
|
|
UINT itemID;
|
|
|
|
UINT itemWidth;
|
|
|
|
UINT itemHeight;
|
|
|
|
ULONGLONG itemData;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct packed_DELETEITEMSTRUCT
|
|
|
|
{
|
|
|
|
UINT CtlType;
|
|
|
|
UINT CtlID;
|
|
|
|
UINT itemID;
|
|
|
|
UINT hwndItem;
|
|
|
|
DWORD __pad;
|
|
|
|
ULONGLONG itemData;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct packed_COMPAREITEMSTRUCT
|
|
|
|
{
|
|
|
|
UINT CtlType;
|
|
|
|
UINT CtlID;
|
|
|
|
UINT hwndItem;
|
|
|
|
DWORD __pad1;
|
|
|
|
UINT itemID1;
|
|
|
|
ULONGLONG itemData1;
|
|
|
|
UINT itemID2;
|
|
|
|
ULONGLONG itemData2;
|
|
|
|
DWORD dwLocaleId;
|
|
|
|
DWORD __pad2;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct packed_WINDOWPOS
|
|
|
|
{
|
|
|
|
UINT hwnd;
|
|
|
|
DWORD __pad1;
|
|
|
|
UINT hwndInsertAfter;
|
|
|
|
DWORD __pad2;
|
|
|
|
INT x;
|
|
|
|
INT y;
|
|
|
|
INT cx;
|
|
|
|
INT cy;
|
|
|
|
UINT flags;
|
|
|
|
DWORD __pad3;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct packed_COPYDATASTRUCT
|
|
|
|
{
|
|
|
|
ULONGLONG dwData;
|
|
|
|
DWORD cbData;
|
|
|
|
ULONGLONG lpData;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct packed_HELPINFO
|
|
|
|
{
|
|
|
|
UINT cbSize;
|
|
|
|
INT iContextType;
|
|
|
|
INT iCtrlId;
|
|
|
|
UINT hItemHandle;
|
|
|
|
DWORD __pad;
|
|
|
|
ULONGLONG dwContextId;
|
|
|
|
POINT MousePos;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct packed_NCCALCSIZE_PARAMS
|
|
|
|
{
|
|
|
|
RECT rgrc[3];
|
|
|
|
ULONGLONG __pad1;
|
|
|
|
UINT hwnd;
|
|
|
|
DWORD __pad2;
|
|
|
|
UINT hwndInsertAfter;
|
|
|
|
DWORD __pad3;
|
|
|
|
INT x;
|
|
|
|
INT y;
|
|
|
|
INT cx;
|
|
|
|
INT cy;
|
|
|
|
UINT flags;
|
|
|
|
DWORD __pad4;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct packed_MSG
|
|
|
|
{
|
|
|
|
UINT hwnd;
|
|
|
|
DWORD __pad1;
|
|
|
|
UINT message;
|
|
|
|
ULONGLONG wParam;
|
|
|
|
ULONGLONG lParam;
|
|
|
|
DWORD time;
|
|
|
|
POINT pt;
|
|
|
|
DWORD __pad2;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct packed_MDINEXTMENU
|
|
|
|
{
|
|
|
|
UINT hmenuIn;
|
|
|
|
DWORD __pad1;
|
|
|
|
UINT hmenuNext;
|
|
|
|
DWORD __pad2;
|
|
|
|
UINT hwndNext;
|
|
|
|
DWORD __pad3;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct packed_MDICREATESTRUCTW
|
|
|
|
{
|
|
|
|
ULONGLONG szClass;
|
|
|
|
ULONGLONG szTitle;
|
|
|
|
ULONGLONG hOwner;
|
|
|
|
INT x;
|
|
|
|
INT y;
|
|
|
|
INT cx;
|
|
|
|
INT cy;
|
|
|
|
DWORD style;
|
|
|
|
ULONGLONG lParam;
|
|
|
|
};
|
|
|
|
|
2022-02-08 12:13:00 +00:00
|
|
|
|
2021-11-17 11:46:39 +00:00
|
|
|
HKL WINAPI NtUserActivateKeyboardLayout( HKL layout, UINT flags );
|
2021-11-12 11:54:45 +00:00
|
|
|
BOOL WINAPI NtUserAddClipboardFormatListener( HWND hwnd );
|
2022-07-08 18:09:26 +00:00
|
|
|
UINT WINAPI NtUserAssociateInputContext( HWND hwnd, HIMC ctx, ULONG flags );
|
2021-11-16 11:32:55 +00:00
|
|
|
BOOL WINAPI NtUserAttachThreadInput( DWORD from, DWORD to, BOOL attach );
|
2022-03-14 10:44:10 +00:00
|
|
|
HDC WINAPI NtUserBeginPaint( HWND hwnd, PAINTSTRUCT *ps );
|
2021-12-21 19:31:29 +00:00
|
|
|
NTSTATUS WINAPI NtUserBuildHwndList( HDESK desktop, ULONG unk2, ULONG unk3, ULONG unk4,
|
|
|
|
ULONG thread_id, ULONG count, HWND *buffer, ULONG *size );
|
2022-03-09 14:21:51 +00:00
|
|
|
ULONG_PTR WINAPI NtUserCallHwnd( HWND hwnd, DWORD code );
|
2022-03-07 13:43:07 +00:00
|
|
|
ULONG_PTR WINAPI NtUserCallHwndParam( HWND hwnd, DWORD_PTR param, DWORD code );
|
2022-02-25 15:02:27 +00:00
|
|
|
LRESULT WINAPI NtUserCallNextHookEx( HHOOK hhook, INT code, WPARAM wparam, LPARAM lparam );
|
2022-04-15 15:25:57 +00:00
|
|
|
BOOL WINAPI NtUserCallMsgFilter( MSG *msg, INT code );
|
2022-02-15 12:10:51 +00:00
|
|
|
ULONG_PTR WINAPI NtUserCallNoParam( ULONG code );
|
2021-12-03 11:56:30 +00:00
|
|
|
ULONG_PTR WINAPI NtUserCallOneParam( ULONG_PTR arg, ULONG code );
|
2021-12-02 00:13:39 +00:00
|
|
|
ULONG_PTR WINAPI NtUserCallTwoParam( ULONG_PTR arg1, ULONG_PTR arg2, ULONG code );
|
2022-04-22 12:45:59 +00:00
|
|
|
BOOL WINAPI NtUserChangeClipboardChain( HWND hwnd, HWND next );
|
2021-12-02 00:14:35 +00:00
|
|
|
LONG WINAPI NtUserChangeDisplaySettings( UNICODE_STRING *devname, DEVMODEW *devmode, HWND hwnd,
|
|
|
|
DWORD flags, void *lparam );
|
2022-04-15 12:53:09 +00:00
|
|
|
DWORD WINAPI NtUserCheckMenuItem( HMENU handle, UINT id, UINT flags );
|
2022-04-14 12:10:33 +00:00
|
|
|
HWND WINAPI NtUserChildWindowFromPointEx( HWND parent, LONG x, LONG y, UINT flags );
|
2022-02-14 13:07:25 +00:00
|
|
|
BOOL WINAPI NtUserClipCursor( const RECT *rect );
|
2022-04-06 09:11:25 +00:00
|
|
|
BOOL WINAPI NtUserCloseClipboard(void);
|
2021-10-13 12:53:36 +00:00
|
|
|
BOOL WINAPI NtUserCloseDesktop( HDESK handle );
|
2021-10-13 12:52:53 +00:00
|
|
|
BOOL WINAPI NtUserCloseWindowStation( HWINSTA handle );
|
2022-03-02 14:06:33 +00:00
|
|
|
INT WINAPI NtUserCopyAcceleratorTable( HACCEL src, ACCEL *dst, INT count );
|
2021-11-11 13:13:45 +00:00
|
|
|
INT WINAPI NtUserCountClipboardFormats(void);
|
2022-03-02 14:06:33 +00:00
|
|
|
HACCEL WINAPI NtUserCreateAcceleratorTable( ACCEL *table, INT count );
|
2022-04-26 15:06:04 +00:00
|
|
|
BOOL WINAPI NtUserCreateCaret( HWND hwnd, HBITMAP bitmap, int width, int height );
|
2021-10-14 13:21:15 +00:00
|
|
|
HDESK WINAPI NtUserCreateDesktopEx( OBJECT_ATTRIBUTES *attr, UNICODE_STRING *device,
|
|
|
|
DEVMODEW *devmode, DWORD flags, ACCESS_MASK access,
|
|
|
|
ULONG heap_size );
|
2022-07-06 20:06:03 +00:00
|
|
|
HIMC WINAPI NtUserCreateInputContext( UINT_PTR client_ptr );
|
2022-03-18 13:27:55 +00:00
|
|
|
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, CBT_CREATEWNDW *cbtc, DWORD unk, BOOL ansi );
|
2021-10-14 13:20:42 +00:00
|
|
|
HWINSTA WINAPI NtUserCreateWindowStation( OBJECT_ATTRIBUTES *attr, ACCESS_MASK mask, ULONG arg3,
|
|
|
|
ULONG arg4, ULONG arg5, ULONG arg6, ULONG arg7 );
|
2022-03-15 13:27:28 +00:00
|
|
|
HDWP WINAPI NtUserDeferWindowPosAndBand( HDWP hdwp, HWND hwnd, HWND after, INT x, INT y,
|
|
|
|
INT cx, INT cy, UINT flags, UINT unk1, UINT unk2 );
|
2022-04-14 22:42:16 +00:00
|
|
|
BOOL WINAPI NtUserDeleteMenu( HMENU menu, UINT id, UINT flags );
|
2022-03-02 14:06:33 +00:00
|
|
|
BOOL WINAPI NtUserDestroyAcceleratorTable( HACCEL handle );
|
2022-02-22 12:53:11 +00:00
|
|
|
BOOL WINAPI NtUserDestroyCursor( HCURSOR cursor, ULONG arg );
|
2022-07-06 20:06:03 +00:00
|
|
|
BOOL WINAPI NtUserDestroyInputContext( HIMC handle );
|
2022-03-17 15:29:29 +00:00
|
|
|
BOOL WINAPI NtUserDestroyMenu( HMENU menu );
|
2022-03-17 15:29:30 +00:00
|
|
|
BOOL WINAPI NtUserDestroyWindow( HWND hwnd );
|
2022-07-08 23:17:54 +00:00
|
|
|
BOOL WINAPI NtUserDisableThreadIme( DWORD thread_id );
|
2022-03-23 13:01:18 +00:00
|
|
|
LRESULT WINAPI NtUserDispatchMessage( const MSG *msg );
|
2022-10-24 22:27:16 +00:00
|
|
|
NTSTATUS WINAPI NtUserDisplayConfigGetDeviceInfo( DISPLAYCONFIG_DEVICE_INFO_HEADER *packet );
|
2022-06-08 18:27:26 +00:00
|
|
|
BOOL WINAPI NtUserDragDetect( HWND hwnd, int x, int y );
|
2022-10-30 19:00:23 +00:00
|
|
|
DWORD WINAPI NtUserDragObject( HWND parent, HWND hwnd, UINT fmt, ULONG_PTR data, HCURSOR cursor );
|
2022-06-16 17:52:44 +00:00
|
|
|
BOOL WINAPI NtUserDrawCaptionTemp( HWND hwnd, HDC hdc, const RECT *rect, HFONT font,
|
|
|
|
HICON icon, const WCHAR *str, UINT flags );
|
2022-02-23 12:41:38 +00:00
|
|
|
BOOL WINAPI NtUserDrawIconEx( HDC hdc, INT x0, INT y0, HICON icon, INT width,
|
|
|
|
INT height, UINT istep, HBRUSH hbr, UINT flags );
|
2022-06-10 18:15:53 +00:00
|
|
|
DWORD WINAPI NtUserDrawMenuBarTemp( HWND hwnd, HDC hdc, RECT *rect, HMENU handle, HFONT font );
|
2022-04-25 14:59:10 +00:00
|
|
|
BOOL WINAPI NtUserEmptyClipboard(void);
|
2022-04-15 12:53:24 +00:00
|
|
|
BOOL WINAPI NtUserEnableMenuItem( HMENU handle, UINT id, UINT flags );
|
2022-06-30 15:12:46 +00:00
|
|
|
BOOL WINAPI NtUserEnableScrollBar( HWND hwnd, UINT bar, UINT flags );
|
2022-03-15 13:27:28 +00:00
|
|
|
BOOL WINAPI NtUserEndDeferWindowPosEx( HDWP hdwp, BOOL async );
|
2022-06-12 14:52:40 +00:00
|
|
|
BOOL WINAPI NtUserEndMenu(void);
|
2022-03-14 10:44:41 +00:00
|
|
|
BOOL WINAPI NtUserEndPaint( HWND hwnd, const PAINTSTRUCT *ps );
|
2021-12-10 01:06:59 +00:00
|
|
|
NTSTATUS WINAPI NtUserEnumDisplayDevices( UNICODE_STRING *device, DWORD index,
|
|
|
|
DISPLAY_DEVICEW *info, DWORD flags );
|
2021-12-02 00:13:55 +00:00
|
|
|
BOOL WINAPI NtUserEnumDisplayMonitors( HDC hdc, RECT *rect, MONITORENUMPROC proc, LPARAM lp );
|
2021-12-01 15:02:43 +00:00
|
|
|
BOOL WINAPI NtUserEnumDisplaySettings( UNICODE_STRING *device, DWORD mode,
|
|
|
|
DEVMODEW *dev_mode, DWORD flags );
|
2022-04-14 12:10:15 +00:00
|
|
|
INT WINAPI NtUserExcludeUpdateRgn( HDC hdc, HWND hwnd );
|
2022-02-22 12:53:11 +00:00
|
|
|
HICON WINAPI NtUserFindExistingCursorIcon( UNICODE_STRING *module, UNICODE_STRING *res_name,
|
|
|
|
void *desc );
|
2022-04-19 13:34:44 +00:00
|
|
|
HWND WINAPI NtUserFindWindowEx( HWND parent, HWND child, UNICODE_STRING *class,
|
|
|
|
UNICODE_STRING *title, ULONG unk );
|
2022-03-09 14:19:47 +00:00
|
|
|
BOOL WINAPI NtUserFlashWindowEx( FLASHWINFO *info );
|
2022-03-08 13:24:03 +00:00
|
|
|
HWND WINAPI NtUserGetAncestor( HWND hwnd, UINT type );
|
2022-02-15 12:15:56 +00:00
|
|
|
SHORT WINAPI NtUserGetAsyncKeyState( INT key );
|
2022-03-04 13:28:16 +00:00
|
|
|
ULONG WINAPI NtUserGetAtomName( ATOM atom, UNICODE_STRING *name );
|
2022-04-26 15:06:04 +00:00
|
|
|
UINT WINAPI NtUserGetCaretBlinkTime(void);
|
|
|
|
BOOL WINAPI NtUserGetCaretPos( POINT *point );
|
2022-03-07 13:42:32 +00:00
|
|
|
ATOM WINAPI NtUserGetClassInfoEx( HINSTANCE instance, UNICODE_STRING *name, WNDCLASSEXW *wc,
|
|
|
|
struct client_menu_name *menu_name, BOOL ansi );
|
2022-03-04 13:28:31 +00:00
|
|
|
INT WINAPI NtUserGetClassName( HWND hwnd, BOOL real, UNICODE_STRING *name );
|
2022-04-25 14:59:10 +00:00
|
|
|
HANDLE WINAPI NtUserGetClipboardData( UINT format, struct get_clipboard_params *params );
|
2021-11-12 11:53:28 +00:00
|
|
|
INT WINAPI NtUserGetClipboardFormatName( UINT format, WCHAR *buffer, INT maxlen );
|
2021-11-12 11:53:50 +00:00
|
|
|
HWND WINAPI NtUserGetClipboardOwner(void);
|
2021-11-12 11:54:29 +00:00
|
|
|
DWORD WINAPI NtUserGetClipboardSequenceNumber(void);
|
2021-11-12 11:53:59 +00:00
|
|
|
HWND WINAPI NtUserGetClipboardViewer(void);
|
2021-12-03 11:55:44 +00:00
|
|
|
HCURSOR WINAPI NtUserGetCursor(void);
|
2022-02-23 12:40:14 +00:00
|
|
|
HCURSOR WINAPI NtUserGetCursorFrameInfo( HCURSOR hCursor, DWORD istep, DWORD *rate_jiffies,
|
|
|
|
DWORD *num_steps );
|
2022-02-24 00:28:18 +00:00
|
|
|
BOOL WINAPI NtUserGetCursorInfo( CURSORINFO *info );
|
2022-03-14 10:43:55 +00:00
|
|
|
HDC WINAPI NtUserGetDCEx( HWND hwnd, HRGN clip_rgn, DWORD flags );
|
2021-11-30 12:24:18 +00:00
|
|
|
LONG WINAPI NtUserGetDisplayConfigBufferSizes( UINT32 flags, UINT32 *num_path_info,
|
|
|
|
UINT32 *num_mode_info );
|
2021-12-06 02:15:59 +00:00
|
|
|
UINT WINAPI NtUserGetDoubleClickTime(void);
|
2021-12-06 02:09:07 +00:00
|
|
|
BOOL WINAPI NtUserGetDpiForMonitor( HMONITOR monitor, UINT type, UINT *x, UINT *y );
|
2022-02-17 14:43:07 +00:00
|
|
|
HWND WINAPI NtUserGetForegroundWindow(void);
|
2022-02-24 00:28:31 +00:00
|
|
|
BOOL WINAPI NtUserGetGUIThreadInfo( DWORD id, GUITHREADINFO *info );
|
2022-02-23 12:40:33 +00:00
|
|
|
BOOL WINAPI NtUserGetIconInfo( HICON icon, ICONINFO *info, UNICODE_STRING *module,
|
|
|
|
UNICODE_STRING *res_name, DWORD *bpp, LONG unk );
|
2022-02-23 12:39:47 +00:00
|
|
|
BOOL WINAPI NtUserGetIconSize( HICON handle, UINT step, LONG *width, LONG *height );
|
2021-11-16 11:32:55 +00:00
|
|
|
INT WINAPI NtUserGetKeyNameText( LONG lparam, WCHAR *buffer, INT size );
|
|
|
|
SHORT WINAPI NtUserGetKeyState( INT vkey );
|
|
|
|
HKL WINAPI NtUserGetKeyboardLayout( DWORD thread_id );
|
2021-11-17 11:46:39 +00:00
|
|
|
UINT WINAPI NtUserGetKeyboardLayoutList( INT size, HKL *layouts );
|
2021-12-03 11:56:05 +00:00
|
|
|
BOOL WINAPI NtUserGetKeyboardLayoutName( WCHAR *name );
|
2021-11-16 11:32:55 +00:00
|
|
|
BOOL WINAPI NtUserGetKeyboardState( BYTE *state );
|
2021-11-08 13:48:28 +00:00
|
|
|
BOOL WINAPI NtUserGetLayeredWindowAttributes( HWND hwnd, COLORREF *key, BYTE *alpha, DWORD *flags );
|
2022-06-12 14:52:40 +00:00
|
|
|
BOOL WINAPI NtUserGetMenuBarInfo( HWND hwnd, LONG id, LONG item, MENUBARINFO *info );
|
2022-04-20 13:57:02 +00:00
|
|
|
BOOL WINAPI NtUserGetMenuItemRect( HWND hwnd, HMENU menu, UINT item, RECT *rect );
|
2022-03-31 13:37:04 +00:00
|
|
|
BOOL WINAPI NtUserGetMessage( MSG *msg, HWND hwnd, UINT first, UINT last );
|
2021-11-17 11:46:39 +00:00
|
|
|
int WINAPI NtUserGetMouseMovePointsEx( UINT size, MOUSEMOVEPOINT *ptin, MOUSEMOVEPOINT *ptout,
|
|
|
|
int count, DWORD resolution );
|
2021-10-13 12:55:30 +00:00
|
|
|
BOOL WINAPI NtUserGetObjectInformation( HANDLE handle, INT index, void *info,
|
|
|
|
DWORD len, DWORD *needed );
|
2021-11-16 11:36:26 +00:00
|
|
|
HWND WINAPI NtUserGetOpenClipboardWindow(void);
|
2021-11-12 11:55:06 +00:00
|
|
|
INT WINAPI NtUserGetPriorityClipboardFormat( UINT *list, INT count );
|
2021-10-13 12:52:53 +00:00
|
|
|
HWINSTA WINAPI NtUserGetProcessWindowStation(void);
|
2021-11-08 13:48:37 +00:00
|
|
|
HANDLE WINAPI NtUserGetProp( HWND hwnd, const WCHAR *str );
|
2021-12-06 02:08:21 +00:00
|
|
|
ULONG WINAPI NtUserGetProcessDpiAwarenessContext( HANDLE process );
|
2022-02-15 12:10:38 +00:00
|
|
|
DWORD WINAPI NtUserGetQueueStatus( UINT flags );
|
2022-05-15 20:35:14 +00:00
|
|
|
UINT WINAPI NtUserGetRawInputBuffer( RAWINPUT *data, UINT *data_size, UINT header_size );
|
2022-05-15 18:31:57 +00:00
|
|
|
UINT WINAPI NtUserGetRawInputData( HRAWINPUT rawinput, UINT command, void *data, UINT *data_size, UINT header_size );
|
2022-05-15 23:25:56 +00:00
|
|
|
UINT WINAPI NtUserGetRawInputDeviceInfo( HANDLE handle, UINT command, void *data, UINT *data_size );
|
|
|
|
UINT WINAPI NtUserGetRawInputDeviceList( RAWINPUTDEVICELIST *devices, UINT *device_count, UINT size );
|
2022-05-15 22:49:57 +00:00
|
|
|
UINT WINAPI NtUserGetRegisteredRawInputDevices( RAWINPUTDEVICE *devices, UINT *device_count, UINT size );
|
2022-06-30 15:12:46 +00:00
|
|
|
BOOL WINAPI NtUserGetScrollBarInfo( HWND hwnd, LONG id, SCROLLBARINFO *info );
|
2021-12-06 02:08:45 +00:00
|
|
|
ULONG WINAPI NtUserGetSystemDpiForProcess( HANDLE process );
|
2022-04-14 22:54:36 +00:00
|
|
|
HMENU WINAPI NtUserGetSystemMenu( HWND hwnd, BOOL revert );
|
2021-10-13 12:54:00 +00:00
|
|
|
HDESK WINAPI NtUserGetThreadDesktop( DWORD thread );
|
2022-06-16 20:33:26 +00:00
|
|
|
BOOL WINAPI NtUserGetTitleBarInfo( HWND hwnd, TITLEBARINFO *info );
|
2022-03-14 10:45:43 +00:00
|
|
|
INT WINAPI NtUserGetUpdateRgn( HWND hwnd, HRGN hrgn, BOOL erase );
|
2021-11-12 11:54:10 +00:00
|
|
|
BOOL WINAPI NtUserGetUpdatedClipboardFormats( UINT *formats, UINT size, UINT *out_size );
|
2022-03-15 13:28:20 +00:00
|
|
|
BOOL WINAPI NtUserGetUpdateRect( HWND hwnd, RECT *rect, BOOL erase );
|
2022-05-19 11:52:43 +00:00
|
|
|
BOOL WINAPI NtUserGetWindowPlacement( HWND hwnd, WINDOWPLACEMENT *placement );
|
2022-03-10 13:31:20 +00:00
|
|
|
int WINAPI NtUserGetWindowRgnEx( HWND hwnd, HRGN hrgn, UINT unk );
|
2022-04-26 15:06:04 +00:00
|
|
|
BOOL WINAPI NtUserHideCaret( HWND hwnd );
|
2022-06-12 14:52:40 +00:00
|
|
|
BOOL WINAPI NtUserHiliteMenuItem( HWND hwnd, HMENU handle, UINT item, UINT hilite );
|
2022-03-04 13:27:58 +00:00
|
|
|
NTSTATUS WINAPI NtUserInitializeClientPfnArrays( const struct user_client_procs *client_procsA,
|
|
|
|
const struct user_client_procs *client_procsW,
|
|
|
|
const void *client_workers, HINSTANCE user_module );
|
2022-05-11 22:10:41 +00:00
|
|
|
HICON WINAPI NtUserInternalGetWindowIcon( HWND hwnd, UINT type );
|
2022-03-08 13:23:37 +00:00
|
|
|
INT WINAPI NtUserInternalGetWindowText( HWND hwnd, WCHAR *text, INT count );
|
2021-11-12 11:53:40 +00:00
|
|
|
BOOL WINAPI NtUserIsClipboardFormatAvailable( UINT format );
|
2022-06-12 15:28:56 +00:00
|
|
|
BOOL WINAPI NtUserInvalidateRect( HWND hwnd, const RECT *rect, BOOL erase );
|
|
|
|
BOOL WINAPI NtUserInvalidateRgn( HWND hwnd, HRGN hrgn, BOOL erase );
|
2022-03-16 14:36:30 +00:00
|
|
|
BOOL WINAPI NtUserKillTimer( HWND hwnd, UINT_PTR id );
|
2022-06-07 21:25:16 +00:00
|
|
|
BOOL WINAPI NtUserLockWindowUpdate( HWND hwnd );
|
2022-08-26 09:31:52 +00:00
|
|
|
BOOL WINAPI NtUserLogicalToPerMonitorDPIPhysicalPoint( HWND hwnd, POINT *pt );
|
2021-11-16 11:32:55 +00:00
|
|
|
UINT WINAPI NtUserMapVirtualKeyEx( UINT code, UINT type, HKL layout );
|
2022-06-11 00:14:02 +00:00
|
|
|
INT WINAPI NtUserMenuItemFromPoint( HWND hwnd, HMENU handle, int x, int y );
|
2022-04-04 14:57:23 +00:00
|
|
|
LRESULT WINAPI NtUserMessageCall( HWND hwnd, UINT msg, WPARAM wparam, LPARAM lparam,
|
|
|
|
void *result_info, DWORD type, BOOL ansi );
|
2022-03-10 13:32:16 +00:00
|
|
|
BOOL WINAPI NtUserMoveWindow( HWND hwnd, INT x, INT y, INT cx, INT cy, BOOL repaint );
|
2022-04-01 12:45:57 +00:00
|
|
|
DWORD WINAPI NtUserMsgWaitForMultipleObjectsEx( DWORD count, const HANDLE *handles,
|
|
|
|
DWORD timeout, DWORD mask, DWORD flags );
|
2022-02-16 11:30:12 +00:00
|
|
|
void WINAPI NtUserNotifyWinEvent( DWORD event, HWND hwnd, LONG object_id, LONG child_id );
|
2021-10-14 13:20:56 +00:00
|
|
|
HWINSTA WINAPI NtUserOpenWindowStation( OBJECT_ATTRIBUTES *attr, ACCESS_MASK access );
|
2021-10-13 12:56:22 +00:00
|
|
|
BOOL WINAPI NtUserSetObjectInformation( HANDLE handle, INT index, void *info, DWORD len );
|
2022-04-25 14:59:10 +00:00
|
|
|
BOOL WINAPI NtUserOpenClipboard( HWND hwnd, ULONG unk );
|
2021-10-14 13:21:33 +00:00
|
|
|
HDESK WINAPI NtUserOpenDesktop( OBJECT_ATTRIBUTES *attr, DWORD flags, ACCESS_MASK access );
|
2021-10-13 12:54:56 +00:00
|
|
|
HDESK WINAPI NtUserOpenInputDesktop( DWORD flags, BOOL inherit, ACCESS_MASK access );
|
2022-03-31 13:36:51 +00:00
|
|
|
BOOL WINAPI NtUserPeekMessage( MSG *msg_out, HWND hwnd, UINT first, UINT last, UINT flags );
|
2022-08-26 09:49:36 +00:00
|
|
|
BOOL WINAPI NtUserPerMonitorDPIPhysicalToLogicalPoint( HWND hwnd, POINT *pt );
|
2022-04-04 14:57:31 +00:00
|
|
|
BOOL WINAPI NtUserPostMessage( HWND hwnd, UINT msg, WPARAM wparam, LPARAM lparam );
|
|
|
|
BOOL WINAPI NtUserPostThreadMessage( DWORD thread, UINT msg, WPARAM wparam, LPARAM lparam );
|
2022-07-06 20:06:03 +00:00
|
|
|
UINT_PTR WINAPI NtUserQueryInputContext( HIMC handle, UINT attr );
|
2022-03-14 10:45:30 +00:00
|
|
|
BOOL WINAPI NtUserRedrawWindow( HWND hwnd, const RECT *rect, HRGN hrgn, UINT flags );
|
2022-03-07 13:42:32 +00:00
|
|
|
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 );
|
2022-02-24 00:27:57 +00:00
|
|
|
BOOL WINAPI NtUserRegisterHotKey( HWND hwnd, INT id, UINT modifiers, UINT vk );
|
2022-05-15 22:37:40 +00:00
|
|
|
BOOL WINAPI NtUserRegisterRawInputDevices( const RAWINPUTDEVICE *devices, UINT device_count, UINT size );
|
2022-03-14 10:45:12 +00:00
|
|
|
INT WINAPI NtUserReleaseDC( HWND hwnd, HDC hdc );
|
2021-11-12 11:54:45 +00:00
|
|
|
BOOL WINAPI NtUserRemoveClipboardFormatListener( HWND hwnd );
|
2022-04-13 22:51:26 +00:00
|
|
|
BOOL WINAPI NtUserRemoveMenu( HMENU menu, UINT id, UINT flags );
|
2021-11-08 13:48:37 +00:00
|
|
|
HANDLE WINAPI NtUserRemoveProp( HWND hwnd, const WCHAR *str );
|
2021-11-17 11:49:37 +00:00
|
|
|
BOOL WINAPI NtUserScrollDC( HDC hdc, INT dx, INT dy, const RECT *scroll, const RECT *clip,
|
|
|
|
HRGN ret_update_rgn, RECT *update_rect );
|
2022-06-08 17:15:14 +00:00
|
|
|
INT WINAPI NtUserScrollWindowEx( HWND hwnd, INT dx, INT dy, const RECT *rect,
|
|
|
|
const RECT *clip_rect, HRGN update_rgn,
|
|
|
|
RECT *update_rect, UINT flags ) DECLSPEC_HIDDEN;
|
2021-12-03 11:56:30 +00:00
|
|
|
HPALETTE WINAPI NtUserSelectPalette( HDC hdc, HPALETTE palette, WORD force_background );
|
2022-04-01 12:47:12 +00:00
|
|
|
UINT WINAPI NtUserSendInput( UINT count, INPUT *inputs, int size );
|
2022-03-11 13:21:31 +00:00
|
|
|
HWND WINAPI NtUserSetActiveWindow( HWND hwnd );
|
2022-03-11 13:22:19 +00:00
|
|
|
HWND WINAPI NtUserSetCapture( HWND hwnd );
|
2022-03-07 13:42:47 +00:00
|
|
|
DWORD WINAPI NtUserSetClassLong( HWND hwnd, INT offset, LONG newval, BOOL ansi );
|
|
|
|
ULONG_PTR WINAPI NtUserSetClassLongPtr( HWND hwnd, INT offset, LONG_PTR newval, BOOL ansi );
|
|
|
|
WORD WINAPI NtUserSetClassWord( HWND hwnd, INT offset, WORD newval );
|
2022-04-25 14:59:10 +00:00
|
|
|
NTSTATUS WINAPI NtUserSetClipboardData( UINT format, HANDLE handle, struct set_clipboard_params *params );
|
2022-04-22 12:45:43 +00:00
|
|
|
HWND WINAPI NtUserSetClipboardViewer( HWND hwnd );
|
2022-02-23 12:39:35 +00:00
|
|
|
HCURSOR WINAPI NtUserSetCursor( HCURSOR cursor );
|
2022-02-22 12:41:40 +00:00
|
|
|
BOOL WINAPI NtUserSetCursorIconData( HCURSOR cursor, UNICODE_STRING *module, UNICODE_STRING *res_name,
|
|
|
|
struct cursoricon_desc *desc );
|
2022-02-14 13:07:53 +00:00
|
|
|
BOOL WINAPI NtUserSetCursorPos( INT x, INT y );
|
2022-03-11 13:21:45 +00:00
|
|
|
HWND WINAPI NtUserSetFocus( HWND hwnd );
|
2022-05-19 11:24:26 +00:00
|
|
|
void WINAPI NtUserSetInternalWindowPos( HWND hwnd, UINT cmd, RECT *rect, POINT *pt );
|
2021-11-16 11:32:55 +00:00
|
|
|
BOOL WINAPI NtUserSetKeyboardState( BYTE *state );
|
2022-03-10 13:33:11 +00:00
|
|
|
BOOL WINAPI NtUserSetLayeredWindowAttributes( HWND hwnd, COLORREF key, BYTE alpha, DWORD flags );
|
2022-04-20 13:57:42 +00:00
|
|
|
BOOL WINAPI NtUserSetMenu( HWND hwnd, HMENU menu );
|
2022-04-20 13:56:50 +00:00
|
|
|
BOOL WINAPI NtUserSetMenuContextHelpId( HMENU handle, DWORD id );
|
2022-04-22 12:45:25 +00:00
|
|
|
BOOL WINAPI NtUserSetMenuDefaultItem( HMENU handle, UINT item, UINT bypos );
|
2022-03-15 13:27:55 +00:00
|
|
|
HWND WINAPI NtUserSetParent( HWND hwnd, HWND parent );
|
2021-12-06 02:08:21 +00:00
|
|
|
BOOL WINAPI NtUserSetProcessDpiAwarenessContext( ULONG awareness, ULONG unknown );
|
2021-10-13 12:53:22 +00:00
|
|
|
BOOL WINAPI NtUserSetProcessWindowStation( HWINSTA handle );
|
2021-11-08 13:48:37 +00:00
|
|
|
BOOL WINAPI NtUserSetProp( HWND hwnd, const WCHAR *str, HANDLE handle );
|
2022-06-30 15:12:46 +00:00
|
|
|
INT WINAPI NtUserSetScrollInfo( HWND hwnd, INT bar, const SCROLLINFO *info, BOOL redraw );
|
2021-12-06 02:15:59 +00:00
|
|
|
BOOL WINAPI NtUserSetSysColors( INT count, const INT *colors, const COLORREF *values );
|
2022-03-18 13:27:55 +00:00
|
|
|
BOOL WINAPI NtUserSetSystemMenu( HWND hwnd, HMENU menu );
|
2022-04-21 00:15:31 +00:00
|
|
|
UINT_PTR WINAPI NtUserSetSystemTimer( HWND hwnd, UINT_PTR id, UINT timeout );
|
2021-10-13 12:54:21 +00:00
|
|
|
BOOL WINAPI NtUserSetThreadDesktop( HDESK handle );
|
2022-03-16 14:35:55 +00:00
|
|
|
UINT_PTR WINAPI NtUserSetTimer( HWND hwnd, UINT_PTR id, UINT timeout, TIMERPROC proc, ULONG tolerance );
|
2022-03-16 14:35:25 +00:00
|
|
|
LONG WINAPI NtUserSetWindowLong( HWND hwnd, INT offset, LONG newval, BOOL ansi );
|
|
|
|
LONG_PTR WINAPI NtUserSetWindowLongPtr( HWND hwnd, INT offset, LONG_PTR newval, BOOL ansi );
|
2022-05-19 11:12:33 +00:00
|
|
|
BOOL WINAPI NtUserSetWindowPlacement( HWND hwnd, const WINDOWPLACEMENT *wpl );
|
2022-03-10 13:31:41 +00:00
|
|
|
BOOL WINAPI NtUserSetWindowPos( HWND hwnd, HWND after, INT x, INT y, INT cx, INT cy, UINT flags );
|
|
|
|
int WINAPI NtUserSetWindowRgn( HWND hwnd, HRGN hrgn, BOOL redraw );
|
2022-03-16 14:35:25 +00:00
|
|
|
WORD WINAPI NtUserSetWindowWord( HWND hwnd, INT offset, WORD newval );
|
2022-02-16 11:30:44 +00:00
|
|
|
HHOOK WINAPI NtUserSetWindowsHookEx( HINSTANCE inst, UNICODE_STRING *module, DWORD tid, INT id,
|
|
|
|
HOOKPROC proc, BOOL ansi );
|
2022-02-16 11:29:56 +00:00
|
|
|
HWINEVENTHOOK WINAPI NtUserSetWinEventHook( DWORD event_min, DWORD event_max, HMODULE inst,
|
|
|
|
UNICODE_STRING *module, WINEVENTPROC proc,
|
|
|
|
DWORD pid, DWORD tid, DWORD flags );
|
2022-04-26 15:06:04 +00:00
|
|
|
BOOL WINAPI NtUserShowCaret( HWND hwnd );
|
2021-11-17 11:46:39 +00:00
|
|
|
INT WINAPI NtUserShowCursor( BOOL show );
|
2022-06-28 11:22:35 +00:00
|
|
|
BOOL WINAPI NtUserShowScrollBar( HWND hwnd, INT bar, BOOL show );
|
2022-03-15 13:27:55 +00:00
|
|
|
BOOL WINAPI NtUserShowWindow( HWND hwnd, INT cmd );
|
2022-03-17 15:29:32 +00:00
|
|
|
BOOL WINAPI NtUserShowWindowAsync( HWND hwnd, INT cmd );
|
2021-12-06 02:15:59 +00: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 );
|
2022-04-22 12:45:11 +00:00
|
|
|
BOOL WINAPI NtUserThunkedMenuInfo( HMENU menu, const MENUINFO *info );
|
2022-04-13 22:51:26 +00:00
|
|
|
UINT WINAPI NtUserThunkedMenuItemInfo( HMENU menu, UINT pos, UINT flags, UINT method,
|
|
|
|
MENUITEMINFOW *info, UNICODE_STRING *str );
|
2021-11-17 11:46:39 +00:00
|
|
|
INT WINAPI NtUserToUnicodeEx( UINT virt, UINT scan, const BYTE *state,
|
|
|
|
WCHAR *str, int size, UINT flags, HKL layout );
|
2022-04-26 15:06:02 +00:00
|
|
|
BOOL WINAPI NtUserTrackMouseEvent( TRACKMOUSEEVENT *info );
|
2022-06-12 14:52:40 +00:00
|
|
|
BOOL WINAPI NtUserTrackPopupMenuEx( HMENU handle, UINT flags, INT x, INT y, HWND hwnd, TPMPARAMS *params );
|
2022-04-15 12:52:36 +00:00
|
|
|
INT WINAPI NtUserTranslateAccelerator( HWND hwnd, HACCEL accel, MSG *msg );
|
|
|
|
BOOL WINAPI NtUserTranslateMessage( const MSG *msg, UINT flags );
|
2022-02-16 11:29:43 +00:00
|
|
|
BOOL WINAPI NtUserUnhookWinEvent( HWINEVENTHOOK hEventHook );
|
2022-02-16 11:31:04 +00:00
|
|
|
BOOL WINAPI NtUserUnhookWindowsHookEx( HHOOK handle );
|
2022-03-07 13:42:32 +00:00
|
|
|
BOOL WINAPI NtUserUnregisterClass( UNICODE_STRING *name, HINSTANCE instance,
|
|
|
|
struct client_menu_name *client_menu_name );
|
2021-11-17 11:46:39 +00:00
|
|
|
BOOL WINAPI NtUserUnregisterHotKey( HWND hwnd, INT id );
|
2022-07-06 20:06:03 +00:00
|
|
|
BOOL WINAPI NtUserUpdateInputContext( HIMC handle, UINT attr, UINT_PTR value );
|
2022-03-10 13:33:27 +00:00
|
|
|
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 );
|
2021-11-16 11:32:55 +00:00
|
|
|
WORD WINAPI NtUserVkKeyScanEx( WCHAR chr, HKL layout );
|
2022-03-09 14:20:25 +00:00
|
|
|
DWORD WINAPI NtUserWaitForInputIdle( HANDLE process, DWORD timeout, BOOL wow );
|
2022-03-14 10:43:32 +00:00
|
|
|
HWND WINAPI NtUserWindowFromDC( HDC hdc );
|
2022-03-10 13:31:55 +00:00
|
|
|
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-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-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,
|
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-07-26 14:08:55 +00:00
|
|
|
/* temporary exports */
|
|
|
|
NtUserGetFullWindowHandle,
|
|
|
|
NtUserIsCurrehtProcessWindow,
|
|
|
|
NtUserIsCurrehtThreadWindow,
|
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-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-13 13:08:21 +00:00
|
|
|
NtUserCallHwndParam_SetWindowPixelFormat,
|
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-13 13:08:21 +00:00
|
|
|
static inline BOOL NtUserSetWindowPixelFormat( HWND hwnd, int format )
|
|
|
|
{
|
|
|
|
return NtUserCallHwndParam( hwnd, format, NtUserCallHwndParam_SetWindowPixelFormat );
|
|
|
|
}
|
|
|
|
|
2022-04-15 12:54:04 +00:00
|
|
|
static inline BOOL NtUserShowOwnedPopups( HWND hwnd, BOOL show )
|
|
|
|
{
|
|
|
|
return NtUserCallHwndParam( hwnd, show, NtUserCallHwndParam_ShowOwnedPopups );
|
|
|
|
}
|
|
|
|
|
2021-10-12 14:42:35 +00:00
|
|
|
#endif /* _NTUSER_ */
|