Ejemplo n.º 1
0
 public int LockFileProxy(
     IntPtr rawFileName,
     long rawByteOffset,
     long rawLength,
     ref DOKAN_FILE_INFO rawFileInfo)
 {
     try
     {
         string file = GetFileName(rawFileName);
         return(operations_.LockFile(
                    file, rawByteOffset, rawLength, GetFileInfo(ref rawFileInfo)));
     }
     catch (Exception e)
     {
         Console.Error.WriteLine(e.ToString());
         return(-1);
     }
 }
Ejemplo n.º 2
0
 public int LockFile(string filename, long offset, long length, DokanFileInfo info)
 {
     return(ope_.LockFile(filename, offset, length, info));
 }