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

◆ TotalSize

long System.IO.DriveInfo.TotalSize
get

Definition at line 84 of file DriveInfo.cs.

85 {
86 get
87 {
88 global::Interop.Kernel32.SetThreadErrorMode(1u, out var lpOldMode);
89 try
90 {
91 if (!global::Interop.Kernel32.GetDiskFreeSpaceEx(Name, out var _, out var totalBytes, out var _))
92 {
93 throw Error.GetExceptionForLastWin32DriveError(Name);
94 }
95 return totalBytes;
96 }
97 finally
98 {
99 global::Interop.Kernel32.SetThreadErrorMode(lpOldMode, out var _);
100 }
101 }
102 }