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(); }
public unsafe static long $Invoke32(long instance, long *args) { return(GCHandledObjects.ObjectToGCHandle(StorageUtility.FileRenameAsync(Marshal.PtrToStringUni(*(IntPtr *)args), Marshal.PtrToStringUni(*(IntPtr *)(args + 1))))); }