Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ ReplaceFile()

static bool Interop.Kernel32.ReplaceFile ( string replacedFileName,
string replacementFileName,
string backupFileName,
int dwReplaceFlags,
IntPtr lpExclude,
IntPtr lpReserved )
inlinestaticpackage

Definition at line 1018 of file Interop.cs.

1019 {
1020 replacedFileName = PathInternal.EnsureExtendedPrefixIfNeeded(replacedFileName);
1021 replacementFileName = PathInternal.EnsureExtendedPrefixIfNeeded(replacementFileName);
1022 backupFileName = PathInternal.EnsureExtendedPrefixIfNeeded(backupFileName);
1023 return ReplaceFilePrivate(replacedFileName, replacementFileName, backupFileName, dwReplaceFlags, lpExclude, lpReserved);
1024 }
static bool ReplaceFilePrivate(string replacedFileName, string replacementFileName, string backupFileName, int dwReplaceFlags, IntPtr lpExclude, IntPtr lpReserved)
static string EnsureExtendedPrefixIfNeeded(string path)

References System.IO.PathInternal.EnsureExtendedPrefixIfNeeded(), and Interop.Kernel32.ReplaceFilePrivate().

Referenced by System.IO.FileSystem.ReplaceFile().