public FileObject() { Info = new WinFspNet.FileInfo(); }
public uint GetFileInfo(WinFspFileSystem FileSystem, FileOpenContext Context, WinFspNet.FileInfo fileInfo) { var file = Context.Node.UserContext; if (file is RamFile) { RamFile ramFile = (file as RamFile); fileInfo.AllocationSize = (ulong)ramFile.FileData.Capacity; fileInfo.FileSize = (ulong)ramFile.FileData.Length; } return(NtStatus.STATUS_SUCCESS); }