Commit graph

602 commits

Author SHA1 Message Date
Alexandre Julliard
1f769067a3 include: Use NTSYSAPI for all ntdll exports. 2023-11-03 18:05:01 +01:00
Alexandre Julliard
3c0d0005f4 ntdll: Use the standard syscall calling convention for NtFlushProcessWriteBuffers. 2023-10-11 17:26:49 +02:00
Alexandre Julliard
3bb752736c include: Stop pretending to support big-endian. 2023-10-10 11:11:26 +02:00
Paul Gofman
b15680a05e ntdll: Implement NtQueryValueKey(KeyValuePartialInformationAlign64). 2023-10-10 10:14:08 +02:00
Alex Henrie
0d7cf84709 include: Move RTL functions that belong in ntddk.h from winternl.h to ntddk.h. 2023-09-27 11:17:47 +02:00
Joel Holdsworth
26b8284d21 include: Add flags to FILE_LINK_INFORMATION used by FileLinkInformationEx.
Signed-off-by: Joel Holdsworth <joel@airwebreathe.org.uk>
2023-09-19 17:41:02 +02:00
Joel Holdsworth
f112dde0e7 include: Add flags to FILE_RENAME_INFORMATION used by FileRenameInformationEx.
Signed-off-by: Joel Holdsworth <joel@airwebreathe.org.uk>
2023-09-19 17:41:02 +02:00
Alex Henrie
38a7e68af1 include: Move RTL functions that belong in winnt.h from winternl.h to winnt.h. 2023-09-19 14:27:17 +02:00
Billy Laws
23736e69ce include: Add CHPEV2 CPU area definitions. 2023-09-04 20:41:54 +02:00
Alexandre Julliard
0b0dbf6acc wow64: Implement Wow64ProcessPendingCrossProcessItems(). 2023-08-28 13:49:16 +02:00
Alexandre Julliard
b521507591 ntdll: Implement RtlOpenCrossProcessEmulatorWorkConnection(). 2023-08-28 11:39:42 +02:00
Alexandre Julliard
049fb065c4 ntdll: Implement the cross-process work list functions. 2023-08-28 11:32:18 +02:00
Alexandre Julliard
572cc841a6 ntdll/tests: Add some more tests for the contents of the WOW64INFO structure. 2023-08-17 23:26:13 +02:00
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