예제 #1
0
 public FileObject()
 {
     Info = new WinFspNet.FileInfo();
 }
예제 #2
0
        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);
        }