replacefile (kernel32)
Last changed: anfortas.geo@yahoo.com-216.204.61.86

.
Summary
Replaces one file with another file, taking on that file's entire identity

C# Signature:

[DllImport("kernel32.dll", SetLastError=true, CharSet=CharSet.Auto)]
static extern bool ReplaceFile(string lpReplacedFileName,
   string lpReplacementFileName, string lpBackupFileName,
   ReplaceFileFlags dwReplaceFlags, IntPtr lpExclude, IntPtr lpReserved);

User-Defined Types:

ReplaceFileFlags

Notes:

None.

Tips & Tricks:

Please add some!

Sample Code:

Please add some!

Alternative Managed API:

System.IO.File.Replace

Documentation
ReplaceFile on MSDN