Commit graph

17105 commits

Author SHA1 Message Date
Elizabeth Figura 6b7834d407 server: Check for an existing serial wait ioctl within the ioctl handler. 2024-06-18 10:47:19 +02:00
Rémi Bernon 6eac284201 win32u: Move WM_WINE_DESKTOP_RESIZED into driver internal messages range.
It is otherwise ignored and not passed to the drivers WindowMessage callback.

Fixes: b89c9c60d5
2024-06-13 21:07:54 +02:00
Rémi Bernon 71ff81bc2b win32u: Split WindowPosChanging driver call to a separate CreateWindowSurface. 2024-06-13 21:07:54 +02:00
Rémi Bernon fe7e94d58c win32u: Remove unused insert_after WindowPosChanging parameter. 2024-06-13 21:07:54 +02:00
Lucas Chollet 0440cb4b02 dnsapi: Add a stub for DnsServiceBrowse.
This is needed by Moku (software for scientific instrument).

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=56828
2024-06-13 10:55:22 +02:00
Shengdun Wang 1163e39937 ucrtbase: Fix FILE _flag values. 2024-06-12 21:06:06 +02:00
Piotr Caban fc8121d05f ucrtbase: Fix _iobuf struct layout. 2024-06-12 20:54:27 +02:00
Zebediah Figura be427c312b server: Generalize get_directory_entries to single_entry case. 2024-06-11 16:51:27 +02:00
Zebediah Figura af4f252ac4 ntdll: Implement reading multiple entries in NtQueryDirectoryObject.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=52585
2024-06-11 16:51:27 +02:00
Alexandre Julliard edce2ef692 ntdll: Remove some unnecessary asm macros on ARM plaforms. 2024-06-11 10:30:19 +02:00
Rémi Bernon 8ba51a6f71 win32u: Call NtUserMapWindowPoints with per-monitor DPI from the drivers. 2024-06-10 22:47:00 +02:00
Alexandros Frantzis 37e7038c5c server: Implement key auto-repeat request. 2024-06-07 21:00:10 +02:00
Rémi Bernon bb772c2f3e include: Add and fix some WGL prototypes. 2024-06-07 20:56:56 +02:00
Rémi Bernon 979d36969c win32u: Pass the rect DPI to NtUserIsWindowRectFullScreen. 2024-06-06 10:40:40 +02:00
Rémi Bernon 64639c93c8 win32u: Pass desired DPI to NtUserGet(Client|Window)Rect. 2024-06-06 10:40:40 +02:00
Rémi Bernon 9afb3057af win32u: Introduce NtUserAdjustWindowRect call for AdjustWindowRect*. 2024-06-06 10:40:39 +02:00
Rémi Bernon 9e9d2d43c1 win32u: Introduce new helpers to convert server rectangle_t. 2024-06-06 10:40:37 +02:00
Rémi Bernon 83a143efe0 win32u: Move UpdateLayeredWindow implementation out of the drivers. 2024-06-05 16:38:25 +02:00
Rémi Bernon 091883d4b6 win32u: Introduce a new CreateLayeredWindow driver entry. 2024-06-05 16:38:25 +02:00
Rémi Bernon 6b8cdda502 gdi32: Use an internal NtUser call for D3DKMTOpenAdapterFromGdiDisplayName.
Fixes a deadlock with display_device_init mutex and display_lock when
trying to open the D3DKMT adapter while holding the mutex in the caller.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=56764
2024-06-05 15:58:26 +02:00
Rémi Bernon b89c9c60d5 win32u: Move desktop resize on WM_DISPLAYCHANGE out of the drivers. 2024-06-04 22:25:12 +02:00
Rémi Bernon 0a2ae3c41d win32u: Send display change messages when host display mode changes.
Similarly to when it is changed from an application call, but avoid
broadcasting WM_DISPLAYCHANGE to all windows when called from the
drivers, as we may have done it already.
2024-06-04 22:25:09 +02:00
Rémi Bernon 09b9c1b5fe win32u: Restore surface rect, which may offsetted from the window rect.
Some drivers only create surfaces over the visible part of the window,
and the surface rect has an offset.

Fixes a regression from 5d0efbcc6e, which
causes XSHM errors with partially offscreen windows.
2024-06-04 22:22:01 +02:00
Elizabeth Figura 325c365786 include: Add more types to windows.networking.connectivity.idl.
Based on a patch by Alistair Leslie-Hughes.
2024-06-04 09:49:45 +02:00
Rémi Bernon b6abacbb7b win32u: Create a HBITMAP backing the window surface pixels. 2024-06-03 23:25:00 +02:00
Rémi Bernon 444436abfd win32u: Pass BITMAPINFO and a HBITMAP to window_surface_init. 2024-06-03 23:24:59 +02:00
Rémi Bernon 3c7dc5f132 win32u: Move the window surface color bits to the common struct. 2024-06-03 23:24:59 +02:00
Mohamad Al-Jaf 05ff16ebb6 include: Add dispatcherqueue.idl file. 2024-06-03 23:24:59 +02:00
Eric Pouech 0327b00d10 winedump: Dump correct handle information for minidump.
Signed-off-by: Eric Pouech <epouech@codeweavers.com>
2024-05-31 19:04:23 +02:00
Alistair Leslie-Hughes 6f927b9e93 include: Add missing TreeView_* defines. 2024-05-31 11:26:37 +02:00
Alistair Leslie-Hughes b6eada5e2f include: Correct IRowsetNotify HROW parameter type. 2024-05-30 19:55:57 +02:00
Alistair Leslie-Hughes 447f817445 include: Add IPreviewHandler* interfaces. 2024-05-30 19:55:55 +02:00
Alistair Leslie-Hughes 4aed0ef880 include: Add LOGFONTA/W typedef in shtypes.idl. 2024-05-30 19:55:48 +02:00
Rémi Bernon 8d587a47eb win32u: Use a helper to set the window surface clipping, within the lock. 2024-05-30 19:53:21 +02:00
Rémi Bernon 7cdf20267c server: Merge get_surface_region / get_window_region requests together. 2024-05-30 19:53:21 +02:00
Rémi Bernon d2ad7c9374 win32u: Initialize window surfaces with a hwnd. 2024-05-30 19:52:59 +02:00
Vijay Kiran Kamuju 349c2275d4 ntdll: Add stub RtlLookupGenericTableAvl function.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=56736
2024-05-30 13:26:17 +02:00
Rémi Bernon 5d0efbcc6e win32u: Use a helper to flush window surface, factor locking and bounds reset. 2024-05-29 22:37:32 +02:00
Rémi Bernon 370966f51b win32u: Move window surface bounds to the window_surface base struct. 2024-05-29 22:27:39 +02:00
Rémi Bernon 1565d529ba win32u: Use helpers to lock/unlock window surfaces. 2024-05-29 22:27:39 +02:00
Rémi Bernon 00aec714dd win32u: Move the window surface mutex to the surface header. 2024-05-29 22:27:39 +02:00
Rémi Bernon ac63239cc0 win32u: Introduce a new window_surface_init helper. 2024-05-29 22:27:38 +02:00
Rémi Bernon a3b22d3bf7 win32u: Only keep DPI awareness context with window objects. 2024-05-28 20:45:11 +02:00
Rémi Bernon 37252fd505 win32u: Fix SetThreadDpiAwarenessContext. 2024-05-28 20:44:39 +02:00
Rémi Bernon dc05a4499e win32u: Pass the DPI awareness context in win_proc_params. 2024-05-28 20:44:39 +02:00
Rémi Bernon cda7027bc8 win32u: Get the thread DPI context instead of the awareness. 2024-05-28 20:44:39 +02:00
Rémi Bernon b3bec339d7 win32u: Use NtGdiDdDDICreateDCFromMemory for gdi16 DIBDRV.
Instead of a custom dib_window_surface.
2024-05-27 22:59:21 +02:00
Rémi Bernon b6223da118 win32u: Return UINT from NtUserGetWindowDpiAwarenessContext. 2024-05-27 22:59:21 +02:00
Rémi Bernon bcb33fd859 win32u: Use NtUserCallOnParam for SetThreadDpiAwarenessContext.
And an internal function call when possible.
2024-05-27 22:59:21 +02:00
Rémi Bernon 9f834614a9 user32: Test and implement GetDpiFromDpiAwarenessContext. 2024-05-27 22:59:21 +02:00
Rémi Bernon 04470e1eda win32u: Get rid of the UpdateDisplayDevices force parameter. 2024-05-27 13:11:36 +02:00
Rémi Bernon f7f213bdf8 win32u: Get rid of the drivers force_display_devices_refresh flag. 2024-05-27 13:11:36 +02:00
Alistair Leslie-Hughes ae6aa1c8a4 include: Add IFACEMETHOD macros. 2024-05-27 13:11:20 +02:00
Alistair Leslie-Hughes ccc803a06c include: Correct ListView_GetItemIndexRect macro. 2024-05-27 13:11:18 +02:00
Alistair Leslie-Hughes fc9fd3c5c3 include: Added sqlucode.h to sql.h. 2024-05-27 13:08:08 +02:00
Rémi Bernon 6ee5c60d5d win32u: Fix NtUserSetProcessDpiAwarenessContext. 2024-05-24 18:42:23 +02:00
Alexandre Julliard b9638ebc1c kernelbase: Fix the name of the default system locale. 2024-05-24 11:15:33 +02:00
Alistair Leslie-Hughes 77583eed19 include: Add C++ support for IUnknown. 2024-05-24 10:58:58 +02:00
Alistair Leslie-Hughes 5813a1fe23 include: Complete __wine_uuidof for C++.
/usr/local/include/wine/windows/guiddef.h:83:68: error: incomplete type ‘__wine_uuidof_type<IUnknown>::inst’ {aka ‘__wine_uuidof<IUnknown>’} used in nested name specifier
   83 | #define __uuidof(type) __wine_uuidof_type<__typeof__(type)>::inst::uuid
2024-05-24 10:58:58 +02:00
Jacek Caban 434702fdc9 ntdll: Use assembly wrapper for unixlib calls on ARM64EC.
Instead of using indirect C calls, which need to go through the call dispatcher.
2024-05-23 12:20:48 +02:00
Alexandre Julliard 127650c293 ntdll: Make __wine_unix_call() an inline function. 2024-05-23 12:20:48 +02:00
Rémi Bernon 1e21f30007 win32u: Query GPU memory from vulkan physical device. 2024-05-21 20:35:01 +02:00
Alexandros Frantzis 653f00cf3e opengl32: Remove the wglDescribePixelFormat driver entry point.
All drivers have now switched to the get_pixel_formats entry point.
2024-05-20 11:57:16 +02:00
Alistair Leslie-Hughes 849baece66 include: Add some D3D12_FEATURE_DATA_D3D12_OPTIONS* types. 2024-05-15 22:51:34 +02:00
Hans Leidekker af3a8fa27b odbc32: Don't load libodbc.so dynamically.
Implementations are guarded by native function pointer checks but all functions
have been present in libodbc for a very long time, so it doesn't appear to be
needed anymore.

The loading code checks the LIB_ODBC_DRIVER_MANAGER environment variable to
allow the user to override the system version of the library. This can be
achieved by other means, if it's still needed.
2024-05-14 18:18:52 +02:00
Hans Leidekker d206e3ab33 include: Add missing Unicode SQL function declarations. 2024-05-14 18:13:12 +02:00
Georg Lehmann 6d896d9be0 winevulkan: Update to VK spec version 1.3.285. 2024-05-12 16:33:19 +02:00
Rémi Bernon bf64ae2627 mfplat: Implement MFCreateVideoMediaType. 2024-05-12 16:32:25 +02:00
Rémi Bernon 9fac589765 mfplat: Implement MFInitMediaTypeFromMPEG2VideoInfo. 2024-05-12 16:32:24 +02:00
Rémi Bernon 8c77a1a099 mfplat: Implement MFInitMediaTypeFromMPEG1VideoInfo. 2024-05-12 16:32:23 +02:00
Paul Gofman 0884b503c9 win32u: Update last message time in NtUserGetRawInputBuffer(). 2024-05-12 16:31:50 +02:00
Daniel Lehman 243a014123 msvcrt/tests: Add tests for _wcsicmp_l. 2024-05-12 16:26:51 +02:00
Nikolay Sivov a1dadf3683 d2d1/effect: Fix GetImageLocalBounds() prototype.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
2024-05-12 16:26:17 +02:00
Rémi Bernon 9c93676d0c win32u: Return STATUS_ALREADY_COMPLETE from UpdateDisplayDevices.
When no display cache update is needed.
2024-05-07 22:49:44 +02:00
Rémi Bernon d525da5907 win32u: Pass gdi_gpu structure members as add_gpu parameters. 2024-05-07 22:49:44 +02:00
Rémi Bernon 0300016ac5 win32u: Remove driver-specific id from struct gdi_gpu. 2024-05-07 22:49:44 +02:00
Rémi Bernon 62c60a9e10 win32u: Use struct pci_id in struct gdi_gpu. 2024-05-07 22:49:44 +02:00
Biswapriyo Nath 469a4837bc include: Avoid a C++ keyword.
This fixes the following C++ compiler error

mfmediaengine.h:1216:18: error: expected ',' or '...' before 'protected'
 1216 |            BOOL *protected) = 0;
      |                  ^~~~~~~~~
2024-05-06 22:20:24 +02:00
Rémi Bernon d519cf6ccc win32u: Move thread detach from winex11. 2024-05-01 22:33:53 +02:00
Rémi Bernon f30f8a4258 win32u: Return the host surface directly from vulkan_surface_create. 2024-05-01 22:33:04 +02:00
Paul Gofman aa122902a9 msvcrt: Implement _mbsncpy_s[_l](). 2024-05-01 22:31:43 +02:00
Paul Gofman deb273a926 ntdll: Implement NtQuerySystemInformation(SystemProcessIdInformation). 2024-05-01 16:54:00 +02:00
Kirill Zhumarin 898ab8dab1 ntdll: Use termios2 for serial when possible. 2024-04-30 22:32:51 +02:00
Alfred Agrell 393dcb5dbb include: Use the correct GUID for DXFILEOBJ_PatchMesh. 2024-04-29 17:35:26 +02:00
Dmitry Timoshkov a113adedea include: Move InterlockedExchangeAdd64() definition before its first usage.
This fixes Wine tests compilation with Visual Studio 10.0.

Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
2024-04-27 17:36:02 +02:00
Dmitry Timoshkov 86b26a9eef include: Add _Inout_cap_c_(count) macro.
This fixes Wine tests compilation with Visual Studio 10.0 CRT headers.

Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
2024-04-27 17:35:57 +02:00
Matteo Bruni fce938694f wined3d: Rename WINED3DUSAGE_PRIVATE to WINED3DUSAGE_CS.
Which is really what it means nowadays: resources created by the
CS. It has mostly implications WRT thread safety.

In particular, the flag doesn't mean that the resource doesn't
participate in memory accounting (that was split into
WINED3DUSAGE_VIDMEM_ACCOUNTING by
723cd0a4ae), nor that it isn't checked
for Reset purposes (we use parent == NULL for that).
2024-04-26 23:21:57 +02:00
Paul Gofman 04a2917f6b ntdll: Store exception reporting flags in server context. 2024-04-26 23:21:57 +02:00
Paul Gofman e1a816a347 ntdll/tests: Add tests for CONTEXT_EXCEPTION_REQUEST. 2024-04-26 23:21:56 +02:00
Alistair Leslie-Hughes c81c6fca50 include: Add atldef.h. 2024-04-25 22:44:44 +02:00
Rémi Bernon 8653ed03de win32u: Move host surface destruction out of the drivers. 2024-04-25 12:57:46 +02:00
Rémi Bernon 34d288a939 win32u: Pass HWND directly to vulkan surface creation driver callback.
And to destroy, it'll be useful later.
2024-04-25 12:57:43 +02:00
Rémi Bernon 334a100a8e win32u: Rename vulkan surface creation/destroy driver callbacks. 2024-04-25 12:57:43 +02:00
Rémi Bernon 50584bcc02 winevulkan: Pass win32u surface wrappers for each vkQueuePresent swapchain. 2024-04-25 12:57:43 +02:00
Rémi Bernon 46713b03a7 win32u: Introduce a distinct vulkan interface between win32u and the user drivers. 2024-04-25 12:57:42 +02:00
Alexandros Frantzis 9943ab6e20 opengl32: Implement wglDescribePixelFormat using new driver API get_pixel_formats.
Introduce a new wgl driver callback function to allow the driver to provide
a complete list of all pixel formats and their attributes. If the driver
provides the information use it to implement wglDescribePixelFormat.
2024-04-24 17:15:44 +02:00
Alexandre Julliard 522cecf67c include: Update a couple of RPC structures. 2024-04-23 11:44:25 +02:00
Isaac Marovitz d821ddaa20 ntdll: Implement NtQueueApcThreadEx(). 2024-04-17 22:34:44 +02:00
Vijay Kiran Kamuju f42391b52c netapi32: Add NetRemoteTOD stub.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=56369
2024-04-17 22:31:19 +02:00
Rémi Bernon 320442a48b win32u: Add all display device source modes at once. 2024-04-15 18:10:53 +02:00