dll: launch: registry: support Recovery setting

This commit is contained in:
Bill Zissimopoulos 2020-04-16 16:08:55 -07:00
parent 924d1f9a3e
commit 0268e51099
No known key found for this signature in database
GPG Key ID: 3D4F95D52C7B3EA3
2 changed files with 5 additions and 1 deletions

View File

@ -291,7 +291,8 @@ typedef struct _FSP_LAUNCH_REG_RECORD
ULONG JobControl;
ULONG Credentials;
ULONG AuthPackageId;
ULONG Reserved1[5];
ULONG Recovery;
ULONG Reserved1[4];
UINT8 Buffer[];
} FSP_LAUNCH_REG_RECORD;
#pragma warning(pop)

View File

@ -274,6 +274,7 @@ FSP_API NTSTATUS FspLaunchRegSetRecord(
SETFIELDI(JobControl, ~0); /* JobControl default is 1; but we treat as without default */
SETFIELDI(Credentials, 0);
SETFIELDI(AuthPackageId, 0);
SETFIELDI(Recovery, 0);
}
else
{
@ -426,6 +427,7 @@ FSP_API NTSTATUS FspLaunchRegGetRecord(
GETFIELDI(JobControl);
GETFIELDI(Credentials);
GETFIELDI(AuthPackageId);
GETFIELDI(Recovery);
if (0 == Record->Executable)
{
@ -459,6 +461,7 @@ FSP_API NTSTATUS FspLaunchRegGetRecord(
Record->JobControl = RecordBuf.JobControl;
Record->Credentials = RecordBuf.Credentials;
Record->AuthPackageId = RecordBuf.AuthPackageId;
Record->Recovery = RecordBuf.Recovery;
*PRecord = Record;
Result = STATUS_SUCCESS;