コード例 #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();
    }
コード例 #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)))));
 }