Jinoh Kang
ce41edab3f
ntdll: Implement NtMakePermanentObject.
2024-03-15 15:06:37 +01:00
Alex Henrie
cba29adf06
ntoskrnl: Reimplement ExAllocatePool* on top of ExAllocatePool2.
...
Microsoft deprecated all of these functions except ExAllocatePool2 and
ExAllocatePool3, so it's a safe bet that in Windows the old functions
are just wrappers around the new ones now.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=54362
2024-01-22 14:22:21 +01:00
Hans Leidekker
860a6d762f
ntoskrnl: Stub EtwRegisterClassicProvider() and EtwUnregister().
2023-11-22 20:03:05 +01:00
Alexandre Julliard
fb4eca9a1e
ntdll: Export RtlCopyMemory on ARM platforms.
2023-10-19 18:19:30 +02:00
Alexandre Julliard
cf21c75bbf
ntdll: Simplify platform checks for exception handling functions.
...
And sync the corresponding forwards.
2023-10-19 18:19:30 +02:00
Andrey Gusev
5e2c9b1255
ntoskrnl.exe: Add PsSetLoadImageNotifyRoutineEx semi-stub.
...
BattlEye says it's missing.
2023-07-03 22:15:42 +02:00
Olivier F. R. Dierick
58e81212fc
ntoskrnl.exe: Add Ke386QueryIoAccessMap stub.
...
Simply print a FIXME, instead of triggering the display of a terminal window to show 'call to unimplemented function' debugging info.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=54380
2023-06-19 17:41:28 +02:00
Alex Henrie
b9627b996f
ntoskrnl: Add ExGetPreviousMode and test.
...
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=54378
2023-03-01 21:39:30 +01:00
Eric Pouech
84cf6aa20d
ntdll: Implement RtlU(short|long)ByteSwap() using fastcall bits.
...
Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
2022-12-16 18:48:30 +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
Etaash Mathamsetty
22e9093c80
ntoskrnl.exe: Implement KeQueryActiveProcessorCount.
2022-11-18 14:00:04 +01:00
Etaash Mathamsetty
38577522ea
ntoskrnl.exe: Implement KeQueryMaximumProcessorCount/Ex.
2022-11-18 14:00:04 +01:00
Etaash Mathamsetty
c212987dc5
ntoskrnl.exe: Implement KeInitializeGuardedMutex.
2022-11-10 09:49:31 +01:00
Etaash Mathamsetty
92d74369c8
ntoskrnl.exe: KeInsertQueueDpc stub.
2022-10-11 12:28:29 +02:00
Etaash Mathamsetty
e2a5bf7540
ntoskrnl: Implement KeGetCurrentProcessorNumberEx.
2022-09-21 21:29:20 +02:00
Etaash Mathamsetty
d1e23696df
ntoskrnl: KeSetTargetProcessorDpcEx stub.
...
Required by mrac anti cheat.
2022-09-20 09:22:47 +02:00
Etaash Mathamsetty
e934e746be
ntoskrnl: Implement IoCreateFileEx.
2022-08-23 16:18:51 -05:00
Etaash Mathamsetty
bafb181c42
ntoskrnl.exe: Implement KeAreAllApcsDisabled.
...
Required for vgk.sys (vanguard anti-cheat).
2022-08-23 16:18:51 -05:00
Zebediah Figura
15320277f8
ntdll: Fix the calling convention for runtime 64-bit shift functions.
...
Based on a patch by Zhao Yi.
2022-07-08 19:53:18 +02:00
Alexander Wilms
1a2aa0b0be
ntoskrnl: Add KeQueryPriorityThread stub.
...
Signed-off-by: Alexander Wilms <f.alexander.wilms@gmail.com>
2022-07-05 16:40:49 +02:00
Alex Henrie
f185a3acb9
ntoskrnl: Add KeLowerIrql stub.
...
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=53076
Signed-off-by: Alex Henrie <alexhenrie24@gmail.com>
2022-05-31 22:52:44 +02:00
Alex Henrie
ddca4eb838
ntoskrnl: Add KfRaiseIrql stub.
...
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=53076
Signed-off-by: Alex Henrie <alexhenrie24@gmail.com>
2022-05-31 22:52:23 +02:00
Alex Henrie
942eb6008d
ntoskrnl: Add ExNotifyCallback stub.
...
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=53051
Signed-off-by: Alex Henrie <alexhenrie24@gmail.com>
2022-05-30 22:07:43 +02:00
Vijay Kiran Kamuju
78fbea1672
ntdll: Add stub RtlLookupElementGenericTable function.
...
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=49426
Signed-off-by: Vijay Kiran Kamuju <infyquest@gmail.com>
Signed-off-by: Alex Henrie <alexhenrie24@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-12-02 20:20:39 +01:00
Vijay Kiran Kamuju
87c7648f15
ntdll: Add stub RtlGetElementGenericTable function.
...
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=49426
Signed-off-by: Vijay Kiran Kamuju <infyquest@gmail.com>
Signed-off-by: Alex Henrie <alexhenrie24@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-12-02 20:20:39 +01:00
Dmitry Timoshkov
162991a03c
ntoskrnl: Add IoCreateDeviceSecure semi-stub.
...
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-11-19 18:31:38 +01:00
Alistair Leslie-Hughes
5aec01a7af
ntoskrnl.exe: Implement PsGetCurrentProcessSessionId.
...
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=36887
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-08-27 18:06:29 +02:00
Alistair Leslie-Hughes
16a7976de9
ntdll: Add NtTraceControl/ZwTraceControl stubs.
...
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-08-25 10:49:13 +02:00
Alex Henrie
c5c9c58974
ntoskrnl: Add MmGetPhysicalAddress semi-stub.
...
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=47047
Signed-off-by: Alex Henrie <alexhenrie24@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-08-10 19:58:31 +02:00
Rémi Bernon
2862ff6ba7
ntoskrnl.exe: Implement Ke(Initialize|Insert|Remove)DeviceQueue.
...
Signed-off-by: Rémi Bernon <rbernon@codeweavers.com>
Signed-off-by: Zebediah Figura <zfigura@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-06-30 20:01:20 +02:00
Rémi Bernon
bd26083162
include: Declare KeInitializeSpinLock as static FORCEINLINE.
...
And internally rename the ntoskrnl.exe export.
Signed-off-by: Rémi Bernon <rbernon@codeweavers.com>
Signed-off-by: Zebediah Figura <zfigura@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-06-30 20:01:20 +02:00
Rémi Bernon
731dd7de44
ntoskrnl.exe/tests: Add tests with and without report IDs.
...
Signed-off-by: Rémi Bernon <rbernon@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-06-16 15:37:46 +02:00
Arkadiusz Hiler
50210ea244
ntoskrnl: Implement IoSetDevicePropertyData().
...
Signed-off-by: Rémi Bernon <rbernon@codeweavers.com>
Signed-off-by: Arkadiusz Hiler <arek@hiler.eu>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-05-03 23:19:54 +02:00
Louis Lenders
1a02b3f1c6
ntdll: Stub RtlQueryProcessPlaceholderCompatibilityMode().
...
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=50026
Signed-off-by: Louis Lenders <xerox.xerox2000x@gmail.com>
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-05-03 20:42:29 +02:00
Zebediah Figura
55a166d17e
ntoskrnl/tests: Retrieve test global variables from a memory section.
...
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-04-07 22:36:11 +02:00
Zebediah Figura
73bfe36eab
winedevice: Introduce a custom service control to reënumerate root PnP devices.
...
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-04-02 21:15:25 +02:00
Zebediah Figura
5e6b46f3ea
ntoskrnl/tests: Fix a test failure on Windows 10.
...
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-03-24 20:46:23 +01:00
Zebediah Figura
ba5465c71f
ntdll: Export RtlQueryRegistryValuesEx().
...
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=46969
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-03-09 12:00:35 +01:00
Zhiyi Zhang
d7a4d757ce
ntoskrnl.exe: Exclude large integer APIs from relay tracing.
...
Similar to 8d7ec7968d
Signed-off-by: Zhiyi Zhang <zzhang@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-02-22 18:38:37 +01:00
Austin English
e8cb99466b
ntoskrnl.exe: Add KdDisableDebugger/KdEnableDebugger stubs.
...
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=50599
Signed-off-by: Austin English <austinenglish@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-02-02 10:00:28 +01:00
Martin Storsjo
a1955bfb6e
ntdll: Implement a no-op __chkstk for arm64.
...
Signed-off-by: Martin Storsjo <martin@martin.st>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-12-21 16:55:53 +01:00
Myah Caron
c6d0d7f02a
ntoskrnl.exe: Stub MmProtectMdlSystemAddress.
...
Signed-off-by: Myah Caron <qsniyg@protonmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-10-09 10:51:44 +02:00
Paul Gofman
81a08cea79
kernel32: Implement CopyContext().
...
Signed-off-by: Paul Gofman <pgofman@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-09-01 12:34:43 +02:00
Paul Gofman
85a33ff731
kernel32: Implement GetXStateFeaturesMask().
...
Signed-off-by: Paul Gofman <pgofman@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-09-01 12:33:47 +02:00
Paul Gofman
541b06747a
kernel32: Implement SetXStateFeaturesMask().
...
Signed-off-by: Paul Gofman <pgofman@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-09-01 12:33:44 +02:00
Paul Gofman
3803997349
ntdll: Implement RtlLocateLegacyContext().
...
Signed-off-by: Paul Gofman <pgofman@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-08-31 21:41:06 +02:00
Paul Gofman
ff88ed8b06
kernel32: Implement LocateXStateFeature().
...
Signed-off-by: Paul Gofman <pgofman@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-08-31 21:41:06 +02:00
Paul Gofman
2d544ff8a0
kernel32: Implement InitializeContext[2]().
...
Signed-off-by: Paul Gofman <pgofman@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-08-31 21:41:06 +02:00
Paul Gofman
2de4f12b33
ntdll: Implement RtlGetExtendedContextLength().
...
Signed-off-by: Paul Gofman <pgofman@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-08-31 21:41:06 +02:00
Paul Gofman
a4af2b2b70
kernel32: Implement GetEnabledXStateFeatures().
...
Signed-off-by: Paul Gofman <pgofman@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-08-20 21:14:15 +02:00