ReactOS 0.4.16-dev-2-g02a6913
|
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 2859 of file sysldr.c.
Referenced by LdrpInitSecurityCookie().
PVOID NTAPI LdrpInitSecurityCookie | ( | PLDR_DATA_TABLE_ENTRY | LdrEntry | ) |
Definition at line 2895 of file sysldr.c.
Referenced by MmLoadSystemImage().
Definition at line 1920 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 497 of file sysldr.c.
Referenced by MiDereferenceImports().
VOID NTAPI MiClearImports | ( | IN PLDR_DATA_TABLE_ENTRY | LdrEntry | ) |
Definition at line 602 of file sysldr.c.
Referenced by MmUnloadSystemImage().
NTSTATUS NTAPI MiDereferenceImports | ( | IN PLOAD_IMPORTS | ImportList | ) |
Definition at line 527 of file sysldr.c.
Referenced by MiDereferenceImports(), MiResolveImageReferences(), and MmUnloadSystemImage().
VOID NTAPI MiEnablePagingOfDriver | ( | IN PLDR_DATA_TABLE_ENTRY | LdrEntry | ) |
Definition at line 2657 of file sysldr.c.
Referenced by MmLoadSystemImage().
Definition at line 1488 of file sysldr.c.
Referenced by MiFindInitializationCode(), and MmZeroPageThread().
Definition at line 1465 of file sysldr.c.
Referenced by MiFindInitializationCode(), and MmZeroPageThread().
BOOLEAN NTAPI MiInitializeLoadedModuleList | ( | IN PLOADER_PARAMETER_BLOCK | LoaderBlock | ) |
Definition at line 2242 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 2185 of file sysldr.c.
Referenced by MiInitializeLoadedModuleList().
PLDR_DATA_TABLE_ENTRY NTAPI MiLookupDataTableEntry | ( | IN PVOID | Address | ) |
Definition at line 3517 of file sysldr.c.
Referenced by ExAllocatePool(), MmAddVerifierThunks(), and MmPageEntireDriver().
Definition at line 622 of file sysldr.c.
Referenced by MmLoadSystemImage(), and MmUnloadSystemImage().
VOID NTAPI MiReloadBootLoadedDrivers | ( | IN PLOADER_PARAMETER_BLOCK | LoaderBlock | ) |
Definition at line 1731 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 1034 of file sysldr.c.
Referenced by LdrProcessDriverModule(), and MmLoadSystemImage().
Definition at line 2598 of file sysldr.c.
Referenced by MiEnablePagingOfDriver(), and MmPageEntireDriver().
VOID NTAPI MiSetSystemCodeProtection | ( | _In_ PMMPTE | FirstPte, |
_In_ PMMPTE | LastPte, | ||
_In_ ULONG | Protection | ||
) |
Definition at line 2442 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 748 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 649 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 2385 of file sysldr.c.
Referenced by MmLoadSystemImage().
Definition at line 2481 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 433 of file sysldr.c.
Referenced by IopInitializeBootDrivers(), and MiResolveImageReferences().
Definition at line 2331 of file sysldr.c.
Referenced by DisplayBootBitmap(), and MmMakeKernelResourceSectionWritable().
Definition at line 2745 of file sysldr.c.
Referenced by MmLoadSystemImage(), and PsLocateSystemDll().
VOID NTAPI MmFreeDriverInitialization | ( | IN PLDR_DATA_TABLE_ENTRY | LdrEntry | ) |
Definition at line 1673 of file sysldr.c.
Referenced by IopInitializeDriverModule().
PVOID NTAPI MmGetSystemRoutineAddress | ( | IN PUNICODE_STRING | SystemRoutineName | ) |
Definition at line 3604 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 2938 of file sysldr.c.
Referenced by IopLoadDriver(), MiResolveImageReferences(), and SSI_DEF().
Definition at line 2362 of file sysldr.c.
Referenced by KeGetBugMessageText().
Definition at line 3557 of file sysldr.c.
Referenced by DriverEntry().
Definition at line 945 of file sysldr.c.
Referenced by IopDeleteDriver(), IopInitializeDriverModule(), LoadSymbolsRoutine(), MiCallDllUnloadAndUnloadDll(), MiResolveImageReferences(), and SSI_DEF().
Definition at line 2721 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 223 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 401 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 309 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().