https://git.reactos.org/?p=reactos.git;a=commitdiff;h=56be4eafd5af419855e0a…
commit 56be4eafd5af419855e0ab875eacb92e4ca4c93c
Author: Hermès Bélusca-Maïto <hermes.belusca-maito(a)reactos.org>
AuthorDate: Fri Nov 18 16:06:57 2022 +0100
Commit: Hermès Bélusca-Maïto <hermes.belusca-maito(a)reactos.org>
CommitDate: Fri Nov 18 18:11:26 2022 +0100
[NTOS:IO][NDK] Add the exported IoDeleteDriver to the NDK headers.
---
ntoskrnl/io/iomgr/driver.c | 3 ++-
sdk/include/ndk/iofuncs.h | 6 ++++++
2 files changed, 8 insertions(+), 1 deletion(-)
diff --git a/ntoskrnl/io/iomgr/driver.c b/ntoskrnl/io/iomgr/driver.c
index 38589441ad4..8107c4906ed 100644
--- a/ntoskrnl/io/iomgr/driver.c
+++ b/ntoskrnl/io/iomgr/driver.c
@@ -1731,7 +1731,8 @@ try_again:
*/
VOID
NTAPI
-IoDeleteDriver(IN PDRIVER_OBJECT DriverObject)
+IoDeleteDriver(
+ _In_ PDRIVER_OBJECT DriverObject)
{
/* Simply dereference the Object */
ObDereferenceObject(DriverObject);
diff --git a/sdk/include/ndk/iofuncs.h b/sdk/include/ndk/iofuncs.h
index a141883381f..8bac30e3019 100644
--- a/sdk/include/ndk/iofuncs.h
+++ b/sdk/include/ndk/iofuncs.h
@@ -56,6 +56,12 @@ IoCreateDriver(
_In_ PDRIVER_INITIALIZE InitializationFunction
);
+VOID
+NTAPI
+IoDeleteDriver(
+ _In_ PDRIVER_OBJECT DriverObject
+);
+
NTSTATUS
NTAPI
IoReportHalResourceUsage(