Commit graph

905 commits

Author SHA1 Message Date
Vijay Kiran Kamuju 2a6e7ab4ed ntdll: Add stub RtlNumberGenericTableElementsAvl function.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=56839
2024-06-24 13:19:21 +02:00
Vijay Kiran Kamuju 1d58a4674c ntdll: Add stub RtlEnumerateGenericTableWithoutSplayingAvl function.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=56839
2024-06-24 13:19:19 +02:00
Vijay Kiran Kamuju 349c2275d4 ntdll: Add stub RtlLookupGenericTableAvl function.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=56736
2024-05-30 13:26:17 +02:00
Alexandre Julliard 64923f3fee widl: Default to fully interpreted stubs mode. 2024-05-02 09:22:40 +02:00
Alexandre Julliard a87d52e22c ntoskrnl.exe: Use fully interpreted IDL stubs. 2024-04-26 10:41:45 +02:00
Alistair Leslie-Hughes e01cb2b915 ntoskrnl/tests: Add FltBuildDefaultSecurityDescriptor test.
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
2024-03-27 22:44:57 +01:00
Rémi Bernon f67b4f6bf4 ntoskrnl.exe: Open symbolic link with DELETE before making them temporary. 2024-03-21 22:19:58 +01:00
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
Rémi Bernon 866f17c147 ntoskrnl.exe/tests: Use SUOI_FORCEDELETE when uninstalling the driver.
Avoids conflicts with the dinput tests somehow.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=52962
2024-01-10 21:07:27 +01:00
André Zwing 532418b091 ntoskrnl/tests: Use RtlNtStatusToDosErrorNoTeb() for stateless conversion. 2024-01-05 18:46:07 +01:00
Hans Leidekker 860a6d762f ntoskrnl: Stub EtwRegisterClassicProvider() and EtwUnregister(). 2023-11-22 20:03:05 +01:00
Alex Henrie 6e45c17182 ntoskrnl/tests: Put test_input on the stack in the main_test function. 2023-11-16 22:24:01 +01:00
Alistair Leslie-Hughes 2aa688326d ntoskrnl.exe: Remove DECLSPEC_HIDDEN usage. 2023-11-08 10:05:58 +01:00
Alexandre Julliard c432eac726 makefiles: Always use the global SOURCES variable for .idl files. 2023-11-01 22:43:50 +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
Alexandre Julliard 6b4399e369 ws2_32: Make htonl/htons/ntohl/ntohs proper functions. 2023-10-10 11:05:28 +02:00
Rémi Bernon 6afe77a259 ntoskrnl/tests: Use wine/test.h in the driver tests. 2023-09-07 22:38:40 +02:00
Etaash Mathamsetty 03d6a86786 ntoskrnl.exe/tests: Add KeInitializeDpc tests. 2023-09-06 12:05:49 +02:00
Alexandre Julliard cfcf5ca286 makedep: Make the spec file optional for testdll resources. 2023-09-05 12:45:15 +02:00
Rémi Bernon 81da9ff0f8 makedep: Use #pragma makedep testdll for TESTDLL resources. 2023-09-05 12:44:34 +02:00
Alexandre Julliard 08cfcb71bd ntoskrnl.exe/tests: Avoid sizeof() in traces. 2023-07-06 20:54:30 +02:00
Alexandre Julliard 23daba9abe ntoskrnl.exe: Use nameless union/structs. 2023-07-05 17:03: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
Alexandre Julliard 93630ce14e include: Remove redundant __WINE_USE_MSVCRT checks. 2023-06-12 21:21:41 +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
Bernhard Übelacker 07c0cd6ba5 ntoskrnl: Do not leak memory by setting input buffer to NULL.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=52322
2023-04-17 18:55:41 +02:00
Etaash Mathamsetty 10765f2956 ntoskrnl.exe/tests: Add Driver Object Extension Tests. 2023-03-02 20:10:46 +01: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
Zebediah Figura 80581c608c Revert "ntoskrnl.exe: Enforce path case in WM_DEVICECHANGE notifications.".
This reverts commit c489356d0b.
2023-02-20 23:00:33 +01:00
Zebediah Figura f745900a4b ntoskrnl: Preserve the device instance ID case in IoRegisterDeviceInterface(). 2023-02-20 23:00:33 +01:00
Zebediah Figura 297e4ae76b ntoskrnl/tests: Expand tests for device and interface naming. 2023-02-20 23:00:33 +01:00
Zebediah Figura d05b88dd88 user32: Map DEV_BROADCAST_DEVICEINTERFACE to ANSI for registered device notifications. 2023-02-20 23:00:33 +01:00
Alex Henrie e60e8af0a9 ntoskrnl: Avoid calling RtlInitUnicodeString on a static constant. 2023-02-15 21:48:33 +01:00
Jinoh Kang cfbe8aed48 ntoskrnl.exe/tests: Use loopback address in test_wsk_listen_socket.
Today, the driver_netio test server binds to the wildcard address
(0.0.0.0).  This may trigger a firewall alert on Windows 7, and the
alert UI window may interfere with user32:msg tests.

Fix this by binding to the loopback address (127.0.0.1) instead.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=53891
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=54202
2023-01-24 18:13:19 +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
Zebediah Figura 5e3e0a519d ntoskrnl/tests: Ignore CONFIGFLAG_FINISH_INSTALL on the child device.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=53976
2022-12-13 12:44:51 +01:00
Etaash Mathamsetty 5fd79c32ed ntoskrnl.exe: Use KeQueryMaximumProcessorCountEx for KeQueryMaximumProcessorCount. 2022-12-09 17:52:25 +01:00
Matthew Tran c712e571d2 ntoskrnl.exe/tests: Fix incorrect HID STRING_INDEX tag value. 2022-11-21 21:21:22 +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
Zebediah Figura f801ac97fb ntoskrnl: Set SPDRP_CONFIGFLAGS in install_device_driver(). 2022-11-17 18:01:48 +01:00
Zebediah Figura b682102db4 setupapi: Set SPDRP_CONFIGFLAGS in SetupDiInstallDevice().
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=53387
2022-11-17 18:01:48 +01:00
Zebediah Figura 3a254079b9 ntoskrnl/tests: Test retrieving SPDRP_CONFIGFLAGS. 2022-11-17 18:01:48 +01:00
Etaash Mathamsetty c212987dc5 ntoskrnl.exe: Implement KeInitializeGuardedMutex. 2022-11-10 09:49:31 +01:00
Rémi Bernon 1c05faaa71 ntoskrnl.exe/tests: Add dummy flaky test count.
Fixes "Use of uninitialized value $Flaky" message in testbot reports.
2022-10-20 17:21:45 +02:00
Etaash Mathamsetty 42c0ec8a1f ntoskrnl.exe: Use LoadLibraryW for MmGetSystemRoutineAddress. 2022-10-20 17:21:45 +02:00