mirror of
https://github.com/winfsp/winfsp.git
synced 2025-04-22 08:23:05 -05:00
dll: launch: registry: support Recovery setting
This commit is contained in:
parent
924d1f9a3e
commit
0268e51099
@ -291,7 +291,8 @@ typedef struct _FSP_LAUNCH_REG_RECORD
|
|||||||
ULONG JobControl;
|
ULONG JobControl;
|
||||||
ULONG Credentials;
|
ULONG Credentials;
|
||||||
ULONG AuthPackageId;
|
ULONG AuthPackageId;
|
||||||
ULONG Reserved1[5];
|
ULONG Recovery;
|
||||||
|
ULONG Reserved1[4];
|
||||||
UINT8 Buffer[];
|
UINT8 Buffer[];
|
||||||
} FSP_LAUNCH_REG_RECORD;
|
} FSP_LAUNCH_REG_RECORD;
|
||||||
#pragma warning(pop)
|
#pragma warning(pop)
|
||||||
|
@ -274,6 +274,7 @@ FSP_API NTSTATUS FspLaunchRegSetRecord(
|
|||||||
SETFIELDI(JobControl, ~0); /* JobControl default is 1; but we treat as without default */
|
SETFIELDI(JobControl, ~0); /* JobControl default is 1; but we treat as without default */
|
||||||
SETFIELDI(Credentials, 0);
|
SETFIELDI(Credentials, 0);
|
||||||
SETFIELDI(AuthPackageId, 0);
|
SETFIELDI(AuthPackageId, 0);
|
||||||
|
SETFIELDI(Recovery, 0);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@ -426,6 +427,7 @@ FSP_API NTSTATUS FspLaunchRegGetRecord(
|
|||||||
GETFIELDI(JobControl);
|
GETFIELDI(JobControl);
|
||||||
GETFIELDI(Credentials);
|
GETFIELDI(Credentials);
|
||||||
GETFIELDI(AuthPackageId);
|
GETFIELDI(AuthPackageId);
|
||||||
|
GETFIELDI(Recovery);
|
||||||
|
|
||||||
if (0 == Record->Executable)
|
if (0 == Record->Executable)
|
||||||
{
|
{
|
||||||
@ -459,6 +461,7 @@ FSP_API NTSTATUS FspLaunchRegGetRecord(
|
|||||||
Record->JobControl = RecordBuf.JobControl;
|
Record->JobControl = RecordBuf.JobControl;
|
||||||
Record->Credentials = RecordBuf.Credentials;
|
Record->Credentials = RecordBuf.Credentials;
|
||||||
Record->AuthPackageId = RecordBuf.AuthPackageId;
|
Record->AuthPackageId = RecordBuf.AuthPackageId;
|
||||||
|
Record->Recovery = RecordBuf.Recovery;
|
||||||
|
|
||||||
*PRecord = Record;
|
*PRecord = Record;
|
||||||
Result = STATUS_SUCCESS;
|
Result = STATUS_SUCCESS;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user