Example #1
0
        private void CanFileBeDeleted(CallbackFileSystem Sender, CbFsFileInfo fileInfo, CbFsHandleInfo HandleInfo, ref bool CanBeDeleted)
        {
            bool canBeDeleted = false;

            CBFSWinUtil.Invoke("CanFileBeDeleted", () => canBeDeleted = CanFileBeDeleted(fileInfo, HandleInfo));
            CanBeDeleted = canBeDeleted;
        }
Example #2
0
        private void IsDirectoryEmpty(CallbackFileSystem Sender, CbFsFileInfo directoryInfo, string DirectoryName,
                                      ref bool IsEmpty)
        {
            bool isEmpty = false;

            CBFSWinUtil.Invoke("IsDirectoryEmpty", () => isEmpty = IsDirectoryEmpty(directoryInfo, DirectoryName));
            IsEmpty = isEmpty;
        }
Example #3
0
 public void AddMountingPoint(string driveLetter, uint mountingType, CbFsNetworkSymLinkFlags networkSymLinkFlags)
 {
     flags = mountingType + (uint)networkSymLinkFlags;
     if (driveLetter.Length == 1)
     {
         driveLetter = driveLetter.ToUpper() + ":";
     }
     mountingPoint = driveLetter;
     CBFSWinUtil.Invoke("AddMountingPoint", () => CbFs.AddMountingPoint(driveLetter, flags, null));
 }
Example #4
0
 public void DeleteMountingPoint()
 {
     CBFSWinUtil.Invoke("DeleteMountingPoint", () => CbFs.DeleteMountingPoint(mountingPoint, flags, null));
 }
Example #5
0
 public void MountMedia(int apiTimeout)
 {
     CBFSWinUtil.Invoke("MountMedia", () => CbFs.MountMedia(apiTimeout));
 }
Example #6
0
 private void RenameOrMoveFile(CallbackFileSystem Sender, CbFsFileInfo fileInfo, string NewFileName)
 {
     CBFSWinUtil.Invoke("RenameOrMoveFile", () => RenameOrMoveFile(fileInfo, NewFileName));
 }
Example #7
0
 private void DeleteFile(CallbackFileSystem Sender, CbFsFileInfo fileInfo)
 {
     CBFSWinUtil.Invoke("DeleteFile", () => DeleteFile(fileInfo));
 }
Example #8
0
 private void OpenFile(CallbackFileSystem Sender, string FileName, uint DesiredAccess, uint fileAttributes, uint ShareMode,
                       CbFsFileInfo fileInfo, CbFsHandleInfo userContextInfo)
 {
     CBFSWinUtil.Invoke("OpenFile", () => OpenFile(FileName, DesiredAccess, fileAttributes, ShareMode, fileInfo, userContextInfo));
 }
Example #9
0
 private void CloseDirectoryEnumeration(CallbackFileSystem Sender, CbFsFileInfo directoryInfo, CbFsDirectoryEnumerationInfo directoryEnumerationInfo)
 {
     CBFSWinUtil.Invoke("CloseDirectoryEnumeration", () => CloseDirectoryEnumeration(directoryInfo, directoryEnumerationInfo));
 }
Example #10
0
 private void SetEndOfFile(CallbackFileSystem Sender, CbFsFileInfo fileInfo, long EndOfFile)
 {
     CBFSWinUtil.Invoke("SetEndOfFile", () => SetEndOfFile(fileInfo, EndOfFile));
 }
Example #11
0
 private void SetAllocationSize(CallbackFileSystem Sender, CbFsFileInfo fileInfo, long AllocationSize)
 {
     CBFSWinUtil.Invoke("SetAllocationSize", () => SetAllocationSize(fileInfo, AllocationSize));
 }
Example #12
0
 private void FlushFile(CallbackFileSystem sender, CbFsFileInfo fileInfo)
 {
     CBFSWinUtil.Invoke("FlushFile", () => FlushFile(fileInfo));
 }
Example #13
0
 private void CloseFile(CallbackFileSystem Sender, CbFsFileInfo fileInfo, CbFsHandleInfo userContextInfo)
 {
     CBFSWinUtil.Invoke("CloseFile", () => CloseFile(fileInfo, userContextInfo));
 }
Example #14
0
 public void UnmountMedia()
 {
     CBFSWinUtil.Invoke("UnmountMedia", () => CbFs.UnmountMedia());
 }
Example #15
0
 private void SetFileAttributes(CallbackFileSystem Sender, CbFsFileInfo fileInfo, CbFsHandleInfo userContextInfo, DateTime CreationTime,
                                DateTime LastAccessTime, DateTime LastWriteTime, uint FileAttributes)
 {
     CBFSWinUtil.Invoke("SetFileAttributes", () =>
                        SetFileAttributes(fileInfo, userContextInfo, CreationTime, LastAccessTime, LastWriteTime, FileAttributes));
 }
Example #16
0
 public void DeleteStorage(bool forceUnmount)
 {
     CBFSWinUtil.Invoke("DeleteStorage", () => CbFs.DeleteStorage(forceUnmount));
 }
Example #17
0
 private void UnMount(CallbackFileSystem Sender)
 {
     CBFSWinUtil.Invoke("UnMount", UnMount);
 }