Exemplo n.º 1
0
        private static Int32 SetBasicInfo(
            IntPtr FileSystemPtr,
            ref FullContext FullContext,
            UInt32 FileAttributes,
            UInt64 CreationTime,
            UInt64 LastAccessTime,
            UInt64 LastWriteTime,
            UInt64 ChangeTime,
            out FileInfo FileInfo)
        {
            FileSystemBase FileSystem = (FileSystemBase)Api.GetUserContext(FileSystemPtr);

            try
            {
                Object FileNode, FileDesc;
                Api.GetFullContext(ref FullContext, out FileNode, out FileDesc);
                return(FileSystem.SetBasicInfo(
                           FileNode,
                           FileDesc,
                           FileAttributes,
                           CreationTime,
                           LastAccessTime,
                           LastWriteTime,
                           ChangeTime,
                           out FileInfo));
            }
            catch (Exception ex)
            {
                FileInfo = default(FileInfo);
                return(ExceptionHandler(FileSystem, ex));
            }
        }