Commit Graph

255 Commits

Author SHA1 Message Date
Jactry Zeng c43030b664 ntoskrnl: Add FsRtlIsNameInExpression stub.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=41039
Signed-off-by: Jactry Zeng <jzeng@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-09-14 12:52:35 +02:00
Huw Davies 9f74c00e06 ntoskrnl: Allow space for the '\0'.
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-09-13 19:16:44 +02:00
Gijs Vermeulen 2e807d4bf5 ntoskrnl: Add ExReleaseResourceLite stub.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=45800
Signed-off-by: Gijs Vermeulen <gijsvrm@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-09-11 11:38:17 +02:00
Dmitry Timoshkov 847fb84d81 ntoskrnl.exe: Add a stub for MmCreateSection.
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-09-06 17:07:15 +02:00
Zebediah Figura c18f8e4c32 winedevice: Reimplement (un)loading drivers on top of ZwLoadDriver()/ZwUnloadDriver().
We can't implement ZwLoadDriver() on top of StartService(), since the latter
takes the service database lock. Instead simply move the entire body of
create_driver()/unload_driver() into ZwLoadDriver()/ZwUnloadDriver().
Similarly, clean up the list of loaded drivers in ntoskrnl rather than
winedevice.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=45084
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-08-29 22:01:38 +02:00
Alistair Leslie-Hughes 6b3f665787 ntoskrnl.exe: Add DbgQueryDebugFilterState stub.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=45655
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-08-29 22:01:36 +02:00
Zebediah Figura 6a4be7155d ntoskrnl.exe: Broadcast WM_DEVICECHANGE when a PnP device is added or removed.
Signed-off-by: Zebediah Figura <zfigura@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-08-22 20:02:18 +02:00
Zebediah Figura ad6845b4af ntoskrnl.exe: Implement IoSetDeviceInterfaceState().
Signed-off-by: Zebediah Figura <zfigura@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-08-17 16:53:04 +02:00
Austin English 235f6da846 ntoskrnl.exe: Add IoReleaseRemoveLockAndWaitEx stub.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=43642
Signed-off-by: Austin English <austinenglish@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-07-17 08:41:36 +02:00
Austin English af00d2cc1f ntoskrnl.exe: Add a stub for KeFlushQueuedDpcs.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=45448
Signed-off-by: Austin English <austinenglish@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-07-16 10:09:37 +02:00
Alexander Morozov 7df543438a ntoskrnl.exe: Improve KeInitializeTimerEx stub.
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-07-09 13:36:53 +02:00
Louis Lenders 37e22ebb33 ntoskrnl.exe: Add stub for IoUnregisterPlugPlayNotification.
Signed-off-by: Louis Lenders <xerox.xerox2000x@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-06-27 11:03:06 +02:00
Derek Lesho bccadc0d28 ntoskrnl: Have MmIsAddressValid use IsBadReadPtr.
Signed-off-by: Derek Lesho <dereklesho52@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-06-06 19:45:37 +02:00
Alex Henrie bc4624c740 ntoskrnl: Add SeSinglePrivilegeCheck stub.
Signed-off-by: Alex Henrie <alexhenrie24@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-05-25 12:09:17 +02:00
Alistair Leslie-Hughes f8f7b46ea4 ntoskrnl: Add FsRtlRegisterFileSystemFilterCallbacks stub.
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-04-17 17:03:13 +02:00
Alistair Leslie-Hughes bb74918b23 ntoskrnl: Implement ExInterlockedPushEntrySList.
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-04-16 10:32:00 +02:00
Michael Müller ae75d6a92b ntoskrnl: Implement ExInterlockedPopEntrySList.
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-04-16 10:31:56 +02:00
Alistair Leslie-Hughes b0351a12b1 ntoskrnl: Add ObGetObjectType stub.
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-04-09 10:15:35 +02:00
Alistair Leslie-Hughes d4c2759a1d ntoskrnl: Add PsGetProcessId stub.
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-04-09 10:15:21 +02:00
Alistair Leslie-Hughes ccbefb818a ntoskrnl: Add ExfUnblockPushLock stub.
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-04-09 10:15:05 +02:00
Alistair Leslie-Hughes dd7467cc4d ntoskrnl: Add PsAcquireProcessExitSynchronization/PsReleaseProcessExitSynchronization stub.
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-04-09 10:14:42 +02:00
Gijs Vermeulen 96e4ec81ec ntoskrnl.exe: Improve IoCreateSynchronizationEvent stub.
Signed-off-by: Gijs Vermeulen <gijsvrm@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-04-09 10:13:57 +02:00
Gijs Vermeulen db33beb090 ntoskrnl.exe: Improve ObReferenceObjectByHandle stub.
Signed-off-by: Gijs Vermeulen <gijsvrm@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-04-09 10:13:48 +02:00
Alexander Morozov fec2aadebe ntoskrnl.exe: Add stubs for ExAcquireFastMutexUnsafe and ExReleaseFastMutexUnsafe.
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-04-03 18:22:36 +02:00
Alistair Leslie-Hughes 075cbd3474 ntoskrnl.exe: Implement _chkstk.
These are just copied from ntdll.

Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-03-27 10:33:43 +02:00
Alexandre Julliard f2cb86decb ntoskrnl: Add prefixes on all C runtime functions.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-03-21 22:58:50 +01:00
Alistair Leslie-Hughes 813c6f3af6 ntoskrnl.exe: Add ObGetFilterVersion stub.
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-03-21 19:18:38 +01:00
Alistair Leslie-Hughes 8b0c857c81 ntoskrnl.exe: Add ObUnRegisterCallbacks stub.
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-03-21 19:18:28 +01:00
Alistair Leslie-Hughes 6bc12302d9 ntoskrnl.exe: Add ObRegisterCallbacks stub.
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-03-21 19:18:21 +01:00
Alistair Leslie-Hughes 882d70fe39 ntoskrnl.exe: Dont forward some msvcrt functions.
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-03-19 13:24:53 +01:00
Christian Costa 0cb9ddb7f5 ntoskrnl.exe: Fix IoReleaseCancelSpinLock argument.
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-03-12 19:10:54 +01:00
Alexander Morozov 3a82fde6b5 ntoskrnl.exe: Add stub for ObReferenceObjectByPointer.
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-03-12 19:10:50 +01:00
Austin English 9566c50a1e ntoskrnl.exe: Add PsSetCreateProcessNotifyRoutineEx stub.
Signed-off-by: Austin English <austinenglish@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-03-06 09:15:29 -06:00
Alexandre Julliard cd1f412d3a ntoskrnl: Use the magic format string prefix for relay traces.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-11-25 12:05:40 +01:00
Alexandre Julliard e6ff0e6357 ntoskrnl: Mark function that are only called from assembly as hidden.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-07-25 11:48:46 +02:00
Austin English b3a698e501 ntoskrnl.exe: Add IoCreateNotificationEvent stub.
Signed-off-by: Austin English <austinenglish@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-07-13 13:48:54 +02:00
Austin English 362ceb2e56 ntoskrnl.exe: Add KeReleaseSpinLock stub.
Signed-off-by: Austin English <austinenglish@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-06-21 23:21:16 +02:00
Austin English 0c3a2a67a2 ntoskrnl: Add KeAcquireSpinLockRaiseToDpc stub.
Signed-off-by: Austin English <austinenglish@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-06-20 11:48:30 +02:00
Austin English 18c94886d7 ntoskrnl.exe: Add IoReportResourceForDetection stub.
Signed-off-by: Austin English <austinenglish@gmail.com>
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-04-20 19:06:16 +02:00
Sebastian Lackner 1cab71c788 ntoskrnl.exe: Do not use P* types in IoReportResourceUsage.
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-04-20 19:06:08 +02:00
Austin English ce9b40d79b ntoskrnl.exe: Add KeWaitForMultipleObjects stub.
Signed-off-by: Austin English <austinenglish@gmail.com>
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-03-10 23:21:26 +01:00
Sebastian Lackner 83b9fdb23b ntoskrnl.exe: Add KeReleaseInStackQueuedSpinLock stub.
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-03-07 16:33:39 +01:00
Austin English f3ccfc092b ntoskrnl.exe: Add KeAcquireInStackQueuedSpinLock stub.
Signed-off-by: Austin English <austinenglish@gmail.com>
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-03-07 16:33:38 +01:00
Jarkko Korpi 85214c56e3 ntoskrnl: Add IoStopTimer stub.
Signed-off-by: Jarkko Korpi <jarkko_korpi@hotmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-02-06 22:58:55 +01:00
Austin English 23c95cabf3 ntoskrnl.exe: Add stub KeClearEvent.
Signed-off-by: Austin English <austinenglish@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-01-31 11:05:44 +01:00
Austin English a8222a0437 ntoskrnl.exe: Add IoCreateFile stub.
Signed-off-by: Austin English <austinenglish@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-01-31 11:05:27 +01:00
Austin English 9e443e95f2 ntoskrnl.exe: Add KeSetTimerEx stub.
Signed-off-by: Austin English <austinenglish@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-11-07 16:59:45 +01:00
Sebastian Lackner b466e89311 ntoskrnl.exe: Explicitly set MappedSystemVa for MDLs.
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-10-17 16:19:48 -07:00
Sebastian Lackner 9912ef778f ntoskrnl.exe: Use MmInitializeMdl in IoAllocateMdl.
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-10-17 16:19:48 -07:00
Sebastian Lackner eb7ac554d1 ntoskrnl.exe: Add support for METHOD_IN_DIRECT/METHOD_OUT_DIRECT ioctls.
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-10-17 16:19:47 -07:00