Skip to content

Commit

Permalink
[NDK] ldrfuncs.h: Add RtlDllShutdownInProgress; make the header C++-c…
Browse files Browse the repository at this point in the history
…ompatible (reactos#6071)

The function is added here, because it is loader-related
and thus making sense there, instead of in rtlfuncs.h.
  • Loading branch information
HBelusca committed Dec 3, 2023
1 parent 2f0a5e5 commit 0d01f3f
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 4 deletions.
3 changes: 0 additions & 3 deletions dll/win32/imm32/ctf.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,6 @@

WINE_DEFAULT_DEBUG_CHANNEL(imm);

/* FIXME: Use proper header */
BOOLEAN WINAPI RtlDllShutdownInProgress(VOID);

static BOOL Imm32InsideLoaderLock(VOID)
{
return NtCurrentTeb()->ProcessEnvironmentBlock->LoaderLock->OwningThread ==
Expand Down
18 changes: 17 additions & 1 deletion sdk/include/ndk/ldrfuncs.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ Header Name:
#include <ntimage.h>
#endif

#ifdef __cplusplus
extern "C" {
#endif

//
// Resource Functions
//
Expand Down Expand Up @@ -59,7 +63,6 @@ LdrEnumResources(
_Out_writes_to_(*ResourceCount,*ResourceCount) LDR_ENUM_RESOURCE_INFO *Resources
);


NTSTATUS
NTAPI
LdrFindResourceDirectory_U(
Expand Down Expand Up @@ -144,4 +147,17 @@ LdrEnumerateLoadedModules(
_In_opt_ PVOID Context
);

#ifdef NTOS_MODE_USER
NTSYSAPI
BOOLEAN
NTAPI
RtlDllShutdownInProgress(
VOID
);
#endif

#ifdef __cplusplus
}
#endif

#endif

0 comments on commit 0d01f3f

Please sign in to comment.