Merge pull request #216 from VidaID/cpp-flushpurge

Make FlushAndPurgeOnCleanup accessible in C++
This commit is contained in:
Bill Zissimopoulos 2019-02-25 14:07:48 -08:00 committed by GitHub
commit c2553e3451
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 10 additions and 0 deletions

View File

@ -56,6 +56,7 @@ CONTRIBUTOR LIST
|===
|Ben Rubson |ben.rubson at gmail.com
|Bill Zissimopoulos |billziss at navimatics.com
|Colin Atkinson (Atakama, https://atakama.com) |colin at atakama.com
|Francois Karam (KS2, http://www.ks2.fr) |francois.karam at ks2.fr
|Fritz Elfert |fritz-github at fritz-elfert.de
|John Oberschelp |john at oberschelp.net

View File

@ -612,6 +612,14 @@ public:
{
_VolumeParams.PassQueryDirectoryPattern = !!PassQueryDirectoryPattern;
}
BOOLEAN FlushAndPurgeOnCleanup()
{
return _VolumeParams.FlushAndPurgeOnCleanup;
}
VOID SetFlushAndPurgeOnCleanup(BOOLEAN FlushAndPurgeOnCleanup)
{
_VolumeParams.FlushAndPurgeOnCleanup = !!FlushAndPurgeOnCleanup;
}
PWSTR Prefix()
{
return _VolumeParams.Prefix;

View File

@ -268,6 +268,7 @@ NTSTATUS Ptfs::Init(PVOID Host0)
Host->SetPassQueryDirectoryPattern(TRUE);
Host->SetVolumeCreationTime(_CreationTime);
Host->SetVolumeSerialNumber(0);
Host->SetFlushAndPurgeOnCleanup(TRUE);
return STATUS_SUCCESS;
}