Commit graph

16514 commits

Author SHA1 Message Date
Alexandre Julliard 718068c42c include: Disallow fastcall functions in Unix libraries. 2023-06-19 16:28:54 +02:00
Andrey Gusev a5ea2c57c9 include: Add flags in D3D11_RESOURCE_MISC_FLAG. 2023-06-19 13:17:13 +02:00
Rémi Bernon 8d2de5dbe1 win32u: Use a specific flag instead of shrinking the clip rect.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=55047
2023-06-16 21:42:44 +02:00
Georg Lehmann 7eb75124e7 winevulkan: Update to VK spec version 1.3.254. 2023-06-16 17:55:39 +02:00
Alexandre Julliard 250efdf0c6 include: Don't support stdcall functions on non-i386. 2023-06-14 18:53:36 +02:00
Rémi Bernon 3afff1a690 win32u: Add a hwnd parameter to SetCursor driver entry points. 2023-06-13 22:10:56 +02:00
Rémi Bernon 25906eedd8 server: Introduce and send new WM_WINE_SETCURSOR hardware message. 2023-06-13 22:10:56 +02:00
Alexandre Julliard 11cd51139d ntdll: Support the lower memory limit in MEM_ADDRESS_REQUIREMENTS. 2023-06-13 22:10:56 +02:00
Alexandre Julliard 2705e6c319 server: Also enforce the size of varargs data structures. 2023-06-13 22:10:56 +02:00
Tatsuyuki Ishi d24dcb1ec5 win32u: Cleanup naming and log messages for QueryDisplayConfig.
Signed-off-by: Tatsuyuki Ishi <ishitatsuyuki@gmail.com>
2023-06-12 21:21:42 +02:00
Tatsuyuki Ishi c2c9112bf8 win32u: Move QueryDisplayConfig from user32.
Signed-off-by: Tatsuyuki Ishi <ishitatsuyuki@gmail.com>
2023-06-12 21:21:42 +02:00
Alexandre Julliard 912fd620db makefiles: Define WINE_UNIX_LIB for all files that are built for Unix. 2023-06-12 21:21:41 +02:00
Alexandre Julliard 93630ce14e include: Remove redundant __WINE_USE_MSVCRT checks. 2023-06-12 21:21:41 +02:00
Shaun Ren b24c1abf62 include: Add sperror error code SPERR_UNSUPPORTED_FORMAT. 2023-06-09 10:34:44 +02:00
Shaun Ren 615852a97f sapi: Add GUIDs SPDFID_Text/WaveFormatEx. 2023-06-09 10:34:43 +02:00
Zebediah Figura 14c44d0b0a xaudio2: Use the preprocessor to modify definitions in xaudio2.idl and xaudio2fx.idl.
Instead of including the IDLs directly, define a local IDL that #includes them,
with XAUDIO2_VER defined, and include that generated header.

Get rid of compat.c, and use XAUDIO2_VER to modify the code in the other source
files.

Build the tests for both xaudio2_7 and xaudio2_8 using PARENTSRC, and use
XAUDIO2_VER to select between them. This mirrors the approach taken for
d3dcompiler, and makes it easier to test more xaudio2 versions in the future.
2023-06-07 22:48:27 +02:00
Rémi Bernon b7570b798e win32u: Add a reset parameter to WM_WINE_CLIPCURSOR and driver ClipCursor. 2023-06-07 22:48:27 +02:00
Alexandre Julliard 6b5561b601 server: Send the APC call data as vararg in the select request. 2023-06-06 21:51:43 +02:00
Alexandre Julliard e3049f11fa server: Send the APC call data as vararg in the queue_apc request.
To make it possible to support a larger structure.
2023-06-06 21:51:37 +02:00
Alexandre Julliard b337c5b1a1 ntdll: Use the default ABI for all functions on the Unix side. 2023-06-02 09:50:50 +02:00
Alexandre Julliard 48537f4e1e ntdll: Use the sysv ABI for setjmp/longjmp on the Unix side. 2023-06-02 09:35:10 +02:00
Alex Henrie 870a9fcb4c iphlpapi: Add GetPerTcpConnectionEStats stub.
Based on a patch by Austin English.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=52868
2023-06-02 09:29:24 +02:00
Alexandre Julliard 7d279bcd3b include: Only declare __wine_unix_call() on the PE side. 2023-06-01 20:57:32 +02:00
Alexandre Julliard 231f1854f5 ntdll: Don't use WINAPI for KeUserModeCallback(). 2023-06-01 15:56:13 +02:00
Alex Henrie 4050ceb22f iphlpapi: Add GetCurrentThreadCompartmentId stub and a test.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=54599
2023-05-31 22:50:10 +02:00
Alexandre Julliard a315420d31 win32u: Don't use WINAPI for the font enumeration function. 2023-05-31 13:35:53 +02:00
Jacek Caban 8c5dd2214e win32u: Don't use CDECL for gdi_dc_funcs entries. 2023-05-31 12:48:52 +02:00
Jacek Caban 7aa109501c wineps: Don't include gdi_driver.h from PE module. 2023-05-31 12:48:51 +02:00
Alexandre Julliard 56cfbf6b86 include: Only enable the non-inline NtCurrentTeb() on the Unix side. 2023-05-31 12:32:11 +02:00
Martin Storsjö 0fac6bcfa4 include: Fix the use of __getReg for aarch64/msvc mode.
Clang requires the __getReg function to be declared in addition to
be declared as an intrinsic with the pragma.

This fixes the following error:

../wine/include/winnt.h:2412:27: error: call to undeclared library function '__getReg' with type 'unsigned long long (int)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
    return (struct _TEB *)__getReg(18);
                          ^
../wine/include/winnt.h:2412:27: note: include the header <intrin.h> or explicitly provide a declaration for '__getReg'
1 error generated.

Signed-off-by: Martin Storsjö <martin@martin.st>
2023-05-31 10:08:02 +02:00
Rémi Bernon f7d45533d1 explorer: Call user driver through a new CreateDesktop callback. 2023-05-30 13:45:43 +02:00
Rémi Bernon 15dfe2ed2d win32u: Rename user driver CreateDesktopWindow entry to SetDesktopWindow.
This doesn't create anything, but instead notifies the user driver of
the current desktop window, either when it is created, or when a thread
calling NtUserGetDesktopWindow receives the current desktop window.
2023-05-30 13:45:33 +02:00
Georg Lehmann 8190aa25a0 winevulkan: Update to VK spec version 1.3.251. 2023-05-30 12:25:25 +02:00
Rémi Bernon 61dbfea452 server: Assume the internal clip message to be WM_WINE_CLIPCURSOR. 2023-05-30 12:25:25 +02:00
Alistair Leslie-Hughes d476a4cad7 include: Use STDMETHOD when returning HRESULT. 2023-05-30 12:24:21 +02:00
Alistair Leslie-Hughes cd8c46f9e4 xactengine: Correct interfaces for IXACT3Cue. 2023-05-30 12:24:02 +02:00
Paul Gofman fce615a2c3 ntdll: Support MEM_PRESERVE_PLACEHOLDER in NtUnmapViewOfSectionEx(). 2023-05-30 12:12:09 +02:00
Paul Gofman 4806b1c226 kernelbase/tests: Add tests for MEM_PRESERVE_PLACEHOLDER with UnmapViewOfFile2(). 2023-05-30 12:12:09 +02:00
Alexandre Julliard 7f088b0b13 ntdll: Use x18 for the TEB on ARM64. 2023-05-30 12:12:09 +02:00
Alexandre Julliard 62173699c3 include: Don't align the stack for PE builds. 2023-05-30 12:12:09 +02:00
Jacek Caban b601e3fa97 win32u: Use syscall interface for all exports. 2023-05-29 11:37:09 +02:00
Jacek Caban da4663d640 win32u: Don't return full OUTLINETEXTMETRICW from __wine_get_file_outline_text_metric. 2023-05-29 11:37:08 +02:00
Jacek Caban ab88c7cbb1 win32u: Implement NtGdiIcmBrushInfo and use it instead of __wine_get_brush_bitmap_info. 2023-05-29 11:37:07 +02:00
Alexandre Julliard 30040cc9d7 ntdll: Also update the entry point address when loading an ARM64X binary. 2023-05-26 21:24:08 +02:00
Jacek Caban 0c73b717fb win32u: Pass blend function as DWORD to NtGdiAlphaBlend. 2023-05-25 16:26:08 +02:00
Alexandre Julliard f6f38e2490 server: Return STATUS_IMAGE_MACHINE_TYPE_MISMATCH when the mapping's machine differs from the process. 2023-05-25 16:21:17 +02:00
Alexandre Julliard c306e76645 server: Add a separate request to create a memory view for an image mapping. 2023-05-25 16:21:17 +02:00
André Zwing dfe94187c0 winedump: Recognize RISC-V PEs. 2023-05-24 18:39:47 +02:00
Alexandre Julliard 4356fe0d83 ntdll: Support the PS_ATTRIBUTE_MACHINE_TYPE attribute for new processes. 2023-05-24 15:43:54 +02:00
Alexandre Julliard ebc1b09915 ntdll: Support the machine extended parameter in NtMapViewOfSectionEx(). 2023-05-23 13:24:32 +02:00
Connor McAdams 7f119bad76 include: Define the remaining missing provider interfaces.
Signed-off-by: Connor McAdams <cmcadams@codeweavers.com>
2023-05-22 22:56:29 +02:00
Rémi Bernon 65d0f7a756 imm32: Remove now unused members from ime_private.
And move its definition to ime.c.
2023-05-19 08:49:09 -05:00
Rémi Bernon 9b4c09d8c4 winex11: Post internal WM_IME_NOTIFY wparam on composition updates. 2023-05-18 09:09:14 -05:00
Rémi Bernon 4e92c57221 winex11: Send an internal WM_IME_NOTIFY wparam to set open status. 2023-05-18 09:09:14 -05:00
Piotr Caban 7a15c777b1 include: Add ddk/winddi.h header. 2023-05-16 08:05:07 -05:00
Rémi Bernon bfa19f8c7e win32u: Introduce a new ImeToAsciiEx call through NtUserMessageCall. 2023-05-12 17:50:49 +02:00
Rémi Bernon c7dc10b192 win32u: Introduce a new ImeProcessKey call through NtUserMessageCall. 2023-05-12 17:50:49 +02:00
Alexandre Julliard 1d368b3789 server: Move the Wine-specific flags out of the image_flags field. 2023-05-12 17:50:48 +02:00
Alexandre Julliard 8f9c0c825d server: Add a separate request to create a memory view for a .so builtin. 2023-05-12 17:50:26 +02:00
Alexandre Julliard f83ec675bd win32u: Don't use floating point types in syscalls. 2023-05-12 11:39:10 +02:00
Rémi Bernon 56d0b870b6 win32u: Introduce new NtUserNotifyIMEStatus syscall. 2023-05-10 21:21:25 +02:00
Alexandre Julliard 4b8f3dd9a5 ntdll: Support extended address requirements in NtMapViewOfSectionEx(). 2023-05-10 17:08:48 +02:00
Brendan Shanks 820a9d0d6c include: Implement C_ASSERT() using the C11 _Static_assert() if available. 2023-05-09 14:52:06 +02:00
Rémi Bernon 39696138a6 winemac: Send IME key input from ImeProcessKey. 2023-05-09 14:50:42 +02:00
Alexandre Julliard 5b6e82f0f9 ntdll: Handle the extended memory attributes in NtAllocateVirtualMemoryEx(). 2023-05-09 14:28:04 +02:00
Alexandre Julliard f2623cca38 ntdll: Implement RtlIsEcCode(). 2023-05-09 14:28:04 +02:00
Alexandre Julliard c722353c87 ntdll: Support the ARM64EC code map. 2023-05-09 14:11:19 +02:00
Zebediah Figura 8fb562f7c2 ntdll: Fix the prototype of NtDuplicateToken().
The fourth parameter is a boolean flag. The impersonation level is specified
only through the SECURITY_QUALITY_OF_SERVICE structure.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=54913
2023-05-08 20:02:26 +02:00
David Kahurani 49baaf133e shlwapi: Implement StrFormatByteSizeEx.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=54733
Signed-off-by: David Kahurani <k.kahurani@gmail.com>
2023-05-08 10:56:01 +02:00
Georg Lehmann e32711dd2f winevulkan: Update to VK spec version 1.3.250. 2023-05-04 18:48:48 +02:00
Zebediah Figura c7d8a1b47a wined3d: Directly call wined3d_texture_create() to create swapchain textures.
Get rid of the create_swapchain_texture callback.
2023-05-04 18:44:48 +02:00
Ake Rehnman 5a3fd972f4 ntdll: Fix RtlValidSecurityDescriptor() return value.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
2023-05-03 16:48:44 +02:00
Ake Rehnman f6e11d6566 ntdll: Fix return value of RtlInitializeSid().
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
2023-05-03 16:48:44 +02:00
Mohamad Al-Jaf 2b32ba593d include: Add hrtfapoapi.idl file. 2023-05-02 22:21:26 +02:00
Biswapriyo Nath 2b7ba08743 include: Add DXGI_DEBUG_D3D11 in d3d11sdklayers.idl.
Required for libplacebo.

Signed-off-by: Biswapriyo Nath <nathbappai@gmail.com>
2023-05-01 18:34:25 +02:00
Connor McAdams ba927e507b uiautomationcore: Add UiaNodeFromFocus stub.
Signed-off-by: Connor McAdams <cmcadams@codeweavers.com>
2023-04-28 20:56:10 +02:00
Alexandre Julliard 4e72c0016b include: Add some new ProcThreadAttribute definitions. 2023-04-28 14:30:58 +02:00
Piotr Caban d317db91f2 gdi32: Store the printer info in a structure. 2023-04-27 18:34:09 +02:00
Shaun Ren 7f1df4b27d include: Add ISpTTSEngineSite and ISpTTSEngine interfaces. 2023-04-26 22:49:17 +02:00
Shaun Ren 5f977d2fa8 include: Add more sapi structs and enums. 2023-04-26 22:49:17 +02:00
Zebediah Figura 4413e94908 dxgi: Introduce IWineDXGIDeviceParent::register_swapchain_texture() and use it in IDXGIDevice::CreateSurface().
Instead of having d3d11 create the wined3d texture, create it in dxgi instead,
and let d3d11 create a d3d_texture2d object to wrap it.

This is a step towards getting rid of the create_swapchain_texture() callback,
which is mildly difficult to work with and conceptually complex.
2023-04-26 22:49:17 +02:00
Mohamad Al-Jaf c12ccd6f80 shell32: Implement SHBindToFolderIDListParent().
Called by IE11.

Signed-off-by: Mohamad Al-Jaf <mohamadaljaf@gmail.com>
2023-04-26 22:49:16 +02:00
Mohamad Al-Jaf 4ce24eb9be include: Add appnotify.h file. 2023-04-25 17:59:14 +02:00
Francois Gouget e6ac3499a5 wininet: Add constants for DetectAutoProxyUrl(). 2023-04-20 09:47:28 +02:00
Connor McAdams a97cdeaf20 uiautomationcore: Implement UiaGetRootNode.
Signed-off-by: Connor McAdams <cmcadams@codeweavers.com>
2023-04-19 22:00:46 +02:00
Jinoh Kang 7c4eb574f0 ntdll: Implement RtlFreeActivationContextStack(). 2023-04-19 20:26:15 +02:00
Alexandre Julliard 36203f1b86 include: Update the PEB and TEB structures.
According to Geoff Chappell's information.
2023-04-19 16:44:54 +02:00
Alexandre Julliard b7f6620c01 include: Add the ARM64EC context structure. 2023-04-19 14:31:00 +02:00
Mohamad Al-Jaf 0b4dc016b9 include: Add windows.graphics.capture.interop.idl file.
Needed for PyWinRT.
2023-04-18 21:33:17 +02:00
Eric Pouech 812b4b1ca3 dbghelp: Use source file path as stored in debug info format.
Currently, dbghelp returns the source file either:
- in DOS format when native module option isn't enabled
- as stored in debug info format otherwise

This used to work for PE modules inside ELF shared libraries but is broken
since evolution to REAL modules. This generates several issues:
- winedbg does not always set the native module option when calling dbghelp
  for source file related functions, leading to heterogenous output to user
- some dbghelp function rely on matching source paths, hence leading to
  errors in winedbg when mixing the two formats for the same source file.

Introduce a new Wine only dbghelp option to return the source paths as they
are stored inside debug information format, and activate it unconditionaly
inside winedbg.

This fixes some failure cases of command 'break <NN>' in winedbg.

Signed-off-by: Eric Pouech <epouech@codeweavers.com>
2023-04-18 18:17:44 +02:00
Alexandre Julliard 6e348640c5 include: Add some CHPE definitions. 2023-04-18 17:49:23 +02:00
Zebediah Figura 83518a6810 wined3d: Allow retrieving the frontbuffer from a wined3d swapchain.
For ddraw.
2023-04-18 16:48:17 +02:00
Martin Garton 0dda5753c5 msvcrt: Fix typo in #define. 2023-04-18 10:23:52 +02:00
Piotr Caban 8b48ee987f include: Add EMRTRANSPARENTBLT definition. 2023-04-13 21:56:58 +02:00
Rémi Bernon e164515549 include: Add INPUTCONTEXT fdwInit flags definitions. 2023-04-13 16:18:37 +02:00
Mohamad Al-Jaf a7569e3ee9 include: Add windows.ui.composition.interop.idl file.
Needed for mingw Firefox build.
2023-04-13 10:25:20 +02:00
Stefan Dösinger 64eed89a53 include: X86 msvc has _InterlockedExchangePointer and _InterlockedCompareExchangePointer.
I fixed this issue in ad05f33d67, but a40973f20 regressed this again. I
was carrying a patch for quite a while, feeling dejavu.

According to boost they are available since MSVC 2015. I don't have old
versions of msvc hanging around, and we don't put much value in keeping
old versions working, so just use them unconditionally.
2023-04-11 12:36:53 +02:00
Biswapriyo Nath 467604c661 include: Fix IDirectXVideoDecoderService declaration in dxva2api.idl.
This matches the declaration with official documentation and fixes
the following two compiler errors in apitrace project.

d3d9trace.cpp:28469:59: error: invalid conversion from 'const DXVA2_ConfigPictureDecode*' to 'DXVA2_ConfigPictureDecode*' [-fpermissive]
d3d9trace.cpp:28194:65: error: invalid conversion from 'void*' to 'IUnknown*' [-fpermissive]

Signed-off-by: Biswapriyo Nath <nathbappai@gmail.com>
2023-04-10 21:54:17 +02:00
Jactry Zeng eef4393fb7 include: Add FWF_NONE. 2023-04-10 14:18:00 +02:00
Francois Gouget 8d2146934c iphlpapi: Fix the GAA_FLAG_INCLUDE_GATEWAYS constant name. 2023-04-10 14:18:00 +02:00