https://git.reactos.org/?p=reactos.git;a=commitdiff;h=48456d91085026d4489d2…
commit 48456d91085026d4489d2f820b8ca793a8bdda3f
Author: Hermès Bélusca-Maïto <hermes.belusca-maito(a)reactos.org>
AuthorDate: Thu Nov 30 17:13:16 2023 +0100
Commit: Hermès Bélusca-Maïto <hermes.belusca-maito(a)reactos.org>
CommitDate: Mon Dec 4 13:47:33 2023 +0100
[NDK] ldrfuncs.h: Add RtlDllShutdownInProgress; make the header C++-compatible
(#6071)
The function is added here, because it is loader-related
and thus making sense there, instead of in rtlfuncs.h.
---
sdk/include/ndk/ldrfuncs.h | 18 +++++++++++++++++-
1 file changed, 17 insertions(+), 1 deletion(-)
diff --git a/sdk/include/ndk/ldrfuncs.h b/sdk/include/ndk/ldrfuncs.h
index 52e682b57fb..9b58e9d5f20 100644
--- a/sdk/include/ndk/ldrfuncs.h
+++ b/sdk/include/ndk/ldrfuncs.h
@@ -28,6 +28,10 @@ Author:
#include <ntimage.h>
#endif
+#ifdef __cplusplus
+extern "C" {
+#endif
+
//
// Resource Functions
//
@@ -59,7 +63,6 @@ LdrEnumResources(
_Out_writes_to_(*ResourceCount,*ResourceCount) LDR_ENUM_RESOURCE_INFO *Resources
);
-
NTSTATUS
NTAPI
LdrFindResourceDirectory_U(
@@ -144,4 +147,17 @@ LdrEnumerateLoadedModules(
_In_opt_ PVOID Context
);
+#ifdef NTOS_MODE_USER
+NTSYSAPI
+BOOLEAN
+NTAPI
+RtlDllShutdownInProgress(
+ VOID
+);
+#endif
+
+#ifdef __cplusplus
+}
+#endif
+
#endif