#include <nt.h>
#include <ntrtl.h>
#include <nturtl.h>
#include <string.h>
#include "wdbgexts.h"
#include <ntdbg.h>
Go to the source code of this file.
Classes | |
struct | _LDRP_PATH_CACHE |
struct | _LDRP_TLS_ENTRY |
Defines | |
#define | NOEXTAPI |
#define | LDRP_MAX_KNOWN_PATH 128 |
#define | NATIVE_PAGE_SIZE PAGE_SIZE |
#define | NATIVE_PAGE_SHIFT PAGE_SHIFT |
#define | NATIVE_BYTES_TO_PAGES(Size) BYTES_TO_PAGES(Size) |
#define | LDRP_HASH_TABLE_SIZE 32 |
#define | LDRP_HASH_MASK (LDRP_HASH_TABLE_SIZE-1) |
#define | LDRP_COMPUTE_HASH_INDEX(wch) ( (RtlUpcaseUnicodeChar((wch)) - (WCHAR)'A') & LDRP_HASH_MASK ) |
#define | LDRP_BAD_DLL LongToPtr(0xffbadd11) |
#define | LdrpReferenceLoadedDll(lde) LdrpUpdateLoadCount( lde, TRUE ) |
#define | LdrpDereferenceLoadedDll(lde) LdrpUpdateLoadCount( lde, FALSE ) |
#define | MAKE_TAG(t) (RTL_HEAP_MAKE_TAG( NtdllBaseTag, t )) |
#define | CSR_TAG 0 |
#define | LDR_TAG 1 |
#define | CURDIR_TAG 2 |
#define | TLS_TAG 3 |
#define | DBG_TAG 4 |
#define | SE_TAG 5 |
#define | TEMP_TAG 6 |
#define | ATOM_TAG 7 |
#define | LdrpCallInitRoutine(InitRoutine, DllHandle, Reason, Context) (InitRoutine)((DllHandle), (Reason), (Context)) |
Typedefs | |
typedef _LDRP_PATH_CACHE | LDRP_PATH_CACHE |
typedef _LDRP_PATH_CACHE * | PLDRP_PATH_CACHE |
typedef _LDRP_TLS_ENTRY | LDRP_TLS_ENTRY |
typedef _LDRP_TLS_ENTRY * | PLDRP_TLS_ENTRY |
Functions | |
NTSTATUS | LdrpSnapIAT (IN PLDR_DATA_TABLE_ENTRY LdrDataTableEntry_Export, IN PLDR_DATA_TABLE_ENTRY LdrDataTableEntry_Import, IN PIMAGE_IMPORT_DESCRIPTOR ImportDescriptor, IN BOOLEAN SnapForwardersOnly) |
NTSTATUS | LdrpSnapLinksToDllHandle (IN PVOID DllHandle, IN ULONG NumberOfThunks, IN OUT PIMAGE_THUNK_DATA FirstThunk) |
NTSTATUS | LdrpSnapThunk (IN PVOID DllBase, IN PVOID ImageBase, IN PIMAGE_THUNK_DATA OriginalThunk, IN OUT PIMAGE_THUNK_DATA Thunk, IN PIMAGE_EXPORT_DIRECTORY ExportDirectory, IN ULONG ExportSize, IN BOOLEAN StaticSnap, IN PSZ DllName OPTIONAL) |
USHORT | LdrpNameToOrdinal (IN PSZ Name, IN ULONG NumberOfNames, IN PVOID DllBase, IN PULONG NameTableBase, IN PUSHORT NameOrdinalTableBase) |
PLDR_DATA_TABLE_ENTRY | LdrpAllocateDataTableEntry (IN PVOID DllBase) |
BOOLEAN | LdrpCheckForLoadedDll (IN PWSTR DllPath OPTIONAL, IN PUNICODE_STRING DllName, IN BOOLEAN StaticLink, IN BOOLEAN Wx86KnownDll, OUT PLDR_DATA_TABLE_ENTRY *LdrDataTableEntry) |
BOOLEAN | LdrpCheckForLoadedDllHandle (IN PVOID DllHandle, OUT PLDR_DATA_TABLE_ENTRY *LdrDataTableEntry) |
NTSTATUS | LdrpMapDll (IN PWSTR DllPath OPTIONAL, IN PWSTR DllName, IN PULONG DllCharacteristics OPTIONAL, IN BOOLEAN StaticLink, IN BOOLEAN Wx86KnownDll, OUT PLDR_DATA_TABLE_ENTRY *LdrDataTableEntry) |
NTSTATUS | LdrpWalkImportDescriptor (IN PWSTR DllPath OPTIONAL, IN PLDR_DATA_TABLE_ENTRY LdrDataTableEntry) |
NTSTATUS | LdrpRunInitializeRoutines (IN PCONTEXT Context OPTIONAL) |
VOID | LdrpUpdateLoadCount (IN PLDR_DATA_TABLE_ENTRY LdrDataTableEntry, IN BOOLEAN IncrementCount) |
NTSTATUS | LdrpInitializeProcess (IN PCONTEXT Context OPTIONAL, IN PVOID SystemDllBase, IN PUNICODE_STRING UnicodeImageName) |
VOID | LdrpInitialize (IN PCONTEXT Context, IN PVOID SystemArgument1, IN PVOID SystemArgument2) |
VOID | LdrpInsertMemoryTableEntry (IN PLDR_DATA_TABLE_ENTRY LdrDataTableEntry) |
BOOLEAN | LdrpResolveDllName (IN PWSTR DllPath OPTIONAL, IN PWSTR DllName, OUT PUNICODE_STRING FullDllName, OUT PUNICODE_STRING BaseDllName, OUT PHANDLE DllFile) |
NTSTATUS | LdrpCreateDllSection (IN PUNICODE_STRING FullDllName, IN HANDLE DllFile, IN PUNICODE_STRING BaseName, IN PULONG DllCharacteristics OPTIONAL, OUT PHANDLE SectionHandle) |
VOID | LdrpInitializePathCache (VOID) |
PVOID | LdrpFetchAddressOfEntryPoint (IN PVOID Base) |
BOOLEAN | xRtlDosPathNameToNtPathName (IN PSZ DosFileName, OUT PSTRING NtFileName, OUT PSZ *FilePart OPTIONAL, OUT PRTL_RELATIVE_NAME RelativeName OPTIONAL) |
ULONG | xRtlDosSearchPath (PSZ lpPath, PSZ lpFileName, PSZ lpExtension, ULONG nBufferLength, PSZ lpBuffer, PSZ *lpFilePart OPTIONAL) |
ULONG | xRtlGetFullPathName (PSZ lpFileName, ULONG nBufferLength, PSZ lpBuffer, PSZ *lpFilePart OPTIONAL) |
PSZ | UnicodeToAnsii (IN PWSTR String) |
HANDLE | LdrpCheckForKnownDll (IN PWSTR DllName, OUT PUNICODE_STRING FullDllName, OUT PUNICODE_STRING BaseDllName) |
NTSTATUS | LdrpSetProtection (IN PVOID Base, IN BOOLEAN Reset, IN BOOLEAN StaticLink) |
NTSTATUS | LdrpInitializeTls (VOID) |
NTSTATUS | LdrpAllocateTls (VOID) |
VOID | LdrpFreeTls (VOID) |
VOID | LdrpCallTlsInitializers (PVOID DllBase, ULONG Reason) |
NTSTATUS NTAPI | LdrpLoadDll (IN PWSTR DllPath OPTIONAL, IN PULONG DllCharacteristics OPTIONAL, IN PUNICODE_STRING DllName, OUT PVOID *DllHandle, IN BOOLEAN RunInitRoutines) |
NTSTATUS NTAPI | LdrpGetProcedureAddress (IN PVOID DllHandle, IN PANSI_STRING ProcedureName OPTIONAL, IN ULONG ProcedureNumber OPTIONAL, OUT PVOID *ProcedureAddress, IN BOOLEAN RunInitRoutines) |
PLIST_ENTRY | RtlpLockProcessHeapsList (VOID) |
VOID | RtlpUnlockProcessHeapsList (VOID) |
BOOLEAN | RtlpSerializeHeap (IN PVOID HeapHandle) |
PVOID | LdrpDefineDllTag (PWSTR TagName, PUSHORT TagIndex) |
Variables | |
BOOLEAN | LdrpImageHasTls |
UNICODE_STRING | LdrpDefaultPath |
HANDLE | LdrpKnownDllObjectDirectory |
WCHAR | LdrpKnownDllPathBuffer [LDRP_MAX_KNOWN_PATH] |
UNICODE_STRING | LdrpKnownDllPath |
LIST_ENTRY | LdrpHashTable [LDRP_HASH_TABLE_SIZE] |
LIST_ENTRY | LdrpDefaultPathCache |
BOOLEAN | ShowSnaps |
BOOLEAN | RtlpTimoutDisable |
LARGE_INTEGER | RtlpTimeout |
ULONG | NtGlobalFlag |
LIST_ENTRY | RtlCriticalSectionList |
RTL_CRITICAL_SECTION | RtlCriticalSectionLock |
BOOLEAN | LdrpShutdownInProgress |
BOOLEAN | LdrpInLdrInit |
BOOLEAN | LdrpLdrDatabaseIsSetup |
BOOLEAN | LdrpVerifyDlls |
PLDR_DATA_TABLE_ENTRY | LdrpImageEntry |
LIST_ENTRY | LdrpUnloadHead |
BOOLEAN | LdrpActiveUnloadCount |
PLDR_DATA_TABLE_ENTRY | LdrpGetModuleHandleCache |
PLDR_DATA_TABLE_ENTRY | LdrpLoadedDllHandleCache |
ULONG | LdrpFatalHardErrorCount |
RTL_CRITICAL_SECTION | FastPebLock |
HANDLE | LdrpShutdownThreadId |
ULONG | LdrpNumberOfProcessors |
LIST_ENTRY | LdrpTlsList |
ULONG | LdrpNumberOfTlsEntries |
ULONG | NtdllBaseTag |
|
Definition at line 466 of file ldrp.h. Referenced by LdrpInitializeProcess(). |
|
Definition at line 459 of file ldrp.h. Referenced by CsrClientConnectToServer(), and CsrpConnectToServer(). |
|
|
|
Definition at line 463 of file ldrp.h. Referenced by DbgSsHandleKmApiMsg(). |
|
Definition at line 460 of file ldrp.h. Referenced by LdrpAllocateDataTableEntry(), LdrpCheckForKnownDll(), LdrpInitializeProcess(), and LdrpResolveDllName(). |
|
Definition at line 166 of file ldrp.h. Referenced by LdrpSnapThunk(). |
|
Definition at line 161 of file ldrp.h. Referenced by LdrpCheckForLoadedDll(), and LdrpInsertMemoryTableEntry(). |
|
|
|
Definition at line 159 of file ldrp.h. Referenced by LdrpInitializeProcess(). |
|
|
|
Definition at line 484 of file ldrp.h. Referenced by LdrpCallTlsInitializers(), LdrpInitializeThread(), LdrpRunInitializeRoutines(), LdrShutdownProcess(), LdrShutdownThread(), and LdrUnloadDll(). |
|
Definition at line 254 of file ldrp.h. Referenced by LdrUnloadDll(). |
|
Definition at line 253 of file ldrp.h. Referenced by LdrpInitializeProcess(), and LdrpLoadDll(). |
|
|
|
|
|
|
Definition at line 153 of file ldrp.h. Referenced by LdrpInitializeProcess(), and LdrpMapDll(). |
|
|
|
Definition at line 464 of file ldrp.h. Referenced by RtlCopySecurityDescriptor(), RtlCreateAndSetSD(), RtlpConvertAclToAutoInherit(), RtlpConvertToAutoInheritSecurityObject(), RtlpCreateServerAcl(), RtlpGetDefaultsSubjectContext(), RtlpInheritAcl(), RtlpNewSecurityObject(), and RtlpSetSecurityObject(). |
|
Definition at line 465 of file ldrp.h. Referenced by LdrpGetProcedureAddress(), LdrpResolveDllName(), LdrpRunInitializeRoutines(), and LdrQueryImageFileExecutionOptions(). |
|
Definition at line 462 of file ldrp.h. Referenced by LdrpAllocateTls(), and LdrpInitializeTls(). |
|
|
|
Referenced by LdrpAllocateTls(). |
|
|
|
Referenced by LdrpInitializeTls(). |
|
Definition at line 3043 of file ldrsnap.c. References LDR_TAG, MAKE_TAG, NULL, RtlAllocateHeap, and RtlImageNtHeader(). Referenced by LdrpInitializeProcess(), and LdrpMapDll().
|
|
Definition at line 2071 of file ldrinit.c. References DbgPrint, LDRP_TLS_ENTRY, LdrpNumberOfTlsEntries, LdrpTlsList, MAKE_TAG, RtlAllocateHeap, ShowSnaps, _LDRP_TLS_ENTRY::Tls, and TLS_TAG. Referenced by LdrpInitializeThread(), and LdrpInitializeTls().
|
|
Definition at line 2178 of file ldrinit.c. References DbgPrint, EXCEPTION_EXECUTE_HANDLER, LdrpCallInitRoutine, NULL, RtlImageDirectoryEntryToData(), ShowSnaps, and TRUE. Referenced by LdrpInitializeThread(), LdrpRunInitializeRoutines(), LdrShutdownProcess(), and LdrShutdownThread().
|
|
Definition at line 3283 of file ldrsnap.c. References LDR_TAG, LdrpKnownDllObjectDirectory, LdrpKnownDllPath, MAKE_TAG, NT_SUCCESS, NtOpenSection(), NTSTATUS(), NULL, RtlAllocateHeap, RtlFreeHeap, RtlInitUnicodeString(), Status, Unicode, and USHORT. Referenced by LdrpMapDll().
|
|
Definition at line 832 of file ldrsnap.c. References CHAR, DbgPrint, EXCEPTION_EXECUTE_HANDLER, FALSE, File, L, LDRP_COMPUTE_HASH_INDEX, LdrpDefaultPath, LdrpHashTable, NT_SUCCESS, NtAreMappedFilesTheSame(), NtClose(), NtCreateSection(), NtMapViewOfSection(), NtOpenFile(), NTSTATUS(), NtUnmapViewOfSection(), NULL, ObjectAttributes, RtlCopyUnicodeString(), RtlDosPathNameToNtPathName_U(), RtlDosSearchPath_U(), RtlEqualUnicodeString(), RtlFreeHeap, RtlImageNtHeader(), ShowSnaps, TRUE, and USHORT. Referenced by LdrGetDllHandle(), LdrpDphDetectSnapRoutines(), LdrpDphInitializeTargetDll(), LdrpLoadDll(), LdrpLoadImportModule(), and LdrpUpdateLoadCount().
|
|
Definition at line 1196 of file ldrsnap.c. References FALSE, LdrpLoadedDllHandleCache, and TRUE. Referenced by LdrDisableThreadCalloutsForDll(), LdrpGetProcedureAddress(), and LdrUnloadDll().
|
|
Definition at line 2150 of file ldrsnap.c. References DbgPrint, File, LdrpFatalHardErrorCount, LdrpInLdrInit, NT_SUCCESS, NtClose(), NtCreateSection(), NtOpenFile(), NtRaiseHardError(), NTSTATUS(), NULL, and ObjectAttributes. Referenced by LdrpMapDll().
|
|
Definition at line 191 of file heaptag.c. References LDRP_MAXIMUM_DLL_TAGS, LdrpDllTagProcedures, LdrpDllTags, LdrpDllTagsInitialized, LdrpNumberOfDllTags, NULL, RtlAllocateHeap, RtlCreateTagHeap(), RtlpGlobalTagHeap, TRUE, USHORT, and _HEAP::VirtualAllocdBlocks. Referenced by LdrpWalkImportDescriptor().
|
|
Definition at line 3249 of file ldrsnap.c. References RtlImageNtHeader(). Referenced by LdrpInitializeProcess(), and LdrpMapDll().
|
|
Definition at line 2134 of file ldrinit.c. References LdrpTlsList, RtlFreeHeap, and _LDRP_TLS_ENTRY::Tls. Referenced by LdrShutdownThread().
|
|
Definition at line 851 of file ldrapi.c. References DbgPrint, EXCEPTION_EXECUTE_HANDLER, FALSE, LdrpCheckForLoadedDllHandle(), LdrpInLdrInit, LdrpRunInitializeRoutines(), LdrpSnapThunk(), LoaderLock, MAKE_TAG, NT_SUCCESS, NTSTATUS(), NULL, RtlAllocateHeap, RtlFreeHeap, RtlImageDirectoryEntryToData(), RtlImageNtHeader(), ShowSnaps, TEMP_TAG, TRUE, and USHORT. Referenced by LdrGetProcedureAddress(), and LdrpSnapThunk().
|
|
Definition at line 186 of file ldrinit.c. References DbgPrint, EXCEPTION_EXECUTE_HANDLER, FALSE, L, LdrpForkProcess(), LdrpInitializationFailure(), LdrpInitializeProcess(), LdrpInitializeThread(), LdrpInLdrInit, LdrQueryImageFileExecutionOptions(), LoaderLock, LoaderLockInitialized, NT_SUCCESS, NtDelayExecution(), NtQueryPerformanceCounter(), NtQueryVirtualMemory(), NTSTATUS(), NtTestAlert(), NULL, RtlImageDirectoryEntryToData(), RtlImageNtHeader(), RtlpDebugPageHeap, RtlpDisableHeapLookaside, RtlpDphDllRangeEnd, RtlpDphDllRangeStart, RtlpDphGlobalFlags, RtlpDphRandomProbability, RtlpDphSizeRangeEnd, RtlpDphSizeRangeStart, RtlpDphTargetDlls, RtlRaiseStatus(), and TRUE.
|
|
|
|
Definition at line 616 of file ldrinit.c. References ASSERT, ATOM_TAG, CommandLine, DbgPrint, FALSE, FastPebLock, HeapParameters, InitTableInfo, L, LDR_TAG, LdrGetProcedureAddress(), LdrLoadDll(), LDRP_HASH_TABLE_SIZE, LdrpAllocateDataTableEntry(), LdrpDefaultPath, LdrpFetchAddressOfEntryPoint(), LdrpHashTable, LdrpImageEntry, LdrpInitializationFailure(), LdrpInitializeTls(), LdrpInsertMemoryTableEntry(), LdrpKnownDllObjectDirectory, LdrpKnownDllPath, LdrpKnownDllPathBuffer, LdrpLdrDatabaseIsSetup, LdrpNumberOfProcessors, LdrpReferenceLoadedDll, LdrpRelocateStartContext(), LdrpRunInitializeRoutines(), LdrpSetProtection(), LdrpVerifyDlls, LdrpWalkImportDescriptor(), LdrQueryApplicationCompatibilityGoo(), LdrQueryImageFileExecutionOptions(), LdrRelocateImage(), LoaderLock, LoaderLockInitialized, MAKE_TAG, NATIVE_PAGE_SIZE, NT_SUCCESS, NtAllocateVirtualMemory(), NtClose(), NtDllBase, NtdllBaseTag, NtdllpAllocateStringRoutine(), NtdllpFreeStringRoutine(), NtFreeVirtualMemory(), NtOpenDirectoryObject(), NtOpenSymbolicLinkObject(), NtQueryPerformanceCounter(), NtQuerySymbolicLinkObject(), NtSetInformationProcess(), NTSTATUS(), NtSystemRoot, NULL, PAGE_SIZE, RtlAllocateHeap, RtlAllocateStringRoutine, RtlAppendUnicodeStringToString(), RtlAppendUnicodeToString(), RtlCreateHeap(), RtlCreateTagHeap(), RtlCriticalSectionList, RtlFreeStringRoutine, RtlFreeUnicodeString(), RtlImageDirectoryEntryToData(), RtlImageNtHeader(), RtlInitAnsiString(), RtlInitializeAtomPackage(), RtlInitializeBitMap(), RtlInitializeCriticalSection(), RtlInitializeHeapManager(), RtlInitNlsTables(), RtlInitUnicodeString(), RtlNormalizeProcessParams(), RtlpDebugPageHeap, RtlpInitDeferedCriticalSection(), RtlpTimeout, RtlpTimoutDisable, RtlRaiseStatus(), RtlResetRtlTranslations(), RtlSetCurrentDirectory_U(), ShowSnaps, TlsBitMap, TlsExpansionBitMap, TRUE, Unicode, and USHORT. Referenced by LdrpInitialize().
|
|
Definition at line 1978 of file ldrinit.c. References DbgPrint, FALSE, LdrpAllocateTls(), LdrpImageHasTls, LdrpNumberOfTlsEntries, LdrpTlsList, MAKE_TAG, PLDRP_TLS_ENTRY, RtlAllocateHeap, RtlImageDirectoryEntryToData(), RtlpSerializeHeap(), ShowSnaps, TLS_TAG, TRUE, and USHORT. Referenced by LdrpInitializeProcess().
|
|
Definition at line 3084 of file ldrsnap.c. References LDRP_COMPUTE_HASH_INDEX, and LdrpHashTable. Referenced by LdrpInitializeProcess(), and LdrpMapDll().
|
|
Definition at line 70 of file ldrapi.c. References DbgPrint, DLLEXTENSION, EXCEPTION_EXECUTE_HANDLER, FALSE, L, LdrpCheckForLoadedDll(), LdrpClearLoadInProgress(), LdrpInLdrInit, LdrpLdrDatabaseIsSetup, LdrpMapDll(), LdrpReferenceLoadedDll, LdrpRunInitializeRoutines(), LdrpWalkImportDescriptor(), LdrUnloadDll(), LoaderLock, NT_SUCCESS, NTSTATUS(), NULL, RtlInitUnicodeString(), and ShowSnaps. Referenced by LdrLoadDll(), and LdrpSnapThunk().
|
|
Definition at line 1261 of file ldrsnap.c. References Action, DbgPrint, FALSE, L, LdrpAllocateDataTableEntry(), LdrpCheckForKnownDll(), LdrpCreateDllSection(), LdrpDefaultPath, LdrpFatalHardErrorCount, LdrpFetchAddressOfEntryPoint(), LdrpInLdrInit, LdrpInsertMemoryTableEntry(), LdrpKnownDllObjectDirectory, LdrpNumberOfProcessors, LdrpResolveDllName(), LdrpSetProtection(), LdrRelocateImage(), NATIVE_PAGE_SIZE, NT_ERROR, NT_SUCCESS, NtClose(), NtMapViewOfSection(), NtQueryPerformanceCounter(), NtRaiseHardError(), NTSTATUS(), NtUnmapViewOfSection(), NULL, PAGE_SIZE, RtlDosPathNameToNtPathName_U(), RtlEqualUnicodeString(), RtlFreeHeap, RtlFreeUnicodeString(), RtlImageDirectoryEntryToData(), RtlImageNtHeader(), RtlInitUnicodeString(), ShowSnaps, TRUE, type, and USHORT. Referenced by LdrpLoadDll(), and LdrpLoadImportModule().
|
|
Definition at line 2747 of file ldrsnap.c. Referenced by LdrpSnapThunk().
|
|
Definition at line 3120 of file ldrsnap.c. References DbgPrint, FALSE, LDR_TAG, LdrpDefaultPath, MAKE_TAG, NULL, RtlAllocateHeap, RtlDosSearchPath_U(), RtlFreeHeap, RtlFreeUnicodeString(), ShowSnaps, TEMP_TAG, TRUE, and USHORT. Referenced by LdrpMapDll().
|
|
Definition at line 652 of file ldrsnap.c. References DbgPrint, L, LdrpCallInitRoutine, LdrpCallTlsInitializers(), LdrpClearLoadInProgress(), LdrpImageHasTls, LdrQueryImageFileExecutionOptions(), MAKE_TAG, NT_SUCCESS, NTSTATUS(), NULL, RtlAllocateHeap, RtlFreeHeap, RtlImageNtHeader(), ShowSnaps, Status, TEMP_TAG, and TRUE. Referenced by LdrpGetProcedureAddress(), LdrpInitializeProcess(), and LdrpLoadDll().
|
|
Definition at line 3417 of file ldrsnap.c. References NT_SUCCESS, NtFlushInstructionCache(), NtProtectVirtualMemory(), NTSTATUS(), NULL, PAGE_SIZE, and RtlImageNtHeader(). Referenced by LdrpInitializeProcess(), and LdrpMapDll().
|
|
Definition at line 2258 of file ldrsnap.c. References EXCEPTION_EXECUTE_HANDLER, LdrpSnapThunk(), NT_SUCCESS, NtFlushInstructionCache(), NtProtectVirtualMemory(), NTSTATUS(), NULL, RtlImageDirectoryEntryToData(), RtlImageNtHeader(), and TRUE. Referenced by LdrpWalkImportDescriptor().
|
|
|
|
Definition at line 2476 of file ldrsnap.c. References DbgPrint, FALSE, LDRP_BAD_DLL, LdrpFatalHardErrorCount, LdrpGetProcedureAddress(), LdrpInLdrInit, LdrpLoadDll(), LdrpNameToOrdinal(), NT_SUCCESS, NtRaiseHardError(), NTSTATUS(), NULL, PAGE_SIZE, PUSHORT, RtlAnsiStringToUnicodeString(), RtlCharToInteger(), RtlFreeUnicodeString(), RtlImageNtHeader(), RtlInitAnsiString(), RtlRaiseStatus(), ShowSnaps, TRUE, and USHORT. Referenced by LdrpGetProcedureAddress(), and LdrpSnapIAT().
|
|
Definition at line 2802 of file ldrsnap.c. References DbgPrint, FALSE, LdrpCheckForLoadedDll(), NT_SUCCESS, NTSTATUS(), NULL, RtlAnsiStringToUnicodeString(), RtlImageDirectoryEntryToData(), RtlImageNtHeader(), RtlInitAnsiString(), ShowSnaps, and TRUE.
|
|
Definition at line 214 of file ldrsnap.c. References DbgPrint, FALSE, LdrpDefineDllTag(), LdrpDphInitializeTargetDll(), LdrpLoadImportModule(), LdrpSnapIAT(), Name, NT_SUCCESS, NtProtectVirtualMemory(), NTSTATUS(), NULL, PAGE_SIZE, RtlAllocateHeap, RtlImageDirectoryEntryToData(), RtlImageNtHeader(), ShowSnaps, TRUE, and USHORT.
|
|
|
|
Definition at line 323 of file heapdbg.c. References FALSE, _HEAP::Flags, _HEAP::ForceFlags, HeapHandle, IF_DEBUG_PAGE_HEAP_THEN_RETURN, Lock, _HEAP::LockVariable, NT_SUCCESS, NTSTATUS(), NULL, RtlAllocateHeap, RtlFreeHeap, RtlInitializeLockRoutine, RtlpCheckHeapSignature(), RtlpDebugPageHeapSerialize(), RtlpValidateHeapHeaders(), Status, and TRUE. Referenced by LdrpInitializeTls().
|
|
|
|
|
|
|
|
|
|
|
|
Definition at line 388 of file ldrp.h. Referenced by LdrpForkProcess(), and LdrpInitializeProcess(). |
|
Definition at line 383 of file ldrp.h. Referenced by LdrUnloadDll(). |
|
Definition at line 387 of file ldrp.h. Referenced by LdrpCheckForLoadedDll(), LdrpInitializeProcess(), LdrpMapDll(), and LdrpResolveDllName(). |
|
|
|
Definition at line 386 of file ldrp.h. Referenced by LdrpCreateDllSection(), LdrpInitializationFailure(), LdrpMapDll(), and LdrpSnapThunk(). |
|
Definition at line 384 of file ldrp.h. Referenced by LdrGetDllHandle(), and LdrUnloadDll(). |
|
Definition at line 162 of file ldrp.h. Referenced by LdrpCheckForLoadedDll(), LdrpInitializeProcess(), and LdrpInsertMemoryTableEntry(). |
|
Definition at line 390 of file ldrp.h. Referenced by LdrpInitializeProcess(). |
|
Definition at line 32 of file ldrp.h. Referenced by LdrpInitializeThread(), LdrpInitializeTls(), LdrpRunInitializeRoutines(), LdrShutdownProcess(), and LdrShutdownThread(). |
|
Definition at line 374 of file ldrp.h. Referenced by LdrDisableThreadCalloutsForDll(), LdrGetDllHandle(), LdrpCreateDllSection(), LdrpGetProcedureAddress(), LdrpInitialize(), LdrpLoadDll(), LdrpMapDll(), LdrpSnapThunk(), LdrQueryProcessModuleInformation(), and LdrUnloadDll(). |
|
Definition at line 34 of file ldrp.h. Referenced by LdrpCheckForKnownDll(), LdrpInitializeProcess(), and LdrpMapDll(). |
|
Definition at line 37 of file ldrp.h. Referenced by LdrpCheckForKnownDll(), and LdrpInitializeProcess(). |
|
Definition at line 36 of file ldrp.h. Referenced by LdrpInitializeProcess(). |
|
Definition at line 375 of file ldrp.h. Referenced by LdrpInitializeProcess(), and LdrpLoadDll(). |
|
Definition at line 385 of file ldrp.h. Referenced by LdrpCheckForLoadedDllHandle(), and LdrUnloadDll(). |
|
Definition at line 391 of file ldrp.h. Referenced by LdrpInitializeProcess(), and LdrpMapDll(). |
|
Definition at line 401 of file ldrp.h. Referenced by LdrpAllocateTls(), and LdrpInitializeTls(). |
|
|
|
Definition at line 389 of file ldrp.h. Referenced by LdrShutdownProcess(), RtlpNotOwnerCriticalSection(), and RtlpWaitForCriticalSection(). |
|
Definition at line 400 of file ldrp.h. Referenced by LdrpAllocateTls(), LdrpFreeTls(), and LdrpInitializeTls(). |
|
Definition at line 382 of file ldrp.h. Referenced by LdrUnloadDll(). |
|
Definition at line 376 of file ldrp.h. Referenced by LdrpInitializeProcess(). |
|
Definition at line 455 of file ldrp.h. Referenced by LdrpInitializeProcess(). |
|
|
Definition at line 371 of file ldrp.h. Referenced by LdrpForkProcess(), LdrpInitializeProcess(), RtlCheckForOrphanedCriticalSections(), RtlInitializeCriticalSectionAndSpinCount(), RtlpInitDeferedCriticalSection(), and RtlQueryProcessLockInformation(). |
|
Definition at line 372 of file ldrp.h. Referenced by RtlCheckForOrphanedCriticalSections(), RtlDeleteCriticalSection(), RtlInitializeCriticalSectionAndSpinCount(), RtlpInitDeferedCriticalSection(), and RtlQueryProcessLockInformation(). |
|
Definition at line 369 of file ldrp.h. Referenced by LdrpInitializeProcess(), RtlAcquireResourceExclusive(), RtlAcquireResourceShared(), RtlConvertSharedToExclusive(), and RtlpWaitForCriticalSection(). |
|
Definition at line 368 of file ldrp.h. Referenced by LdrpInitializeProcess(), and RtlpWaitForCriticalSection(). |
|