Exemple #1
0
        private static Int32 SetEa(
            IntPtr FileSystemPtr,
            ref FullContext FullContext,
            IntPtr Ea,
            UInt32 EaLength,
            out FileInfo FileInfo)
        {
            FileSystemBase FileSystem = (FileSystemBase)Api.GetUserContext(FileSystemPtr);

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