ReactOS 0.4.16-dev-979-g79f281e
|
Go to the source code of this file.
Classes | |
struct | _LDRP_TLS_DATA |
Macros | |
#define | LDR_HASH_TABLE_ENTRIES 32 |
#define | LDR_GET_HASH_ENTRY(x) (RtlUpcaseUnicodeChar((x)) & (LDR_HASH_TABLE_ENTRIES - 1)) |
#define | LDRP_UPDATE_REFCOUNT 0x01 |
#define | LDRP_UPDATE_DEREFCOUNT 0x02 |
#define | LDRP_UPDATE_PIN 0x03 |
#define | IMAGE_LOADER_FLAGS_COMPLUS 0x00000001 |
#define | IMAGE_LOADER_FLAGS_SYSTEM_GLOBAL 0x01000000 |
#define | DPH_FLAG_DLL_NOTIFY 0x40 |
Typedefs | |
typedef struct _LDRP_TLS_DATA | LDRP_TLS_DATA |
typedef struct _LDRP_TLS_DATA * | PLDRP_TLS_DATA |
typedef NTSTATUS(NTAPI * | PLDR_APP_COMPAT_DLL_REDIRECTION_CALLBACK_FUNCTION) (_In_ ULONG Flags, _In_ PCWSTR DllName, _In_ PCWSTR DllPath OPTIONAL, _Inout_opt_ PULONG DllCharacteristics, _In_ PVOID CallbackData, _Outptr_ PWSTR *EffectiveDllPath) |
typedef NTSTATUS(NTAPI * | PEPFUNC) (PPEB) |
#define LDR_GET_HASH_ENTRY | ( | x | ) | (RtlUpcaseUnicodeChar((x)) & (LDR_HASH_TABLE_ENTRIES - 1)) |
typedef struct _LDRP_TLS_DATA LDRP_TLS_DATA |
typedef struct _LDRP_TLS_DATA * PLDRP_TLS_DATA |
VOID NTAPI AVrfDllLoadNotification | ( | IN PLDR_DATA_TABLE_ENTRY | LdrEntry | ) |
Definition at line 298 of file verifier.c.
Referenced by LdrpWalkImportDescriptor().
VOID NTAPI AVrfDllUnloadNotification | ( | IN PLDR_DATA_TABLE_ENTRY | LdrEntry | ) |
Definition at line 332 of file verifier.c.
Referenced by LdrUnloadDll().
Definition at line 672 of file verifier.c.
Referenced by LdrpInitializeProcess().
VOID NTAPI AVrfPageHeapDllNotification | ( | IN PLDR_DATA_TABLE_ENTRY | LdrEntry | ) |
Definition at line 390 of file verifier.c.
Referenced by LdrpWalkImportDescriptor().
NTSTATUS LdrMapSections | ( | HANDLE | ProcessHandle, |
PVOID | ImageBase, | ||
HANDLE | SectionHandle, | ||
PIMAGE_NT_HEADERS | NTHeaders | ||
) |
PLDR_DATA_TABLE_ENTRY NTAPI LdrpAllocateDataTableEntry | ( | IN PVOID | BaseAddress | ) |
Definition at line 1528 of file ldrutils.c.
Referenced by LdrpInitializeProcess(), and LdrpMapDll().
Definition at line 1328 of file ldrinit.c.
Referenced by LdrpInitializeThread(), and LdrpInitializeTls().
NTSYSAPI NTSTATUS NTAPI LdrpApplyFileNameRedirection | ( | _In_ PUNICODE_STRING | OriginalName, |
_In_ PUNICODE_STRING | Extension, | ||
_Inout_opt_ PUNICODE_STRING | StaticString, | ||
_Inout_opt_ PUNICODE_STRING | DynamicString, | ||
_Inout_ PUNICODE_STRING * | NewName, | ||
_Inout_ PBOOLEAN | RedirectedDll | ||
) |
Referenced by LdrGetDllHandleEx(), LdrLoadDll(), LdrpLoadImportModule(), LdrpSnapThunk(), and LdrpUpdateLoadCount3().
BOOLEAN NTAPI LdrpCallInitRoutine | ( | IN PDLL_INIT_ROUTINE | EntryPoint, |
IN PVOID | BaseAddress, | ||
IN ULONG | Reason, | ||
IN PVOID | Context | ||
) |
Definition at line 100 of file ldrutils.c.
Referenced by AVrfpLoadAndInitializeProvider(), LdrpCallTlsInitializers(), LdrpInitializeThread(), LdrpRunInitializeRoutines(), LdrpRunShimEngineInitRoutine(), LdrShutdownProcess(), LdrShutdownThread(), and LdrUnloadDll().
Definition at line 447 of file ldrutils.c.
Referenced by LdrpInitializeThread(), LdrpRunInitializeRoutines(), LdrShutdownProcess(), and LdrShutdownThread().
BOOLEAN NTAPI LdrpCheckForLoadedDll | ( | IN PWSTR | DllPath, |
IN PUNICODE_STRING | DllName, | ||
IN BOOLEAN | Flag, | ||
IN BOOLEAN | RedirectedDll, | ||
OUT PLDR_DATA_TABLE_ENTRY * | LdrEntry | ||
) |
Definition at line 1958 of file ldrutils.c.
Referenced by LdrGetDllHandleEx(), LdrpLoadDll(), LdrpLoadImportModule(), and LdrpUpdateLoadCount3().
Definition at line 1600 of file ldrutils.c.
Referenced by LdrAddRefDll(), LdrDisableThreadCalloutsForDll(), LdrpGetProcedureAddress(), LdrpSnapThunk(), and LdrUnloadDll().
Definition at line 2649 of file ldrutils.c.
Referenced by LdrAddRefDll(), LdrGetDllHandleEx(), LdrpLoadDll(), and LdrpRunInitializeRoutines().
Definition at line 408 of file ldrinit.c.
Referenced by LdrpCheckForKnownDll(), and LdrpRunInitializeRoutines().
Referenced by AVrfpLoadAndInitializeProvider(), and LdrpInitializeProcess().
VOID NTAPI LdrpFinalizeAndDeallocateDataTableEntry | ( | IN PLDR_DATA_TABLE_ENTRY | Entry | ) |
Definition at line 1577 of file ldrutils.c.
Referenced by LdrUnloadDll().
Definition at line 1391 of file ldrinit.c.
Referenced by LdrShutdownThread().
VOID NTAPI LdrpFreeUnicodeString | ( | PUNICODE_STRING | String | ) |
NTSTATUS NTAPI LdrpGetProcedureAddress | ( | _In_ PVOID | BaseAddress, |
_In_opt_ _When_(Ordinal==0, _Notnull_) PANSI_STRING | Name, | ||
_In_opt_ _When_(Name==NULL, _In_range_(>, 0)) ULONG | Ordinal, | ||
_Out_ PVOID * | ProcedureAddress, | ||
_In_ BOOLEAN | ExecuteInit | ||
) |
Definition at line 2231 of file ldrutils.c.
Referenced by AvrfpResolveThunks(), LdrGetProcedureAddress(), LdrpGetShimEngineFunction(), and LdrpSnapThunk().
ULONG LdrpGetResidentSize | ( | PIMAGE_NT_HEADERS | NTHeaders | ) |
Definition at line 2559 of file ldrinit.c.
Referenced by LdrpInit(), and LdrpInitializeProcess().
NTSTATUS NTAPI LdrpInitializeApplicationVerifierPackage | ( | IN HANDLE | KeyHandle, |
IN PPEB | Peb, | ||
IN BOOLEAN | SystemWide, | ||
IN BOOLEAN | ReadAdvancedOptions | ||
) |
Referenced by LdrpInitializeExecutionOptions().
Definition at line 1766 of file ldrinit.c.
Referenced by LdrpInit().
Definition at line 505 of file ldrinit.c.
Referenced by LdrpInit().
Definition at line 1265 of file ldrinit.c.
Referenced by LdrpInitializeProcess().
VOID NTAPI LdrpInsertMemoryTableEntry | ( | IN PLDR_DATA_TABLE_ENTRY | LdrEntry | ) |
Definition at line 1561 of file ldrutils.c.
Referenced by LdrpInitializeProcess(), and LdrpMapDll().
NTSTATUS NTAPI LdrpLoadDll | ( | IN BOOLEAN | Redirected, |
IN PWSTR DllPath | OPTIONAL, | ||
IN PULONG DllCharacteristics | OPTIONAL, | ||
IN PUNICODE_STRING | DllName, | ||
OUT PVOID * | BaseAddress, | ||
IN BOOLEAN | CallInit | ||
) |
Definition at line 2414 of file ldrutils.c.
Referenced by LdrLoadDll(), LdrpLoadShimEngine(), and LdrpSnapThunk().
NTSTATUS NTAPI LdrpLoadImportModule | ( | IN PWSTR DllPath | OPTIONAL, |
IN LPSTR | ImportName, | ||
OUT PLDR_DATA_TABLE_ENTRY * | DataTableEntry, | ||
OUT PBOOLEAN | Existing | ||
) |
Definition at line 808 of file ldrpe.c.
Referenced by LdrpHandleOneNewFormatImportDescriptor(), and LdrpHandleOneOldFormatImportDescriptor().
VOID NTAPI LdrpLoadShimEngine | ( | IN PWSTR | ImageName, |
IN PUNICODE_STRING | ProcessImage, | ||
IN PVOID | pShimData | ||
) |
Definition at line 2757 of file ldrutils.c.
Referenced by LdrpInitializeProcess().
NTSTATUS NTAPI LdrpMapDll | ( | IN PWSTR SearchPath | OPTIONAL, |
IN PWSTR | DllPath2, | ||
IN PWSTR DllName | OPTIONAL, | ||
IN PULONG | DllCharacteristics, | ||
IN BOOLEAN | Static, | ||
IN BOOLEAN | Redirect, | ||
OUT PLDR_DATA_TABLE_ENTRY * | DataTableEntry | ||
) |
Definition at line 997 of file ldrutils.c.
Referenced by LdrpLoadDll(), and LdrpLoadImportModule().
VOID NTAPI LdrpRecordUnloadEvent | ( | _In_ PLDR_DATA_TABLE_ENTRY | LdrEntry | ) |
Definition at line 28 of file trace.c.
Referenced by LdrUnloadDll().
Definition at line 648 of file ldrinit.c.
Referenced by LdrpGetProcedureAddress(), LdrpInitializeProcess(), and LdrpLoadDll().
VOID NTAPI LdrpSendDllNotifications | ( | _In_ PLDR_DATA_TABLE_ENTRY | DllEntry, |
_In_ ULONG | NotificationReason | ||
) |
Definition at line 104 of file ldrnotify.c.
Referenced by LdrpMapDll(), and LdrUnloadDll().
Definition at line 921 of file ldrutils.c.
Referenced by LdrpInitializeProcess(), and LdrpMapDll().
NTSTATUS NTAPI LdrpSnapThunk | ( | IN PVOID | ExportBase, |
IN PVOID | ImportBase, | ||
IN PIMAGE_THUNK_DATA | OriginalThunk, | ||
IN OUT PIMAGE_THUNK_DATA | Thunk, | ||
IN PIMAGE_EXPORT_DIRECTORY | ExportEntry, | ||
IN ULONG | ExportSize, | ||
IN BOOLEAN | Static, | ||
IN LPSTR | DllName | ||
) |
Definition at line 937 of file ldrpe.c.
Referenced by LdrpGetProcedureAddress(), and LdrpSnapIAT().
Definition at line 434 of file ldrutils.c.
Referenced by LdrAddRefDll(), LdrGetDllHandleEx(), LdrpLoadDll(), and LdrUnloadDll().
VOID NTAPI LdrpValidateImageForMp | ( | IN PLDR_DATA_TABLE_ENTRY | LdrDataTableEntry | ) |
Definition at line 1546 of file ldrinit.c.
Referenced by LdrpInitializeProcess(), and LdrpMapDll().
NTSTATUS NTAPI LdrpWalkImportDescriptor | ( | IN LPWSTR DllPath | OPTIONAL, |
IN PLDR_DATA_TABLE_ENTRY | LdrEntry | ||
) |
Definition at line 670 of file ldrpe.c.
Referenced by LdrpInitializeProcess(), LdrpLoadDll(), and LdrpLoadImportModule().
BOOLEAN NTAPI RtlDoesFileExists_UStr | ( | IN PUNICODE_STRING | FileName | ) |
Definition at line 1503 of file path.c.
Referenced by LdrpInitializeDotLocalSupport(), RtlDosApplyFileIsolationRedirection_Ustr(), and START_TEST().
Definition at line 460 of file condvar.c.
Referenced by DllMain(), and LdrpInitializeProcess().
Referenced by LdrpInitializeProcess().
|
extern |
Definition at line 23 of file ldrutils.c.
Referenced by LdrpGetShimEngineInterface(), and LdrpLoadDll().
|
extern |
Definition at line 24 of file ldrutils.c.
Referenced by LdrpGetShimEngineInterface(), and LdrUnloadDll().
|
extern |
Definition at line 26 of file ldrutils.c.
Referenced by LdrpGetShimEngineInterface(), and LdrpInitializeProcess().
|
extern |
Definition at line 25 of file ldrutils.c.
Referenced by LdrpGetShimEngineInterface(), and LdrpLoadShimEngine().
|
extern |
Definition at line 27 of file ldrutils.c.
Referenced by LdrpGetShimEngineInterface(), and LdrShutdownProcess().
|
extern |
Definition at line 22 of file ldrutils.c.
Referenced by LdrInitShimEngineDynamic(), LdrpGetShimEngineFunction(), LdrpLoadShimEngine(), LdrpRunShimEngineInitRoutine(), and LdrpUnloadShimEngine().
|
extern |
Definition at line 21 of file ldrutils.c.
Referenced by LdrpGetShimEngineInterface(), LdrpInitializeProcess(), LdrpLoadDll(), LdrpLoadShimEngine(), LdrpUnloadShimEngine(), LdrShutdownProcess(), and LdrUnloadDll().
|
extern |
Definition at line 22 of file ldrapi.c.
Referenced by LdrGetDllHandleEx(), LdrLoadDll(), LdrpLoadDll(), LdrpLoadImportModule(), LdrpSnapThunk(), and LdrpUpdateLoadCount3().
|
extern |
Definition at line 82 of file ldrinit.c.
Referenced by LdrUnloadDll().
|
extern |
Definition at line 43 of file ldrinit.c.
Referenced by LdrLoadDll(), and LdrpRunInitializeRoutines().
|
extern |
Definition at line 63 of file ldrinit.c.
Referenced by LdrpCheckForLoadedDll(), LdrpInitializeProcess(), LdrpMapDll(), LdrpResolveDllName(), and LdrpSearchPath().
|
extern |
Definition at line 81 of file ldrinit.c.
Referenced by LdrpCreateDllSection(), LdrpInitFailure(), LdrpMapDll(), and LdrpSnapThunk().
|
extern |
Definition at line 19 of file ldrutils.c.
Referenced by LdrGetDllHandleEx(), and LdrUnloadDll().
|
extern |
Definition at line 59 of file ldrinit.c.
Referenced by LdrpCheckForLoadedDll(), LdrpInitializeProcess(), and LdrpInsertMemoryTableEntry().
|
extern |
Definition at line 3 of file ldrinit.c.
Referenced by LdrpAllocateDataTableEntry(), LdrpAllocateUnicodeString(), LdrpCheckForKnownDll(), LdrpFinalizeAndDeallocateDataTableEntry(), LdrpFreeUnicodeString(), LdrpInitializeProcess(), LdrpMapDll(), LdrpResolveDllName(), LdrpRunInitializeRoutines(), LdrRegisterDllNotification(), and LdrUnregisterDllNotification().
|
extern |
Definition at line 30 of file ldrinit.c.
Referenced by LdrAddRefDll(), LdrDisableThreadCalloutsForDll(), LdrGetDllHandleEx(), LdrLockLoaderLock(), LdrpCreateDllSection(), LdrpGetProcedureAddress(), LdrpInit(), LdrpLoadDll(), LdrpMapDll(), LdrpSnapThunk(), and LdrUnloadDll().
|
extern |
Definition at line 60 of file ldrinit.c.
Referenced by LdrpCheckForKnownDll(), LdrpInitializeProcess(), and LdrpMapDll().
|
extern |
Definition at line 61 of file ldrinit.c.
Referenced by LdrpCheckForKnownDll(), and LdrpInitializeProcess().
|
extern |
Definition at line 33 of file ldrinit.c.
Referenced by LdrpInitializeProcess(), and LdrpLoadDll().
PLDR_DATA_TABLE_ENTRY LdrpLoadedDllHandleCache |
Definition at line 59 of file ntdllp.h.
Referenced by LdrUnloadDll().
|
extern |
Definition at line 68 of file ldrinit.c.
Referenced by LdrLockLoaderLock(), LdrpGetProcedureAddress(), LdrpInit(), LdrpInitializeProcess(), LdrpInitializeThread(), LdrpLoadDll(), LdrShutdownProcess(), LdrShutdownThread(), and LdrUnlockLoaderLock().
|
extern |
Definition at line 55 of file ldrinit.c.
Referenced by LdrpInitializeProcess(), and LdrpMapDll().
|
extern |
Definition at line 34 of file ldrinit.c.
Referenced by LdrDisableThreadCalloutsForDll(), LdrUnloadDll(), and RtlDllShutdownInProgress().
|
extern |
Definition at line 40 of file ldrinit.c.
Referenced by LdrLoadDll().
|
extern |
Definition at line 108 of file heappage.c.
Referenced by AVrfPageHeapDllNotification(), LdrpInitializeProcess(), RtlpDphProcessStartupInitialization(), and RtlpPageHeapCreate().
|
extern |
Definition at line 107 of file heappage.c.
Referenced by LdrpInitializeApplicationVerifierPackage(), LdrpInitializeProcess(), and RtlCreateHeap().
|
extern |
Definition at line 79 of file ldrinit.c.
Referenced by LdrAddRefDll(), LdrGetDllHandleEx(), LdrLoadDll(), LdrpAllocateTls(), LdrpCallTlsInitializers(), LdrpCheckForLoadedDll(), LdrpCreateDllSection(), LdrpGetProcedureAddress(), LdrpHandleOneNewFormatImportDescriptor(), LdrpHandleOneOldFormatImportDescriptor(), LdrpInitializeProcess(), LdrpInitializeTls(), LdrpLoadDll(), LdrpMapDll(), LdrpResolveDllName(), LdrpResolveFullName(), LdrpRunInitializeRoutines(), LdrpSearchPath(), LdrpSnapThunk(), LdrpUpdateLoadCount3(), LdrShutdownProcess(), and LdrUnloadDll().