Exemple #1
0
        private static Int32 Overwrite(
            IntPtr FileSystemPtr,
            ref FullContext FullContext,
            UInt32 FileAttributes,
            Boolean ReplaceFileAttributes,
            UInt64 AllocationSize,
            IntPtr Ea,
            UInt32 EaLength,
            out FileInfo FileInfo)
        {
            FileSystemBase FileSystem = (FileSystemBase)Api.GetUserContext(FileSystemPtr);

            try
            {
                Object FileNode, FileDesc;
                Api.GetFullContext(ref FullContext, out FileNode, out FileDesc);
                return(FileSystem.OverwriteEx(
                           FileNode,
                           FileDesc,
                           FileAttributes,
                           ReplaceFileAttributes,
                           AllocationSize,
                           Ea,
                           EaLength,
                           out FileInfo));
            }
            catch (Exception ex)
            {
                FileInfo = default(FileInfo);
                return(ExceptionHandler(FileSystem, ex));
            }
        }