From 1e55094e8a7d15f5dfe1a513b68d97fd13951130 Mon Sep 17 00:00:00 2001 From: Dmitry Timoshkov Date: Tue, 29 Jan 2002 18:30:16 +0000 Subject: [PATCH] Added LdrDisableThreadCalloutsForDll. --- dlls/ntdll/Makefile.in | 1 + dlls/ntdll/loader.c | 11 +++++++++++ dlls/ntdll/ntdll.spec | 4 +++- 3 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 dlls/ntdll/loader.c diff --git a/dlls/ntdll/Makefile.in b/dlls/ntdll/Makefile.in index c48977f682c..0d793e3c4ce 100644 --- a/dlls/ntdll/Makefile.in +++ b/dlls/ntdll/Makefile.in @@ -14,6 +14,7 @@ C_SRCS = \ file.c \ heap.c \ large_int.c \ + loader.c \ misc.c \ nt.c \ om.c \ diff --git a/dlls/ntdll/loader.c b/dlls/ntdll/loader.c new file mode 100644 index 00000000000..d609d3ad601 --- /dev/null +++ b/dlls/ntdll/loader.c @@ -0,0 +1,11 @@ +#include "winbase.h" +#include "ntdef.h" +#include "winnt.h" + +NTSTATUS WINAPI LdrDisableThreadCalloutsForDll(HANDLE hModule) +{ + if (DisableThreadLibraryCalls(hModule)) + return STATUS_SUCCESS; + else + return STATUS_DLL_NOT_FOUND; +} diff --git a/dlls/ntdll/ntdll.spec b/dlls/ntdll/ntdll.spec index 684189ac8bf..af2636aa768 100644 --- a/dlls/ntdll/ntdll.spec +++ b/dlls/ntdll/ntdll.spec @@ -43,7 +43,7 @@ debug_channels (atom cdrom console debug delayhlp dll dosfs dosmem file fixup @ stub KiUserCallbackDispatcher @ stub KiUserExceptionDispatcher @ stub LdrAccessResource -@ stub LdrDisableThreadCalloutsForDll +@ stdcall LdrDisableThreadCalloutsForDll(long) LdrDisableThreadCalloutsForDll @ stub LdrEnumResources @ stub LdrFindEntryForAddress @ stub LdrFindResourceDirectory_U @@ -394,6 +394,7 @@ debug_channels (atom cdrom console debug delayhlp dll dosfs dosmem file fixup @ stdcall RtlFreeUnicodeString(ptr) RtlFreeUnicodeString @ stub RtlGenerate8dot3Name @ stdcall RtlGetAce(ptr long ptr) RtlGetAce +@ stub RtlGetVersion @ stub RtlGetCallersAddress @ stub RtlGetCompressionWorkSpaceSize @ stdcall RtlGetControlSecurityDescriptor(ptr ptr ptr) RtlGetControlSecurityDescriptor @@ -511,6 +512,7 @@ debug_channels (atom cdrom console debug delayhlp dll dosfs dosmem file fixup @ stdcall RtlSizeHeap(long long ptr) RtlSizeHeap @ stub RtlSplay @ stub RtlStartRXact +@ stub RtlStringFromGUID @ stdcall RtlSubAuthorityCountSid(ptr) RtlSubAuthorityCountSid @ stdcall RtlSubAuthoritySid(ptr long) RtlSubAuthoritySid @ stub RtlSubtreePredecessor