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

◆ ValidateFileHandle()

static void System.IO.FileSystemAclExtensions.ValidateFileHandle ( SafeFileHandle handle,
string fullPath )
inlinestaticprivate

Definition at line 210 of file FileSystemAclExtensions.cs.

211 {
212 if (handle.IsInvalid)
213 {
214 int num = Marshal.GetLastWin32Error();
215 if (num == 3 && fullPath.Length == Path.GetPathRoot(fullPath).Length)
216 {
217 num = 5;
218 }
219 throw System.IO.Win32Marshal.GetExceptionForWin32Error(num, fullPath);
220 }
221 }
static Exception GetExceptionForWin32Error(int errorCode, string path="")

References System.IO.Win32Marshal.GetExceptionForWin32Error(), System.Runtime.InteropServices.Marshal.GetLastWin32Error(), System.IO.Path.GetPathRoot(), and System.handle.

Referenced by System.IO.FileSystemAclExtensions.CreateFileHandle().