[SERVICES] Improvements to registry control sets

- Add a function that creates a new control set and deletes unused control sets in case of a successful boot.
- Add a stub function that will soon switch to the last known good control set in case of an unsuccessful boot.
This commit is contained in:
Eric Kohl 2019-08-10 14:24:11 +02:00
parent 878db26378
commit 26e1afaffc
3 changed files with 252 additions and 4 deletions

View file

@ -1848,11 +1848,13 @@ RNotifyBootConfigStatus(
SVCCTL_HANDLEW lpMachineName,
DWORD BootAcceptable)
{
DPRINT1("RNotifyBootConfigStatus(%p %lu) called\n", lpMachineName, BootAcceptable);
return ERROR_SUCCESS;
DPRINT("RNotifyBootConfigStatus(%p %lu)\n",
lpMachineName, BootAcceptable);
// UNIMPLEMENTED;
// return ERROR_CALL_NOT_IMPLEMENTED;
if (BootAcceptable)
return ScmAcceptBoot();
return ScmRunLastKnownGood();
}