Source code of Windows XP (NT5)
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.

76 lines
2.3 KiB

  1. #ifndef __VOLUSER_H
  2. #define __VOLUSER_H
  3. ///////////////////////////////////////////////////////////////////////////////
  4. /* File: voluser.h
  5. Description: The CVolumeUser class maintains quota information about a
  6. particular user on a volume. Objects of this class are used
  7. in the CStatistics class to store information about a user/volume
  8. pair.
  9. CVolumeUser
  10. Revision History:
  11. Date Description Programmer
  12. -------- --------------------------------------------------- ----------
  13. 07/01/97 Initial creation. BrianAu
  14. */
  15. ///////////////////////////////////////////////////////////////////////////////
  16. #ifndef _WINDOWS_
  17. # include <windows.h>
  18. #endif
  19. class CVolumeUser
  20. {
  21. public:
  22. CVolumeUser(VOID);
  23. CVolumeUser(
  24. LPCTSTR pszDisplayName,
  25. LPCTSTR pszEmailName,
  26. LARGE_INTEGER liQuotaThreshold,
  27. LARGE_INTEGER liQuotaLimit,
  28. LARGE_INTEGER liQuotaUsed);
  29. ~CVolumeUser(VOID);
  30. HRESULT SetUserInfo(
  31. LPCTSTR pszDisplayName,
  32. LPCTSTR pszEmailName,
  33. LARGE_INTEGER liQuotaThreshold,
  34. LARGE_INTEGER liQuotaLimit,
  35. LARGE_INTEGER liQuotaUsed);
  36. VOID GetDisplayName(CString& strOut) const
  37. { strOut = m_strDisplayName; }
  38. LPCTSTR GetDisplayName(VOID) const
  39. { return (LPCTSTR)m_strDisplayName; }
  40. VOID GetEmailName(CString& strOut) const
  41. { strOut = m_strEmailName; }
  42. LPCTSTR GetEmailName(VOID) const
  43. { return (LPCTSTR)m_strEmailName; }
  44. LARGE_INTEGER GetQuotaThreshold(VOID) const
  45. { return m_liQuotaThreshold; }
  46. LARGE_INTEGER GetQuotaLimit(VOID) const
  47. { return m_liQuotaLimit; }
  48. LARGE_INTEGER GetQuotaUsed(VOID) const
  49. { return m_liQuotaUsed; }
  50. private:
  51. CString m_strDisplayName; // User's name for display
  52. CString m_strEmailName; // User's name for sending email.
  53. LARGE_INTEGER m_liQuotaThreshold; // User's quota threshold on vol
  54. LARGE_INTEGER m_liQuotaLimit; // User's quota limi on vol.
  55. LARGE_INTEGER m_liQuotaUsed; // Quota used on vol by user.
  56. };
  57. #endif //__VOLUSER_H