public int SetFileSize(object FileNode, object FileDesc0, ulong NewSize, bool SetAllocationSize, out FileInfo pFileInfo) { try { var r = Storage.SetFileSize((IFSEntryPointer)FileDesc0, (long)NewSize); ((IFSEntryPointer)FileDesc0).GetStruct(out pFileInfo); return(HandleResult(r).GetNtStatus()); } catch (Win32Exception ex) { throw WindowsExceptionGenerator.GetIOException(ex); } catch (NTException ex) { throw WindowsExceptionGenerator.GetIOException(ex); } }