private static Int32 SetFileSize( IntPtr FileSystemPtr, ref FullContext FullContext, UInt64 NewSize, Boolean SetAllocationSize, out FileInfo FileInfo) { FileSystemBase FileSystem = (FileSystemBase)Api.GetUserContext(FileSystemPtr); try { Object FileNode, FileDesc; Api.GetFullContext(ref FullContext, out FileNode, out FileDesc); return(FileSystem.SetFileSize( FileNode, FileDesc, NewSize, SetAllocationSize, out FileInfo)); } catch (Exception ex) { FileInfo = default(FileInfo); return(ExceptionHandler(FileSystem, ex)); } }