Ejemplo n.º 1
0
        private static Int32 GetEa(
            IntPtr FileSystemPtr,
            ref FullContext FullContext,
            IntPtr Ea,
            UInt32 EaLength,
            out UInt32 PBytesTransferred)
        {
            FileSystemBase FileSystem = (FileSystemBase)Api.GetUserContext(FileSystemPtr);

            try
            {
                Object FileNode, FileDesc;
                Api.GetFullContext(ref FullContext, out FileNode, out FileDesc);
                return(FileSystem.GetEa(
                           FileNode,
                           FileDesc,
                           Ea,
                           EaLength,
                           out PBytesTransferred));
            }
            catch (Exception ex)
            {
                PBytesTransferred = default(UInt32);
                return(ExceptionHandler(FileSystem, ex));
            }
        }