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

◆ CopyFile()

static int Interop.Kernel32.CopyFile ( string src,
string dst,
bool failIfExists )
inlinestaticpackage

Definition at line 702 of file Interop.cs.

703 {
704 int flags = (failIfExists ? 1 : 0);
705 int cancel = 0;
706 if (!CopyFileEx(src, dst, IntPtr.Zero, IntPtr.Zero, ref cancel, flags))
707 {
708 return Marshal.GetLastWin32Error();
709 }
710 return 0;
711 }
static bool CopyFileEx(string src, string dst, IntPtr progressRoutine, IntPtr progressData, ref int cancel, int flags)
Definition Interop.cs:716
static readonly IntPtr Zero
Definition IntPtr.cs:18

References Interop.Kernel32.CopyFileEx(), System.Runtime.InteropServices.Marshal.GetLastWin32Error(), and System.IntPtr.Zero.

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