[NTOS:CM] Allow CmSelfHeal to be configured via registry.

This is controlled with a REG_DWORD value named
`SelfHealingEnabled` inside the registry key
`HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Configuration Manager` .

The `CmSelfHeal` variable is used to retrieve the data,
hence it needs to be a ULONG.
This commit is contained in:
Hermès Bélusca-Maïto 2024-08-10 17:20:44 +02:00
parent a43bfe2916
commit f42c81e4ed
No known key found for this signature in database
GPG key ID: 3B2539C65E7B93D0
2 changed files with 10 additions and 3 deletions

View file

@ -60,7 +60,7 @@ BOOLEAN CmpShareSystemHives;
BOOLEAN CmpMiniNTBoot;
ULONG CmpBootType;
BOOLEAN CmSelfHeal = TRUE;
ULONG CmSelfHeal = TRUE;
BOOLEAN CmpSelfHeal = TRUE;
USHORT CmpUnknownBusCount;
@ -666,6 +666,13 @@ DATA_SEG("INITDATA") CM_SYSTEM_CONTROL_VECTOR CmControlVector[] =
&DummyData,
&DummyData
},
{
L"Session Manager\\Configuration Manager",
L"SelfHealingEnabled",
&CmSelfHeal,
NULL,
NULL
},
{
L"Session Manager",
L"ForceNpxEmulation",

View file

@ -1452,9 +1452,9 @@ extern HIVE_LIST_ENTRY CmpMachineHiveList[];
extern UNICODE_STRING CmSymbolicLinkValueName;
extern UNICODE_STRING CmpSystemStartOptions;
extern UNICODE_STRING CmpLoadOptions;
extern BOOLEAN CmSelfHeal;
extern BOOLEAN CmpSelfHeal;
extern ULONG CmpBootType;
extern ULONG CmSelfHeal;
extern BOOLEAN CmpSelfHeal;
extern HANDLE CmpRegistryRootHandle;
extern BOOLEAN ExpInTextModeSetup;
extern BOOLEAN InitIsWinPEMode;