diff options
author | Oliver Schneider <oliver@assarbad.net> | 2011-02-04 00:46:23 +0300 |
---|---|---|
committer | Oliver Schneider <oliver@assarbad.net> | 2011-02-04 00:46:23 +0300 |
commit | 96557bcf615244dd84ab10290a193fca8b406255 (patch) | |
tree | c7d016affd31842bb8a8b4cb5a37654ca976ec9c /windirstat/osspecific.h | |
parent | 876fb8549b5410c23e316b31c616f4c4b088450c (diff) |
- Replaced CGetDiskFreeSpaceApi, since the function is available on Windows 2000 ...
Diffstat (limited to 'windirstat/osspecific.h')
-rw-r--r-- | windirstat/osspecific.h | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/windirstat/osspecific.h b/windirstat/osspecific.h index 1c3cfe5..069e498 100644 --- a/windirstat/osspecific.h +++ b/windirstat/osspecific.h @@ -205,33 +205,4 @@ private: CDynamicApi<TFNGetProcessMemoryInfo> m_GetProcessMemoryInfo; }; -/////////////////////////////////////////////////////////////////////////////// -/// CGetDiskFreeSpaceApi -/// Hides the differences between GetDiskFreeSpaceEx() and GetDiskFreeSpace(). -/// This is important, because GetDiskFreeSpaceEx() is available only from -/// Windows 95 ORS2 onwards - not on the very first edition of Windows 95. -/// -/// -/// @remarks The methods are documented in the .cpp file -/////////////////////////////////////////////////////////////////////////////// -class CGetDiskFreeSpaceApi -{ -public: - CGetDiskFreeSpaceApi(); - ~CGetDiskFreeSpaceApi(); - - bool IsSupported(); - - void GetDiskFreeSpace(LPCTSTR pszRootPath, ULONGLONG& total, ULONGLONG& unused); - -private: - typedef BOOL (WINAPI *TFNGetDiskFreeSpace)(LPCTSTR lpRootPathName, LPDWORD lpSectorsPerCluster, LPDWORD lpBytesPerSector, LPDWORD lpNumberOfFreeClusters, LPDWORD lpTotalNumberOfClusters); - typedef BOOL (WINAPI *TFNGetDiskFreeSpaceEx)(LPCTSTR lpDirectoryName, ULARGE_INTEGER *lpFreeBytesAvailable, ULARGE_INTEGER *lpTotalNumberOfBytes, ULARGE_INTEGER *lpTotalNumberOfFreeBytes); - - HMODULE m_hDll; - - CDynamicApi<TFNGetDiskFreeSpace> m_GetDiskFreeSpace; - CDynamicApi<TFNGetDiskFreeSpaceEx> m_GetDiskFreeSpaceEx; -}; - #endif // __WDS_OSSPECIFIC_H__ |