コード例 #1
0
 public int Overwrite(object FileNode, object FileDesc0, uint FileAttributes, bool ReplaceFileAttributes, ulong AllocationSize, out FileInfo pFileInfo)
 {
     try {
         var r = Storage.OverWrite((IFSEntryPointer)FileDesc0, (System.IO.FileAttributes)FileAttributes, ReplaceFileAttributes, out var FileInfo);
         FileInfo.GetStruct(out pFileInfo);
         return(HandleResult(r).GetNtStatus());
     } catch (Win32Exception ex) {
         throw WindowsExceptionGenerator.GetIOException(ex);
     } catch (NTException ex) {
         throw WindowsExceptionGenerator.GetIOException(ex);
     }
 }