Add RtlDllShutdownInProgress().

svn path=/trunk/; revision=26584
This commit is contained in:
Dmitry Gorbachev 2007-04-30 08:41:42 +00:00
parent 8486880a27
commit 9b13eaa0c0
2 changed files with 14 additions and 0 deletions

View file

@ -411,6 +411,7 @@ RtlDestroyHeap@4
RtlDestroyProcessParameters@4
RtlDestroyQueryDebugBuffer@4
RtlDetermineDosPathNameType_U@4
RtlDllShutdownInProgress@0
RtlDoesFileExists_U@4
RtlDosPathNameToNtPathName_U@16
RtlDosPathNameToRelativeNtPathName_U@16

View file

@ -45,6 +45,7 @@ typedef struct _TLS_DATA
PLDR_DATA_TABLE_ENTRY Module;
} TLS_DATA, *PTLS_DATA;
static BOOLEAN LdrpDllShutdownInProgress = FALSE;
static PTLS_DATA LdrpTlsArray = NULL;
static ULONG LdrpTlsCount = 0;
static ULONG LdrpTlsSize = 0;
@ -2485,6 +2486,9 @@ LdrpDetachProcess(BOOLEAN UnloadAll)
DPRINT("LdrpDetachProcess() called for %wZ\n",
&ExeModule->BaseDllName);
if (UnloadAll)
LdrpDllShutdownInProgress = TRUE;
CallingCount++;
ModuleListHead = &NtCurrentPeb()->Ldr->InInitializationOrderModuleList;
@ -2614,6 +2618,15 @@ LdrpAttachProcess(VOID)
return Status;
}
/*
* @implemented
*/
BOOLEAN NTAPI
RtlDllShutdownInProgress (VOID)
{
return LdrpDllShutdownInProgress;
}
/*
* @implemented
*/