mirror of
https://github.com/winfsp/winfsp.git
synced 2025-07-26 04:22:50 -05:00
wslinux support: ATOMIC_CREATE_ECP_CONTEXT
This commit is contained in:
@@ -1085,8 +1085,9 @@ namespace Fsp
|
||||
UInt32 FileAttributes,
|
||||
Byte[] SecurityDescriptor,
|
||||
UInt64 AllocationSize,
|
||||
IntPtr Ea,
|
||||
UInt32 EaLength,
|
||||
IntPtr ExtraBuffer,
|
||||
UInt32 ExtraLength,
|
||||
Boolean ExtraBufferIsReparsePoint,
|
||||
out Object FileNode,
|
||||
out Object FileDesc,
|
||||
out FileInfo FileInfo,
|
||||
@@ -1391,6 +1392,16 @@ namespace Fsp
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// Makes a byte array that contains a reparse point.
|
||||
/// </summary>
|
||||
/// <returns>The reparse point byte array.</returns>
|
||||
public static Byte[] MakeReparsePoint(
|
||||
IntPtr Buffer,
|
||||
UInt32 Size)
|
||||
{
|
||||
return Api.MakeReparsePoint(Buffer, (UIntPtr)Size);
|
||||
}
|
||||
/// <summary>
|
||||
/// Gets the reparse tag from reparse data.
|
||||
/// </summary>
|
||||
/// <param name="ReparseData">
|
||||
|
@@ -221,6 +221,11 @@ namespace Fsp
|
||||
get { return 0 != (_VolumeParams.Flags & VolumeParams.AllowOpenInKernelMode); }
|
||||
set { _VolumeParams.Flags |= (value ? VolumeParams.AllowOpenInKernelMode : 0); }
|
||||
}
|
||||
public Boolean WslFeatures
|
||||
{
|
||||
get { return 0 != (_VolumeParams.Flags & VolumeParams.WslFeatures); }
|
||||
set { _VolumeParams.Flags |= (value ? VolumeParams.WslFeatures : 0); }
|
||||
}
|
||||
/// <summary>
|
||||
/// Gets or sets the prefix for a network file system.
|
||||
/// </summary>
|
||||
@@ -472,8 +477,9 @@ namespace Fsp
|
||||
UInt32 FileAttributes,
|
||||
IntPtr SecurityDescriptor,
|
||||
UInt64 AllocationSize,
|
||||
IntPtr Ea,
|
||||
UInt32 EaLength,
|
||||
IntPtr ExtraBuffer,
|
||||
UInt32 ExtraLength,
|
||||
Boolean ExtraBufferIsReparsePoint,
|
||||
ref FullContext FullContext,
|
||||
ref OpenFileInfo OpenFileInfo)
|
||||
{
|
||||
@@ -490,8 +496,9 @@ namespace Fsp
|
||||
FileAttributes,
|
||||
Api.MakeSecurityDescriptor(SecurityDescriptor),
|
||||
AllocationSize,
|
||||
Ea,
|
||||
EaLength,
|
||||
ExtraBuffer,
|
||||
ExtraLength,
|
||||
ExtraBufferIsReparsePoint,
|
||||
out FileNode,
|
||||
out FileDesc,
|
||||
out OpenFileInfo.FileInfo,
|
||||
|
@@ -53,6 +53,7 @@ namespace Fsp.Interop
|
||||
internal const UInt32 UmFileContextIsFullContext = 0x00020000;
|
||||
internal const UInt32 AllowOpenInKernelMode = 0x01000000;
|
||||
internal const UInt32 CasePreservedExtendedAttributes = 0x02000000;
|
||||
internal const UInt32 WslFeatures = 0x04000000;
|
||||
internal const int PrefixSize = 192;
|
||||
internal const int FileSystemNameSize = 16;
|
||||
|
||||
@@ -557,8 +558,9 @@ namespace Fsp.Interop
|
||||
UInt32 FileAttributes,
|
||||
IntPtr SecurityDescriptor,
|
||||
UInt64 AllocationSize,
|
||||
IntPtr Ea,
|
||||
UInt32 EaLength,
|
||||
IntPtr ExtraBuffer,
|
||||
UInt32 ExtraLength,
|
||||
[MarshalAs(UnmanagedType.U1)] Boolean ExtraBufferIsReparsePoint,
|
||||
ref FullContext FullContext,
|
||||
ref OpenFileInfo OpenFileInfo);
|
||||
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
|
||||
|
Reference in New Issue
Block a user