ReactOS 0.4.15-dev-7085-g12a5971
|
Go to the source code of this file.
Macros | |
#define | NDEBUG |
#define | MODULE_INVOLVED_IN_ARM3 |
#define | DEFAULT_SECURITY_COOKIE 0xBB40E64E |
#define | RVA(m, b) ((PVOID)((ULONG_PTR)(b) + (ULONG_PTR)(m))) |
Definition at line 2858 of file sysldr.c.
Referenced by LdrpInitSecurityCookie().
PVOID NTAPI LdrpInitSecurityCookie | ( | PLDR_DATA_TABLE_ENTRY | LdrEntry | ) |
Definition at line 2898 of file sysldr.c.
Referenced by MmLoadSystemImage().
Definition at line 1919 of file sysldr.c.
Referenced by MiInitializeLoadedModuleList().
Definition at line 50 of file sysldr.c.
Referenced by MmLoadSystemImage().
BOOLEAN MiCallDllUnloadAndUnloadDll | ( | _In_ PLDR_DATA_TABLE_ENTRY | LdrEntry | ) |
Definition at line 496 of file sysldr.c.
Referenced by MiDereferenceImports().
VOID NTAPI MiClearImports | ( | IN PLDR_DATA_TABLE_ENTRY | LdrEntry | ) |
Definition at line 601 of file sysldr.c.
Referenced by MmUnloadSystemImage().
NTSTATUS NTAPI MiDereferenceImports | ( | IN PLOAD_IMPORTS | ImportList | ) |
Definition at line 526 of file sysldr.c.
Referenced by MiDereferenceImports(), MiResolveImageReferences(), and MmUnloadSystemImage().
VOID NTAPI MiEnablePagingOfDriver | ( | IN PLDR_DATA_TABLE_ENTRY | LdrEntry | ) |
Definition at line 2656 of file sysldr.c.
Referenced by MmLoadSystemImage().
Definition at line 1487 of file sysldr.c.
Referenced by MiFindInitializationCode(), and MmZeroPageThread().
Definition at line 1464 of file sysldr.c.
Referenced by MiFindInitializationCode(), and MmZeroPageThread().
BOOLEAN NTAPI MiInitializeLoadedModuleList | ( | IN PLOADER_PARAMETER_BLOCK | LoaderBlock | ) |
Definition at line 2241 of file sysldr.c.
Referenced by MmArmInitSystem().
NTSTATUS NTAPI MiLoadImageSection | ( | _Inout_ PSECTION * | SectionPtr, |
_Out_ PVOID * | ImageBase, | ||
_In_ PUNICODE_STRING | FileName, | ||
_In_ BOOLEAN | SessionLoad, | ||
_In_ PLDR_DATA_TABLE_ENTRY | LdrEntry | ||
) |
Definition at line 77 of file sysldr.c.
Referenced by MmLoadSystemImage().
VOID NTAPI MiLocateKernelSections | ( | IN PLDR_DATA_TABLE_ENTRY | LdrEntry | ) |
Definition at line 2184 of file sysldr.c.
Referenced by MiInitializeLoadedModuleList().
PLDR_DATA_TABLE_ENTRY NTAPI MiLookupDataTableEntry | ( | IN PVOID | Address | ) |
Definition at line 3514 of file sysldr.c.
Referenced by ExAllocatePool(), MmAddVerifierThunks(), and MmPageEntireDriver().
Definition at line 621 of file sysldr.c.
Referenced by MmLoadSystemImage(), and MmUnloadSystemImage().
VOID NTAPI MiReloadBootLoadedDrivers | ( | IN PLOADER_PARAMETER_BLOCK | LoaderBlock | ) |
Definition at line 1730 of file sysldr.c.
Referenced by MmArmInitSystem().
NTSTATUS NTAPI MiResolveImageReferences | ( | IN PVOID | ImageBase, |
IN PUNICODE_STRING | ImageFileDirectory, | ||
IN PUNICODE_STRING NamePrefix | OPTIONAL, | ||
OUT PCHAR * | MissingApi, | ||
OUT PWCHAR * | MissingDriver, | ||
OUT PLOAD_IMPORTS * | LoadImports | ||
) |
Definition at line 1033 of file sysldr.c.
Referenced by LdrProcessDriverModule(), and MmLoadSystemImage().
Definition at line 2597 of file sysldr.c.
Referenced by MiEnablePagingOfDriver(), and MmPageEntireDriver().
VOID NTAPI MiSetSystemCodeProtection | ( | _In_ PMMPTE | FirstPte, |
_In_ PMMPTE | LastPte, | ||
_In_ ULONG | Protection | ||
) |
Definition at line 2441 of file sysldr.c.
Referenced by MiWriteProtectSystemImage().
NTSTATUS NTAPI MiSnapThunk | ( | IN PVOID | DllBase, |
IN PVOID | ImageBase, | ||
IN PIMAGE_THUNK_DATA | Name, | ||
IN PIMAGE_THUNK_DATA | Address, | ||
IN PIMAGE_EXPORT_DIRECTORY | ExportDirectory, | ||
IN ULONG | ExportSize, | ||
IN BOOLEAN | SnapForwarder, | ||
OUT PCHAR * | MissingApi | ||
) |
Definition at line 747 of file sysldr.c.
Referenced by MiResolveImageReferences(), and MiSnapThunk().
VOID NTAPI MiUpdateThunks | ( | IN PLOADER_PARAMETER_BLOCK | LoaderBlock, |
IN PVOID | OldBase, | ||
IN PVOID | NewBase, | ||
IN ULONG | Size | ||
) |
Definition at line 648 of file sysldr.c.
Referenced by MiReloadBootLoadedDrivers().
LOGICAL NTAPI MiUseLargeDriverPage | ( | IN ULONG | NumberOfPtes, |
IN OUT PVOID * | ImageBaseAddress, | ||
IN PUNICODE_STRING | BaseImageName, | ||
IN BOOLEAN | BootDriver | ||
) |
Definition at line 2384 of file sysldr.c.
Referenced by MmLoadSystemImage().
Definition at line 2480 of file sysldr.c.
Referenced by MmInitSystem(), and MmLoadSystemImage().
NTSTATUS NTAPI MmCallDllInitialize | ( | _In_ PLDR_DATA_TABLE_ENTRY | LdrEntry, |
_In_ PLIST_ENTRY | ModuleListHead | ||
) |
Definition at line 432 of file sysldr.c.
Referenced by IopInitializeBootDrivers(), and MiResolveImageReferences().
Definition at line 2330 of file sysldr.c.
Referenced by DisplayBootBitmap(), and MmMakeKernelResourceSectionWritable().
Definition at line 2744 of file sysldr.c.
Referenced by MmLoadSystemImage(), and PsLocateSystemDll().
VOID NTAPI MmFreeDriverInitialization | ( | IN PLDR_DATA_TABLE_ENTRY | LdrEntry | ) |
Definition at line 1672 of file sysldr.c.
Referenced by IopInitializeDriverModule().
PVOID NTAPI MmGetSystemRoutineAddress | ( | IN PUNICODE_STRING | SystemRoutineName | ) |
Definition at line 3601 of file sysldr.c.
Referenced by _Function_class_(), AuxKlibInitialize(), FxInitializeBugCheckDriverInfo(), FxLibraryCommonCommission(), FxLibraryGlobalsCommission(), FxRegisterBugCheckCallback(), FxRegistrySettingsInitialize(), FxUninitializeBugCheckDriverInfo(), FxUnregisterBugCheckCallback(), KmtGetSystemRoutineAddress(), Mx::MxGetSystemRoutineAddress(), ParaNdis_DebugInitialize(), _FX_DRIVER_TRACKER_CACHE_AWARE::Register(), TestPrivateFunctions(), and WdmlibRtlIsNtDdiVersionAvailable().
NTSTATUS NTAPI MmLoadSystemImage | ( | IN PUNICODE_STRING | FileName, |
IN PUNICODE_STRING NamePrefix | OPTIONAL, | ||
IN PUNICODE_STRING LoadedName | OPTIONAL, | ||
IN ULONG | Flags, | ||
OUT PVOID * | ModuleObject, | ||
OUT PVOID * | ImageBaseAddress | ||
) |
Definition at line 2935 of file sysldr.c.
Referenced by IopLoadDriver(), MiResolveImageReferences(), and SSI_DEF().
Definition at line 2361 of file sysldr.c.
Referenced by KeGetBugMessageText().
Definition at line 3554 of file sysldr.c.
Referenced by DriverEntry().
Definition at line 944 of file sysldr.c.
Referenced by IopDeleteDriver(), IopInitializeDriverModule(), LoadSymbolsRoutine(), MiCallDllUnloadAndUnloadDll(), MiResolveImageReferences(), and SSI_DEF().
Definition at line 2720 of file sysldr.c.
Referenced by MmCheckSystemImage().
USHORT NTAPI NameToOrdinal | ( | _In_ PCSTR | ExportName, |
_In_ PVOID | ImageBase, | ||
_In_ ULONG | NumberOfNames, | ||
_In_ PULONG | NameTable, | ||
_In_ PUSHORT | OrdinalTable | ||
) |
Definition at line 222 of file sysldr.c.
Referenced by MiSnapThunk(), and RtlpFindExportedRoutineByName().
Finds the address of a given named exported routine in a loaded image. Note that this function does not support forwarders.
[in] | ImageBase | The base address of the loaded image. |
[in] | ExportName | The name of the export, given as an ANSI NULL-terminated string. |
Definition at line 400 of file sysldr.c.
Referenced by MiCallDllUnloadAndUnloadDll(), MmCallDllInitialize(), and MmGetSystemRoutineAddress().
NTSTATUS NTAPI RtlpFindExportedRoutineByName | ( | _In_ PVOID | ImageBase, |
_In_ PCSTR | ExportName, | ||
_Out_ PVOID * | Function, | ||
_Out_opt_ PBOOLEAN | IsForwarder, | ||
_In_ NTSTATUS | NotFoundStatus | ||
) |
ReactOS-only helper routine for RtlFindExportedRoutineByName(), that provides a finer granularity regarding the nature of the export, and the failure reasons.
[in] | ImageBase | The base address of the loaded image. |
[in] | ExportName | The name of the export, given as an ANSI NULL-terminated string. |
[out] | Function | The address of the named exported routine, or NULL if not found. If the export is a forwarder (see IsForwarder below), this address points to the forwarder name. |
[out] | IsForwarder | An optional pointer to a BOOLEAN variable, that is set to TRUE if the found export is a forwarder, and FALSE otherwise. |
[in] | NotFoundStatus | The status code to return in case the export could not be found (examples: STATUS_ENTRYPOINT_NOT_FOUND, STATUS_PROCEDURE_NOT_FOUND). |
NotFoundStatus
if the export could not be found;Definition at line 308 of file sysldr.c.
Referenced by CODE_SEG(), and RtlFindExportedRoutineByName().
ULONG_PTR ExPoolCodeEnd |
Definition at line 37 of file sysldr.c.
Referenced by MiLocateKernelSections().
ULONG_PTR ExPoolCodeStart |
Definition at line 37 of file sysldr.c.
Referenced by MiLocateKernelSections().
PMMPTE MiKernelResourceEndPte |
Definition at line 36 of file sysldr.c.
Referenced by MiLocateKernelSections(), MmChangeKernelResourceSectionProtection(), and MmMakeKernelResourceSectionWritable().
PMMPTE MiKernelResourceStartPte |
Definition at line 36 of file sysldr.c.
Referenced by MiLocateKernelSections(), MmChangeKernelResourceSectionProtection(), and MmMakeKernelResourceSectionWritable().
Definition at line 34 of file sysldr.c.
Referenced by MiWriteProtectSystemImage().
LIST_ENTRY MmLoadedUserImageList |
Definition at line 22 of file sysldr.c.
Referenced by MiLoadUserSymbols(), MmArmInitSystem(), and QSI_DEF().
ULONG_PTR MmPoolCodeEnd |
Definition at line 37 of file sysldr.c.
Referenced by MiLocateKernelSections().
ULONG_PTR MmPoolCodeStart |
Definition at line 37 of file sysldr.c.
Referenced by MiLocateKernelSections().
ULONG_PTR MmPteCodeEnd |
Definition at line 38 of file sysldr.c.
Referenced by MiLocateKernelSections().
ULONG_PTR MmPteCodeStart |
Definition at line 38 of file sysldr.c.
Referenced by MiLocateKernelSections().
KMUTANT MmSystemLoadLock |
Definition at line 26 of file sysldr.c.
Referenced by MiFindInitializationCode(), MmAddVerifierThunks(), MmArmInitSystem(), MmLoadSystemImage(), and MmUnloadSystemImage().
PFN_NUMBER MmTotalSystemDriverPages |
Definition at line 28 of file sysldr.c.
Referenced by MiSetPagingOfDriver().
LIST_ENTRY PsLoadedModuleList |
Definition at line 21 of file sysldr.c.
Referenced by IopInitializeBuiltinDriver(), KdbpSymFindModule(), KdbSymInit(), KdInitSystem(), KiInitModuleList(), KiPcToFileHeader(), MiBuildImportsForBootDrivers(), MiFindInitializationCode(), MiInitializeLoadedModuleList(), MiLookupDataTableEntry(), MiProcessLoaderEntry(), MiResolveImageReferences(), MiSnapThunk(), MmGetSystemRoutineAddress(), MmInitSystem(), MmLoadSystemImage(), and QSI_DEF().
ERESOURCE PsLoadedModuleResource |
Definition at line 24 of file sysldr.c.
Referenced by MiFindInitializationCode(), MiInitializeLoadedModuleList(), MiLoadUserSymbols(), MiProcessLoaderEntry(), MmGetSystemRoutineAddress(), MmInitSystem(), and QSI_DEF().
KSPIN_LOCK PsLoadedModuleSpinLock |
Definition at line 23 of file sysldr.c.
Referenced by KdbpSymFindModule(), KdbSymInit(), MiInitializeLoadedModuleList(), MiProcessLoaderEntry(), and RtlPcToFileHeader().
ULONG_PTR PsNtosImageBase |
Definition at line 25 of file sysldr.c.
Referenced by KdInitSystem(), and MiInitializeLoadedModuleList().