About
The BrowseVolumes class provides means to iterate through the volumes/drives mounted in the system.
Using the BrowseVolumes class always follows the same concept:
if (browseVolumes == nullptr)
{
{
UInt64 freecaller = 0, total = 0, freespace = 0;
{
const maxon::String memoryFree = maxon::String::MemorySizeToString(freespace);
const maxon::String memoryTotal = maxon::String::MemorySizeToString(total);
const maxon::String memoryFreeForC4D = maxon::String::MemorySizeToString(freecaller);
freeText = ": "_s + memoryFree + " of "_s + memoryTotal + " free, ("_s + memoryFreeForC4D + " available for C4D)"_s;
}
}
}
Allocation/Deallocation
BrowseVolumes objects are created with the usual tools, see Entity Creation and Destruction Manual (Classic).
Use
Browsing
Volume Info
Further Reading