diff --git a/src/dotnet/FileSystemHost.cs b/src/dotnet/FileSystemHost.cs index 03d0013f..6a0a65dd 100644 --- a/src/dotnet/FileSystemHost.cs +++ b/src/dotnet/FileSystemHost.cs @@ -203,6 +203,11 @@ namespace Fsp get { return 0 != (_VolumeParams.Flags & VolumeParams.FlushAndPurgeOnCleanup); } set { _VolumeParams.Flags |= (value ? VolumeParams.FlushAndPurgeOnCleanup : 0); } } + public Boolean DeviceControl + { + get { return 0 != (_VolumeParams.Flags & VolumeParams.DeviceControl); } + set { _VolumeParams.Flags |= (value ? VolumeParams.DeviceControl : 0); } + } /// /// Gets or sets the prefix for a network file system. /// diff --git a/src/dotnet/Interop.cs b/src/dotnet/Interop.cs index 63523990..90ea664b 100644 --- a/src/dotnet/Interop.cs +++ b/src/dotnet/Interop.cs @@ -48,6 +48,7 @@ namespace Fsp.Interop internal const UInt32 AlwaysUseDoubleBuffering = 0x00001000; internal const UInt32 PassQueryDirectoryFileName = 0x00002000; internal const UInt32 FlushAndPurgeOnCleanup = 0x00004000; + internal const UInt32 DeviceControl = 0x00008000; internal const UInt32 UmFileContextIsUserContext2 = 0x00010000; internal const UInt32 UmFileContextIsFullContext = 0x00020000; internal const int PrefixSize = 192;