Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
682 B

  1. class DriveInfo
  2. {
  3. public:
  4. DriveInfo();
  5. void InitDrive(char chDrive);
  6. DWORD Free() { if(m_dwUsed < m_dwStart) return m_dwStart - m_dwUsed; else return 0; }
  7. void UseSpace(DWORD dwAmt, BOOL bCompressed);
  8. void FreeSpace(DWORD dwAmt, BOOL bCompressed);
  9. UINT CompressFactor() { return m_uCompressFactor; }
  10. DWORD MaxUsed() { return m_dwMaxUsed; }
  11. char Drive() { return m_chDrive; }
  12. private:
  13. DWORD m_dwUsed;
  14. DWORD m_dwMaxUsed;
  15. DWORD m_dwStart;
  16. char m_chDrive;
  17. UINT m_uCompressFactor;
  18. };
  19. void AddTempSpace(DWORD dwDownloadSize, DWORD dwExtractSize, DriveInfo drvinfo[]);