QString str="C:";DWORD FreeBytesAvailable;DWORD TotalNumberOfBytes;DWORD TotalNumberOfFreeBytes;bool Rezalt;Rezalt=GetDiskFreeSpaceEx((LPCWSTR)&str, (PULARGE_INTEGER)&FreeBytesAvailable,(PULARGE_INTEGER)&TotalNumberOfBytes, (PULARGE_INTEGER)&TotalNumberOfFreeBytes);
LPCWSTR=L"C:"
C++ (Qt)LPCWSTR str = L"C:";ULARGE_INTEGER FreeBytesAvailable;ULARGE_INTEGER TotalNumberOfBytes;ULARGE_INTEGER TotalNumberOfFreeBytes; bool Rezalt=GetDiskFreeSpaceEx( str, &FreeBytesAvailable, &TotalNumberOfBytes, &TotalNumberOfFreeBytes ); qint64 bytesAvailable = FreeBytesAvailable.QuadPart; // 64 битное число
C++ (Qt)#include <boost/filesystem.hpp> boost::filesystem::space_info spaces = boost::filesystem::space(L"c:\\");
QString ip_addr;LPCWSTR str= L"\\\\" + ip_addr + L"\\E:";