Esempio n. 1
0
    public static void FileRename(string sourcePath, string destPath)
    {
        sourcePath = StorageUtility.ConvertPathSeparators(sourcePath);
        destPath   = StorageUtility.ConvertPathSeparators(destPath);
        Task <bool> task = StorageUtility.FileRenameAsync(sourcePath, destPath);

        task.Wait();
    }
Esempio n. 2
0
 public unsafe static long $Invoke32(long instance, long *args)
 {
     return(GCHandledObjects.ObjectToGCHandle(StorageUtility.FileRenameAsync(Marshal.PtrToStringUni(*(IntPtr *)args), Marshal.PtrToStringUni(*(IntPtr *)(args + 1)))));
 }