3831 Commits
Author SHA1 Message Date
Timo Kreuzer dea50f4746 [SPEC2DEF] Ignore -import flag in spec files
These are used by wine for exports that re-export the import stub function from an import library.
We don't need to do anything here, so simply ignore it.
2026-06-19 19:27:29 +00:00
Timo Kreuzer 7fa69c0f8a [SPEC2DEF] Fix version handling for ordinals
Prevents an error about duplicate ordinals, if 2 entries for different OS versions have the same ordinal.
2026-06-19 19:27:29 +00:00
Timo Kreuzer 628ce75acd [SHCORE] Import from Wine-10.0 2026-06-18 23:27:41 +00:00
Timo Kreuzer 991830a0e8 [CRTHEAP] Add static library for crt heap functions
The purpose is to link to this library for wine modules that use only malloc/free/calloc/_recalloc, so they don't require to be linked to msvcrt.
2026-06-18 23:27:41 +00:00
Katayama Hirofumi MZ b7932431e7 [SDK][SHELL32_APITEST][USER32_APITEST] Update <msgdump.h> to version 21 (#9171)
Modernize development tools.
JIRA issue: N/A
- Update <msgdump.h> to
  version 21.
- Adapt shell32_apitest and
  user32_apitest.
2026-06-17 23:37:30 +09:00
Justin Miller 77d883a64d [SDK] Improve KDNET type headers
Split shared data types into kdnetshareddata.h

CORE-20385
2026-06-15 08:42:50 -07:00
Hervé Poussineau 8bef246a10 [SDK] Implement type header for KDNET and its extensions
CORE-20385
2026-06-15 08:42:50 -07:00
Katayama Hirofumi MZ 9e3a4d5be5 [SHLWAPI][SDK] Support IUnknown_ShowBrowserBar (#9161)
Implementing missing features...
JIRA issue: CORE-19278
- Implement
  IUnknown_ShowBrowserBar
  function.
- Modify shlwapi.spec.
- Add prototype into
  <shlwapi_undoc.h>.
2026-06-15 22:44:46 +09:00
Katayama Hirofumi MZ 1d5d93f05f [SHLWAPI][SHLWAPI_APITEST][SDK] Support MapWin32ErrorToSTG (#9147)
Implementing missing features...
JIRA issue: CORE-19278
- Implement MapWin32ErrorToSTG function.
- Modify shlwapi.spec.
- Add prototype to <shlwapi_undoc.h>.
- Add MapWin32ErrorToSTG testcase.
2026-06-14 11:12:21 +09:00
Katayama Hirofumi MZ 300e1d525d [MSVCRT][CRT][UCRT] Disable intrinsic string functions on MSVC (#9157)
VS2022 version 17.2 and later (`_MSC_VER >= 1932`) added new intrinsic
functions (`strncmp`, `strncpy`, `wcsncmp`, and `wcsncpy`).
As we implement these ourselves, we have to avoid compiler error C2169.

This problem surfaced with a recent GitHub Actions update:
https://github.com/actions/runner-images/issues/14017

Use `#pragma function(...)` to disable new intrinsic functions.
2026-06-13 18:10:15 +03:00
Hermès Bélusca-Maïto c0f1450076 [NDK][XDK][SYSUTILS:PS] Update the KWAIT_REASON enumeration
Validated with the System Informer phnt headers[^1].
Versioning added for Windows 8+ values, from Vergilius[^2].

[^1]: phnt headers and documentation from:
  https://ntdoc.m417z.com/kwait_reason
  https://github.com/winsiderss/systeminformer/blob/5311c5ff7ebe0a900a792730395faf147d4451b9/phnt/include/ntkeapi.h#L49

[^2]: https://www.vergiliusproject.com
2026-06-11 22:40:28 +02:00
Amine Khaldi cd52345fe0 [SDK] wine/test.h: Centralize oleauto.h inclusion to address undefined reference to wine_dbgstr_variant even in modules that don't have automatic test discovery (no testlist.c file). CORE-20606 2026-06-09 20:12:05 +01:00
Timo Kreuzer 4ba2db3c6e [KERNELBASE][PATHCCH] Unhack path.c 2026-06-09 17:40:07 +00:00
Timo Kreuzer 15b446c4de [PSDK] winnls.h: Add some missing definitions 2026-06-09 17:40:07 +00:00
Timo Kreuzer 6d0ff7a62a [PSDK] Add timezoneapi.h and use it from winbase.h 2026-06-09 17:40:07 +00:00
Ahmed Arif 129623416c [SDK][CMAKE] Link libgcc_eh into C++ targets when available
The build uses -nostdlib which prevents GCC from auto-linking libgcc_eh.a. This library provides the SEH unwind symbols (_Unwind_Resume, __emutls_get_address, etc.) needed by C++ exception handling. Without it, any C++ target compiled with -fexceptions fails to link with undefined references to these symbols.

Add a libgcc_eh INTERFACE target that conditionally pulls in libgcc_eh.a when the toolchain provides it (as on SEH-enabled x86_64), falling back to a no-op otherwise (SJLJ/DWARF toolchains).
2026-06-08 16:51:52 +00:00
Carl J. Bialorucki 34bf566dd9 [SYSSETUP][BOOT] Add ReactOS Server Core install type
- Write InstallationType to registry.
- If installing as Server Core, set shell to cmd.exe.
- Rename "Product Option" to "Install Type" and adjust relevant variable names.
- Reserve Nano Server installation type for future use.

JIRA issue: CORE-20645
2026-06-08 10:11:57 -05:00
Whindmar Saksit 3b58b347bc [EXPLORER][SHELL32] Forward Explorer refresh command to the Start Menu (#9108) 2026-06-07 21:28:13 +02:00
Eric Kohl e2d6e875f9 [NETCFGX][REACTOS] Add a second unknown method to the ITcpipProperties interface
This method is called by the 'interface ip set address' command from WinXP ifmon.dll.
2026-06-07 10:19:56 +02:00
Katayama Hirofumi MZ c59ce34030 [SHLWAPI][SHLWAPI_APITEST][SDK] Support SHGetFileDescriptionA/W (#9109)
Implementing missing features...
JIRA issue: CORE-19278
- Implement PrettifyFileDescriptionW, SHGetFileDescriptionA,
  and SHGetFileDescriptionW functions.
- Modify shlwapi.spec.
- Add prototypes into <shlwapi_apitest.h>.
- Add SHGetFileDescription testcase.
2026-06-07 08:17:49 +09:00
Katayama Hirofumi MZ fe5b75083e [SHLWAPI][SHLWAPI_APITEST][SDK] Support NextPathA/W (#9039)
Implementing missing features...
JIRA issue: CORE-19278
- Implement NextPathA and
  NextPathW functions.
- Modify shlwapi.spec.
- Add prototypes into
  <shlwapi_undoc.h>.
- Add NextPath testcase.
2026-06-03 21:38:21 +09:00
Timo Kreuzer c806131675 [RTL][NTDLL] Implement RtlInterlockedPushListSListEx
It is the same function as RtlInterlockedPushListSList, but with stdcall calling convention instead of fastcall.
On x86 this is a wrapper, on all other architectures it is simply a forwarder.
2026-06-02 18:58:04 +00:00
Katayama Hirofumi MZ fe2b8ba41b [SHELL32][SDK] Support CShellDispatch::EjectPC (#9097)
Implementing missing features...
JIRA issue: N/A
- Implement CShellDispatch::EjectPC
  by using TRAYCMD_EJECT tray
  command.
- Add TRAYCMD_SUSPEND and
  TRAYCMD_REFRESH_MENU tray
  commands (they have no effect)
  into <undocshell.h>.
2026-06-02 17:39:56 +09:00
Eric Kohl 7f9e42cfe2 [IPHLPAPI][REACTOS] Implement NhGetGuidFromInterfaceName 2026-05-31 12:27:17 +02:00
Katayama Hirofumi MZ 3b3e1ff997 [SHLWAPI][SHLWAPI_APITEST][SDK] Support QuerySourceCreateFromKey (#9093)
Implementing missing features...
JIRA issue: CORE-20467
- Add querysrc.cpp.
- Add CRegistryEnumValues,
  CRegistryEnumKeys, and
  CRegistrySource classes.
- Implement
  QuerySourceCreateFromKey
  function.
- Add prototype into
  <shlwapi_undoc.h>.
- Modify shlwapi.spec.
- Add QuerySourceCreateFromKey
  testcase.
2026-05-31 17:33:17 +09:00
Katayama Hirofumi MZ f3ca62ae97 [SDK] Enhance <shlobj_undoc.h> more (#9089)
Implementing missing features...
JIRA issue: CORE-20467
- Add IPersistString2,
  IObjectWithRegistryKeyOld, and
  IObjectWithRegistryKey interfaces
  into <shlobj_undoc.h>.
- Add some IIDs into
  <shlguid_undoc.h>.
- Add missing PUREs in
  <shlobj_undoc.h>.
2026-05-30 19:17:15 +09:00
Mikhail Tyukin 678d0e2cda [RSYM] Raise function name limit
Required for importing milcore from WPF as it has symbols exceeding 256 characters
2026-05-29 19:42:25 -04:00
Timo Kreuzer 156d29ae80 [RTL] Fix a 64 bit MSVC warning 2026-05-29 18:21:33 +00:00
Jiahe Wang 5b2f79fe07 [RTL] Fix RtlVirtualUnwind for UWOP_*_FAR, UWOP_EPILOG and UWOP_SPARE_CODE 2026-05-29 13:37:18 +00:00
Katayama Hirofumi MZ 628fc9d463 [EXPLORER][SDK] Implement some tray commands (#9036)
Make our tray window working as
Windows' one.
JIRA issue: CORE-10675
- Add REST_NOCLOSE restriction
  to CTrayWindow::DoExitWindows
  method.
- Add TRAYCMD_EJECT constant
  to <undocshell.h>.
- Implement TRAYCMD_STARTMENU,
  TRAYCMD_EJECT,
  TRAYCMD_CONTROL_PANEL, and
  TRAYCMD_PRINTERS_AND_FAXES
  tray commands.
- Add import to setupapi to use
  CM_Request_Eject_PC function.
2026-05-26 18:40:38 +09:00
Katayama Hirofumi MZ 2290d0e785 [SDK][SYSDM] Enhance <shlobj_undoc.h> for associations (#9064)
Preparation for new ShellExecute.
JIRA issue: CORE-20467
- Move ASSOCQUERY and
  IAssociationElementOld in
  <shlwapi_undoc.h> into
  <shlobj_undoc.h>.
- Add IQuerySourceOld, IQuerySource,
  IObjectWithQuerySource, and
  IAssociationArrayInitialize
  interfaces into <shlobj_undoc.h>.
- Add some GUIDs into
  <shlguid_undoc.h>.
- Do #include <shlwapi_undoc.h>
  in sysdm performance.c to fix build.
2026-05-26 10:55:59 +09:00
Katayama Hirofumi MZ 22ee9d727f [SHLWAPI][SDK] Support SHWindowsPolicyGetValue (#9038)
Implementing missing features...
JIRA issue: CORE-19278
- Add policy.cpp and modify CMakeLists.txt.
- Implement SHWindowsPolicyGetValue function.
- Modify shlwapi.spec.
- Add some GUIDs into <shlguid_undoc.h>.
2026-05-25 19:24:20 +09:00
Katayama Hirofumi MZ 8823853f77 [SHLWAPI][SDK] Support PathUnExpandEnvStringsForUserA/W (#9041)
Implementing missing features...
JIRA issue: CORE-19278
- Implement PathUnExpandEnvStringsForUserA and
  PathUnExpandEnvStringsForUserW functions.
- Modify shlwapi.spec.
- Add prototypes into <shlwapi_undoc.h>.
2026-05-25 19:22:40 +09:00
Eric Kohl 2e13f97a62 [DHCPCSVC][REACTOS] Pass the SendParams parameter to the RequestParams server function 2026-05-24 10:58:01 +02:00
Eric Kohl 7dbfc3f2b6 [DHCPCSVC][PSDK] Add parameter checks to DhcpRegisterParamChange
Also add the required definition of DHCPCAPI_REGISTER_HANDLE_EVENT.
2026-05-23 16:26:32 +02:00
Timo Kreuzer d119feb2c7 [RTL][NTDLL] Implement RtlExpandEnvironmentStrings 2026-05-21 12:07:24 +00:00
Timo Kreuzer ef70bdf990 [RTL][NTDLL] Implement RtlQueryEnvironmentVariable
Make RtlQueryEnvironmentVariable_U a wrapper around RtlQueryEnvironmentVariable.
2026-05-21 12:07:24 +00:00
Timo Kreuzer 07537ae6a1 [RTL] Fix formatting of env.c
- Fix indentation
- Apply SAL2  annotations
2026-05-21 12:07:24 +00:00
Timo Kreuzer 9989b9ec1d [RTL] Improve RtlCreateProcessParameters
- Use the NT6 structure of _RTL_USER_PROCESS_PARAMETERS
- Fix string alignment to match Vista+
- Use ImageName as fallback for the CommandLine
- Use NULL-string as fallback fo RuntimeData
- Copy the environment instead of just copying the pointer
- Fixes a number of ntdll_winetest:env tests
2026-05-21 12:07:24 +00:00
Timo Kreuzer e9a67ff1bd [RTL] Fix an NTSTATUS to dos error translation
Fixes remaining test failure in ntdll_winetest error
2026-05-21 12:07:24 +00:00
Timo Kreuzer 33a19d05f4 [RTL] Fix atom table signature
Fixes a wine test.
2026-05-21 12:07:24 +00:00
Timo Kreuzer 40a0840834 [RTL] Fix ROUND_DOWN macro for 64 bit 2026-05-21 12:07:24 +00:00
Timo Kreuzer 15fa25299f [RTL][NTDLL][KERNEL32] Implement (Rtl)GetProductInfo 2026-05-19 14:40:01 +00:00
Timo Kreuzer 11ab9c2717 [XDK] Add missing PRODUCT_* definitions 2026-05-19 14:40:01 +00:00
Ahmed Arif 0e64048812 [NDK][RTL] Fix packing leak and ARM64 heap layouts (#9020)
Stop `PS_JOB_TOKEN_FILTER`'s pack(1) scope from leaking into `EJOB`, which misaligns kernel fields on ARM64.

Use the Win64 heap entry layout on ARM64 and assert the heap metadata offsets verified against NT ARM64 symbols.

Keep heap alignment masks pointer-sized and size `STACK_TRACE_DATABASE` `ERESOURCE` padding for all Win64 targets.

CORE-18200
2026-05-18 23:48:41 +02:00
Whindmar Saksit 879e1cff63 [INCLUDE/WINE] Don't use DECLSPEC_IMPORT in shlwapi.h (#9034)
This fixes wscript.exe crashing on .wsf files because of delay-loaded shlwapi, the bug was introduced in  6762703 (PR #8419)
2026-05-18 23:30:31 +02:00
Katayama Hirofumi MZ e148366e9a [SHLWAPI][SDK] Support FixSlashesAndColonA (#9040)
Implementing missing features...
JIRA issue: CORE-19278
- Implement FixSlashesAndColonA function.
- Modify shlwapi.spec.
- Add prototype into <shlwapi_undoc.h>.
2026-05-18 21:19:01 +09:00
Eric Kohl fb47d37a49 [DHCPCSVC][PSDK][IDL] Improve DhcpRequestParams and add DhcpUndoRequestParams stub
Add a call into the server side for DhcpRequestParams.
2026-05-17 13:16:30 +02:00
Ahmed Arif 1ed6179ea8 [ASMPP] Improve MASM translation for Clang IAS (#8981)
* [ASMPP] Translate MASM NOT as bitwise complement

MASM NOT is a bitwise operator. Emitting C/GAS logical negation changes numeric constant values, for example X87XAM_BAD becomes 0 instead of 0xf800.

* [ASMPP] Support additional MASM expression operators

Map MASM expression operators through a single helper and add support for shr, eq, ne, lt, le, gt, and ge. This keeps existing and/or/shl/not handling while allowing expressions outside the instruction-token set.

* [ASMPP] Translate MASM if expressions

Handle plain MASM if through the expression translator so operators like ne are emitted as Clang/GAS syntax. Keep ifdef, ifndef, else, and endif on the existing directive path.

* [ASMPP] Handle RIP-relative numeric offsets

Keep constant +/- offsets before the emitted [rip] suffix so Clang IAS sees forms like symbol+4[rip] instead of the invalid symbol[rip]+4.

* [ASMPP] Balance FRAME procedure unwind directives

Clang IAS rejects .func/.endfunc and requires .seh_endproc or .cfi_endproc to match an active frame. Track whether each PROC line contains FRAME, including forms such as PROC PRIVATE FRAME, and emit the closing unwind directive only for framed procedures.

* [ASMPP] Simplify whitespace skipping for RIP offsets
2026-05-16 21:06:52 +00:00
Timo Kreuzer 632b09f55e [SDK] include/wine/test.h: add __wine_dbg_strdup
Taken from wine-10.0
2026-05-16 10:43:08 +00:00