Terraria
v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
◆
AvailableFreeSpace
long System.IO.DriveInfo.AvailableFreeSpace
get
Definition at line
36
of file
DriveInfo.cs
.
37
{
38
get
39
{
40
uint
lpOldMode
;
41
bool
flag = global::Interop.Kernel32.SetThreadErrorMode(1
u
,
out
lpOldMode
);
42
try
43
{
44
if
(!global::Interop.Kernel32.GetDiskFreeSpaceEx(
Name
,
out
var
freeBytesForUser
,
out
var
_
,
out
var
_
))
45
{
46
throw
Error
.GetExceptionForLastWin32DriveError(
Name
);
47
}
48
return
freeBytesForUser
;
49
}
50
finally
51
{
52
if
(flag)
53
{
54
global::Interop.Kernel32.SetThreadErrorMode(
lpOldMode
,
out
var
_
);
55
}
56
}
57
}
58
}
System.IO.DriveInfo.Name
string Name
Definition
DriveInfo.cs:12
System.Runtime.InteropServices.UnmanagedType.Error
@ Error
System.Runtime.Serialization.CollectionKind.Dictionary
@ Dictionary
System
IO
DriveInfo
Generated by
1.10.0