PMMPTE PointerPte;
MMPTE TempPte = ValidKernelPte;
PFN_NUMBER PageFrameNumber;
+ PLIST_ENTRY ListEntry;
+ PLDR_DATA_TABLE_ENTRY DataTableEntry;
/* Initialize the kernel address space */
ASSERT(Phase == 1);
/* Initialize the balance set manager */
MmInitBsmThread();
+ /* Loop the boot loaded images */
+ for (ListEntry = PsLoadedModuleList.Flink;
+ ListEntry != &PsLoadedModuleList;
+ ListEntry = ListEntry->Flink)
+ {
+ /* Get the data table entry */
+ DataTableEntry = CONTAINING_RECORD(ListEntry, LDR_DATA_TABLE_ENTRY, InLoadOrderLinks);
+
+ /* Set up the image protection */
+ MiWriteProtectSystemImage(DataTableEntry->DllBase);
+ }
+
return TRUE;
}