private static Int32 Read( IntPtr FileSystemPtr, ref FullContext FullContext, IntPtr Buffer, UInt64 Offset, UInt32 Length, out UInt32 PBytesTransferred) { FileSystemBase FileSystem = (FileSystemBase)Api.GetUserContext(FileSystemPtr); try { Object FileNode, FileDesc; Api.GetFullContext(ref FullContext, out FileNode, out FileDesc); return(FileSystem.Read( FileNode, FileDesc, Buffer, Offset, Length, out PBytesTransferred)); } catch (Exception ex) { PBytesTransferred = default(UInt32); return(ExceptionHandler(FileSystem, ex)); } }