Commit graph

397 commits

Author SHA1 Message Date
Alex Henrie
adfaef5a86 user32: Correct capitalization of SetDeskWallpaper.
Spotted by Vijay Kiran Kamuju.
2023-12-07 20:21:43 +01:00
Myah Caron
79d0c050a9 user32: Add SetDisplayAutoRotationPreferences stub.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=55920
Signed-off-by: Myah Caron <qsniyg@protonmail.com>
2023-12-01 19:07:49 +01:00
Fabian Maurer
85e355ddf3 user32: Add stub for GetThreadDpiHostingBehavior.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=55892
2023-11-27 23:25:08 +01:00
Paweł Ulita
09edd13919 user32: Add stubs for GetWindowDpiHostingBehavior and SetThreadDpiHostingBehavior.
This prevents Native Instruments Kontakt 7 from crashing on start-up.
2023-11-15 23:03:51 +01:00
Alexandre Julliard
4502eb56ba configure: Use hidden visibility also when building Unix libraries. 2023-11-08 10:27:21 +01:00
Alexandre Julliard
3bb752736c include: Stop pretending to support big-endian. 2023-10-10 11:11:26 +02:00
Connor McAdams
80a9c0efa8 include: Add missing WinEvent definitions.
Signed-off-by: Connor McAdams <cmcadams@codeweavers.com>
2023-09-18 20:35:58 +02:00
Alexandre Julliard
6366775e82 include: Disallow Win32 va_list in Unix libraries. 2023-07-05 17:03:30 +02:00
Jacek Caban
b601e3fa97 win32u: Use syscall interface for all exports. 2023-05-29 11:37:09 +02:00
Alexandre Julliard
d92b59717d include: Use proper dllimports for user32 functions. 2022-12-07 13:51:37 +01:00
Zhiyi Zhang
c196d2462d user32: Hook drawing menu buttons. 2022-11-04 19:23:55 +01:00
Alex Henrie
9d2b879d17 include: Fix typo in LR_VGACOLOR.
Needed to compile Tera Term.
2022-10-10 11:15:52 +02:00
Francois Gouget
04c7ff2c2f include: Add some SPI_ constants.
They pop up in some failure messages.

Signed-off-by: Francois Gouget <fgouget@free.fr>
2022-07-25 09:38:26 +02:00
Jacek Caban
79910bcf83 user32: Pass scroll enable flags to ScrollBarDraw. 2022-07-04 20:14:02 +02:00
Rémi Bernon
834ade753e include: Add touch and pointer input related winuser.h declarations.
Signed-off-by: Rémi Bernon <rbernon@codeweavers.com>
2022-06-01 20:49:36 +02:00
Zebediah Figura
ab34fb78f8 include: Constify the RAWINPUTDEVICE pointer parameter to RegisterRawInputDevices().
Signed-off-by: Zebediah Figura <zfigura@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-05-16 10:40:03 +02:00
Jacek Caban
497f37cf99 include: Don't use DECLSPEC_HIDDEN for WINGDIAPI and WINUSERAPI in unuxlibs.
Allows win32u.so to expose such functions using unixlib interface.

Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-05-06 19:18:18 +02:00
Zebediah Figura
5e4dedff8e win32u: Remove the "proc" parameter to NtUserSetSystemTimer().
Testing on 32-bit Windows 10 suggests that the function only has three
parameters. The test fixed in this patch (which still succeeds on e.g. Windows
2003) suggests that the final parameter to SetSystemTimer() is not a callback,
either.

Signed-off-by: Zebediah Figura <zfigura@codeweavers.com>
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-04-21 14:41:22 +02:00
Jinoh Kang
949edcec17 include: Remove duplicate definitions of UOI_* macros.
Commit 5ec458fd41 (Add declarations for GetClassLongPtr{A,W}, GCLP_*
defines and user object information defines., 2004-10-14) inadvertently
introduced duplicate definitions of UOI_* macros.

Signed-off-by: Jinoh Kang <jinoh.kang.kr@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-04-18 12:37:03 +02:00
Zhiyi Zhang
be8acff719 include: Avoid a C++ keyword for RegisterUserApiHook().
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=52787
Signed-off-by: Zhiyi Zhang <zzhang@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-04-11 10:12:37 +02:00
Nikolay Sivov
947f638a05 user32: Add suspend-resume notification API stubs.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-03-30 18:32:32 +02:00
Zhiyi Zhang
b02405d799 uxtheme: Hook DefDlgProc() for dialog theming.
Fix controls on OpenMPT's channel setting dialog having incorrect background.

Signed-off-by: Zhiyi Zhang <zzhang@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-01-24 10:18:31 +01:00
Zhiyi Zhang
9c9274990e uxtheme: Do not hook DefDlgProc() for theming.
Currently there is no need to hook DefDlgProc(). Tests show that dialog theming shouldn't be
implemented in DefDlgProc().

Also fix a double free bug because WM_DESTROY in UXTHEME_DefDlgProc() calls CloseThemeData() even
when the theme handle is not opened when handling WM_CREATE in UXTHEME_DefDlgProc(). The bug can
be demonstrated by running comctl32/tests/propsheet.c tests with Light theme.

Signed-off-by: Zhiyi Zhang <zzhang@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-12-07 12:22:49 +01:00
Connor McAdams
04965f6e47 include: Define EVENT_OBJECT_INVOKED.
Signed-off-by: Connor McAdams <cmcadams@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-09-27 17:40:14 +02:00
Zhiyi Zhang
0a83027e20 uxtheme: Support drawing themed standard scroll bars.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=39821
Signed-off-by: Zhiyi Zhang <zzhang@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-07-20 18:50:11 +02:00
Zhiyi Zhang
b0e51ead0d uxtheme: Move themed dialog to uxtheme.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=51137
Signed-off-by: Zhiyi Zhang <zzhang@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-07-20 18:49:55 +02:00
Zhiyi Zhang
d9063802f2 uxtheme: Move themed scroll bar to uxtheme.
Signed-off-by: Zhiyi Zhang <zzhang@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-07-20 18:49:49 +02:00
Rémi Bernon
123c17aa92 user32: Add RAWINPUT parameter to __wine_send_input.
And send_hardware_message.

This makes it possible to use __wine_send_input to send extended input
data, such as HID device notifications and WM_INPUT messages carrying
HID reports.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=50506
Signed-off-by: Rémi Bernon <rbernon@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-04-15 10:37:52 +02:00
Puetz Kevin A
493e9a6164 include: GWL_ID is not a HANDLE or pointer, and should be available on _WIN64.
Signed-off-by: Kevin Puetz <PuetzKevinA@JohnDeere.com>
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-07-17 00:03:04 +02:00
Jacek Caban
d4bbda626a winuser.h: Add touch event flags.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-05-07 20:13:27 +02:00
Zebediah Figura
e6df76770e user32: Implement RegisterDeviceNotification().
Based on a patch by Micah N Gorrell.

This fixes controller hotplugging in Into the Breach.

Signed-off-by: Zebediah Figura <zfigura@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-05-06 10:49:12 +02:00
Sven Baars
9bd51fff5d user32: Add EnableNonClientDpiScaling stub.
Signed-off-by: Sven Baars <sbaars@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-02-19 20:34:13 +01:00
Zhiyi Zhang
7d94e9d0c3 user32: Trace more ChangeDisplaySettingsExW() flags.
Signed-off-by: Zhiyi Zhang <zzhang@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-02-10 22:46:24 +01:00
Alistair Leslie-Hughes
0bce8863b4 include: Add gesture defines.
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-07-31 09:57:26 +02:00
Alistair Leslie-Hughes
0453e56e36 include: Add MENUGETOBJECTINFO.
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-07-31 09:54:35 +02:00
Alexandre Julliard
60ac1cec62 include: Use DECLSPEC_HIDDEN instead of DECLSPEC_IMPORT for dll exports.
DECLSPEC_IMPORT interferes with delay imports on MinGW.

Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-05-02 17:10:34 +02:00
Louis Lenders
34408796b9 user32: Added GetPointerType stub.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=45765
Signed-off-by: Vijay Kiran Kamuju <infyquest@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-04-29 18:46:25 +02:00
Sebastian Lackner
c02407e9a3 user32: Implement CWF_CREATE_ONLY flag for CreateWindowStation.
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-04-08 09:55:23 +02:00
Gabriel Ivăncescu
897b1f5cc3 include: Add PtInRect as inline version of common RECT helpers.
Signed-off-by: Gabriel Ivăncescu <gabrielopcode@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-03-20 21:23:27 +01:00
Zhiyi Zhang
aa754f3ae4 include: Add EnumDisplayDevices flags.
Signed-off-by: Zhiyi Zhang <zzhang@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-02-26 20:56:26 +01:00
Alexandre Julliard
771123afb6 user32: Add stub for GetCurrentInputMessageSource().
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-11-05 19:12:12 +01:00
Zebediah Figura
c26de97ecc include: Fix definition of RAWHID.
Signed-off-by: Zebediah Figura <zfigura@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-08-21 10:22:33 +02:00
Alexandre Julliard
a36abda773 user32: Make the MonitorFromRect() argument const.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-07-18 14:11:32 +02:00
Alistair Leslie-Hughes
80205232d3 user32: Support SPI_S/GETAUDIODESCRIPTION in SystemParametersInfo.
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-07-06 20:51:26 +02:00
Józef Kucia
40e6ba4e69 include: Add POINTER_INPUT_TYPE.
Signed-off-by: Józef Kucia <jkucia@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-06-22 13:40:32 +02:00
Fabian Maurer
66180389f8 user32: Add stub for GetPointerDevices.
Signed-off-by: Fabian Maurer <dark.shadow4@web.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-06-11 10:50:02 +02:00
Louis Lenders
0b27528c56 user32: Add stub for RegisterPointerDeviceNotifications.
Signed-off-by: Louis Lenders <xerox.xerox2000x@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-06-05 09:22:11 +02:00
Gijs Vermeulen
223a2099f4 include: Add DOF_* definitions.
Signed-off-by: Gijs Vermeulen <gijsvrm@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-05-21 10:51:48 +02:00
Austin English
5572f8bebc include/winuser.h: Add tagDROPSTRUCT struct.
Signed-off-by: Austin English <austinenglish@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-04-20 08:52:43 +02:00
Alexandre Julliard
7fdf90e395 user32: Implement LogicalToPhysicalPointForPerMonitorDPI() and PhysicalToLogicalPointForPerMonitorDPI().
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-04-19 12:51:21 +02:00