|
ReactOS 0.4.17-dev-573-g8315b8c
|

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 2912 of file sysldr.c.
Referenced by LdrpInitSecurityCookie().
| PVOID NTAPI LdrpInitSecurityCookie | ( | PLDR_DATA_TABLE_ENTRY | LdrEntry | ) |
Definition at line 2948 of file sysldr.c.
Referenced by MmLoadSystemImage().
Definition at line 1962 of file sysldr.c.
Referenced by MiInitializeLoadedModuleList().
Definition at line 51 of file sysldr.c.
Referenced by MmLoadSystemImage().
| BOOLEAN MiCallDllUnloadAndUnloadDll | ( | _In_ PLDR_DATA_TABLE_ENTRY | LdrEntry | ) |
Definition at line 528 of file sysldr.c.
Referenced by MiDereferenceImports().
| VOID NTAPI MiClearImports | ( | IN PLDR_DATA_TABLE_ENTRY | LdrEntry | ) |
Definition at line 633 of file sysldr.c.
Referenced by MmUnloadSystemImage().
| NTSTATUS NTAPI MiDereferenceImports | ( | IN PLOAD_IMPORTS | ImportList | ) |
Definition at line 558 of file sysldr.c.
Referenced by MiDereferenceImports(), MiResolveImageReferences(), and MmUnloadSystemImage().
| VOID NTAPI MiEnablePagingOfDriver | ( | IN PLDR_DATA_TABLE_ENTRY | LdrEntry | ) |
Definition at line 2699 of file sysldr.c.
Referenced by MmLoadSystemImage().
Definition at line 1530 of file sysldr.c.
Referenced by MiFindInitializationCode(), and MmZeroPageThread().
Definition at line 1507 of file sysldr.c.
Referenced by MiFindInitializationCode(), and MmZeroPageThread().
| BOOLEAN NTAPI MiInitializeLoadedModuleList | ( | IN PLOADER_PARAMETER_BLOCK | LoaderBlock | ) |
Definition at line 2284 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 78 of file sysldr.c.
Referenced by MmLoadSystemImage().
| VOID NTAPI MiLocateKernelSections | ( | IN PLDR_DATA_TABLE_ENTRY | LdrEntry | ) |
Definition at line 2227 of file sysldr.c.
Referenced by MiInitializeLoadedModuleList().
| PLDR_DATA_TABLE_ENTRY NTAPI MiLookupDataTableEntry | ( | IN PVOID | Address | ) |
Definition at line 3582 of file sysldr.c.
Referenced by ExAllocatePool(), MmAddVerifierThunks(), and MmPageEntireDriver().
Definition at line 653 of file sysldr.c.
Referenced by MmLoadSystemImage(), and MmUnloadSystemImage().
| VOID NTAPI MiReloadBootLoadedDrivers | ( | IN PLOADER_PARAMETER_BLOCK | LoaderBlock | ) |
Definition at line 1773 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 1076 of file sysldr.c.
Referenced by LdrProcessDriverModule(), and MmLoadSystemImage().
Definition at line 2640 of file sysldr.c.
Referenced by MiEnablePagingOfDriver(), and MmPageEntireDriver().
| VOID NTAPI MiSetSystemCodeProtection | ( | _In_ PMMPTE | FirstPte, |
| _In_ PMMPTE | LastPte, | ||
| _In_ ULONG | Protection | ||
| ) |
Definition at line 2484 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 779 of file sysldr.c.
Referenced by MiResolveImageReferences(), and MiSnapThunk().
Undoes the mapping performed by MiLoadImageSection(): frees the pages backing the image, and returns the system PTEs it had reserved.
| [in] | ImageBase | The base address of the image located in the system PTE space, as returned by MiLoadImageSection(). Do not pass the original base addresses of the boot-start drivers here. |
| [in] | ImageSize | The size of the image, in bytes. |
Definition at line 232 of file sysldr.c.
Referenced by MmLoadSystemImage(), and MmUnloadSystemImage().
| VOID NTAPI MiUpdateThunks | ( | IN PLOADER_PARAMETER_BLOCK | LoaderBlock, |
| IN PVOID | OldBase, | ||
| IN PVOID | NewBase, | ||
| IN ULONG | Size | ||
| ) |
Definition at line 680 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 2427 of file sysldr.c.
Referenced by MmLoadSystemImage().
Definition at line 2523 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 464 of file sysldr.c.
Referenced by IopInitializeBootDrivers(), and MiResolveImageReferences().
Definition at line 2373 of file sysldr.c.
Referenced by DisplayBootBitmap(), and MmMakeKernelResourceSectionWritable().
Definition at line 2796 of file sysldr.c.
Referenced by MmLoadSystemImage(), and PsLocateSystemDll().
| VOID NTAPI MmFreeDriverInitialization | ( | IN PLDR_DATA_TABLE_ENTRY | LdrEntry | ) |
Definition at line 1715 of file sysldr.c.
Referenced by IopInitializeDriverModule().
| PVOID NTAPI MmGetSystemRoutineAddress | ( | IN PUNICODE_STRING | SystemRoutineName | ) |
Definition at line 3669 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(), START_TEST(), 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 2991 of file sysldr.c.
Referenced by IopLoadDriver(), MiResolveImageReferences(), and SSI_DEF().
Definition at line 2404 of file sysldr.c.
Referenced by KeGetBugMessageText().
Definition at line 3622 of file sysldr.c.
Referenced by DriverEntry().
Definition at line 976 of file sysldr.c.
Referenced by IopDeleteDriver(), IopInitializeDriverModule(), LoadSymbolsRoutine(), MiCallDllUnloadAndUnloadDll(), MiResolveImageReferences(), and SSI_DEF().
| USHORT NTAPI NameToOrdinal | ( | _In_ PCSTR | ExportName, |
| _In_ PVOID | ImageBase, | ||
| _In_ ULONG | NumberOfNames, | ||
| _In_ PULONG | NameTable, | ||
| _In_ PUSHORT | OrdinalTable | ||
| ) |
Definition at line 254 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 432 of file sysldr.c.
Referenced by init(), 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 340 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 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(), 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().