Commit graph

589 commits

Author SHA1 Message Date
Alexandre Julliard 2436da5cef include: Add some new information classes. 2023-07-13 18:41:13 +02:00
Alexandre Julliard 257221843f ntdll: Implement RtlWow64GetSharedInfoProcess(). 2023-07-11 18:34:17 +02:00
Alexandre Julliard 6366775e82 include: Disallow Win32 va_list in Unix libraries. 2023-07-05 17:03:30 +02:00
Alexandre Julliard 959dea0c09 ntdll: Implement RtlIsCurrentProcess/Thread. 2023-07-03 22:15:42 +02:00
Alexandre Julliard 9bdd08579e ntdll/tests: Add some tests for NtQueryVirtualMemory(MemoryImageInformation). 2023-06-29 21:06:49 +02:00
Joel Holdsworth dedd130d9e include: Define FILE_DISPOSITION_INFORMATION_EX and friends.
Signed-off-by: Joel Holdsworth <joel@airwebreathe.org.uk>
2023-06-27 12:05:05 +02:00
Alexandre Julliard 93630ce14e include: Remove redundant __WINE_USE_MSVCRT checks. 2023-06-12 21:21:41 +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 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
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
Alexandre Julliard 4e72c0016b include: Add some new ProcThreadAttribute definitions. 2023-04-28 14:30:58 +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 687068e7d6 include: Declare some missing ntdll functions, and fix the sorting. 2023-03-22 20:03:51 +01:00
Alexandre Julliard 5a1d431b4b ntdll: Implement NtWow64IsProcessorFeaturePresent(). 2023-03-15 11:48:57 +01:00
Alexandre Julliard c44e58c88b ntdll: Implement the SystemProcessorFeaturesInformation query. 2023-03-14 17:38:51 +01:00
Alexandre Julliard 37628a7732 wow64: Implement Wow64RaiseException(). 2023-03-09 17:31:26 +01:00
Alexandre Julliard 3e3af62be9 wow64: Create the WOW64INFO structure. 2023-03-09 17:31:26 +01:00
Alexandre Julliard 63a781de1d wow64: Declare exported functions in winternl.h. 2023-03-07 17:25:08 +01:00
Alexandre Julliard c244fe3d27 wow64: Keep track of APC stack frames, similarly to user callback frames.
And use the appropriate frame to restore the context in NtContinue.
2023-03-07 17:25:08 +01:00
Alexandre Julliard d5468b9cac ntdll: Implement RtlAddProcessTrustLabelAce(). 2023-03-01 21:39:30 +01:00
Alexandre Julliard aa3e772abf ntdll: Mark the Wow64 TLS slots as reserved. 2023-02-24 22:23:12 +01:00
Eric Pouech 89d42d64d7 ntdll: Implement RtlAddressInSectionTable.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=54432
Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
2023-02-17 18:59:29 +01:00
Brendan Shanks c0ffd587b5 ntdll: Add stub for NtQueryInformationProcess(ProcessCycleTime). 2023-02-02 10:56:42 +01:00
Paul Gofman 1b1f8d914e ntdll: Add stub for NtQueryInformationProcess( ProcessHandleTable ). 2023-01-31 16:54:52 +01:00
Jinoh Kang 36575a2e7a include: Add noreturn attribute to RtlRaiseStatus.
This informs the compiler that no code following a RtlRaiseStatus() call
will execute, which increases the accuracy of compiler warnings and
static analyses.
2023-01-30 18:55:57 +01:00
Nikolay Sivov 5267fccae6 ktmw32: Use syscall interface for transaction objects stubs.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
2023-01-26 22:05:13 +01:00
Eric Pouech 495711c251 ntdll: Fix export and calling convention of RtlUlonglongByteSwap().
The RtlU*ByteSwap() family:
- has FASTCALL calling convention
- is only exported from ntdll and ntoskrnl.exe in 32bit mode
  (didn't check ARM though)

Wine's support for RtlUlonglongByteSwap() doesn't follow these constraints.
Note: in __fastcall, 64bit paramaters are passed on the stack, to
RtlUlonglongByteSwap() calling convention acts as __stdcall.

So:
- fix ntdll.spec (resp. ntoskrnl.exe.spec) to only export
  (resp. forward) RtlUlonglongByteSwap for i386
- always provide an inline implementation in winternl.h
- reimplement ntdll.RtlUlonglongByteSwap() for i386 with
  __fastcall calling convention.
- fix ntdll/tests/rtl.c to use correct calling convention.
- add test in ntdll/tests/rtl.c for inlined version.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=53536
Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
2022-12-16 18:48:30 +01:00
Nikolay Sivov ce91ef6426 kernelbase: Add SetProcessInformation().
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=53954
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
2022-11-21 13:09:41 +01:00
Alexandre Julliard 81cba2af81 include: Disable some inline kernelbase functions when building Unix libraries. 2022-11-14 13:13:01 +01:00
Alexandre Julliard a72c7bbc0c ntdll: Add a Wine-specific process info class for the LDT copy. 2022-11-11 11:56:45 +01:00
Brendan Shanks d3416d9081 ntdll: Add a Wine-specific THREADINFOCLASS to set just the native thread name. 2022-11-07 21:13:32 +01:00
Nikolay Sivov fc5cb9b577 ntdll: Partially implement MemoryRegionInformation query.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
2022-10-31 20:41:44 +01:00
Nikolay Sivov 853d9024b7 ntdll: Add some already implemented security descriptor exports.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
2022-10-25 11:01:42 +02:00
Daniel Lehman 05d00d5e78 ntdll: Add NtCancelSynchronousIoFile stub.
Signed-off-by: Daniel Lehman <dlehman25@gmail.com>
2022-10-17 11:22:26 +02:00
Santino Mazza 92b2329da9 ntdll: Create NtLoadKeyEx syscall stub.
Signed-off-by: Santino Mazza <smazza@codeweavers.com>
2022-09-09 23:21:58 +02:00
Jinoh Kang fa005a6c90 include: Add definition for NtSetInformationVirtualMemory.
Signed-off-by: Jinoh Kang <jinoh.kang.kr@gmail.com>
2022-07-13 16:10:05 +02:00
Nikolay Sivov 0c7f4ad916 include: Add some more process information class constants.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-05-25 18:25:43 +02:00
Rémi Bernon 085d3be56e include: Add missing __WINE_DEALLOC attribute to RtlReAllocateHeap.
Signed-off-by: Rémi Bernon <rbernon@codeweavers.com>
2022-05-23 18:58:23 +02:00
Brendan Shanks eb55f64d52 include: Add __WINE_DEALLOC attribute and use it for allocation functions.
Signed-off-by: Brendan Shanks <bshanks@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-05-18 18:36:10 +02:00
Brendan Shanks fd1b9afc1d include: Add __WINE_MALLOC attribute and use it for allocation functions.
Signed-off-by: Brendan Shanks <bshanks@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-05-18 18:36:10 +02:00
Brendan Shanks 26297e7a2f include: Add WINE_ALLOC_SIZE attribute to RtlReAllocateHeap().
Signed-off-by: Brendan Shanks <bshanks@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-05-12 12:50:18 +02:00
Nikolay Sivov d63db81295 ntdll: Partially implement NtUnmapViewOfSectionEx().
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-05-05 18:35:28 +02:00
Nikolay Sivov dc5d76b3af ntdll: Add a partial implementation of NtMapViewOfSectionEx().
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-05-04 21:27:25 +02:00
Alexandre Julliard a2d44e89ea ntdll: Implement RtlLcidToLocaleName().
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-03-22 17:39:01 +01:00
Alexandre Julliard ea9a776d7d ntdll: Implement RtlIsValidLocaleName().
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-03-22 17:39:01 +01:00
Alexandre Julliard f161195859 include: Add some structures for the undocumented locale.nls layout.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-03-22 10:29:34 +01:00