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
1.7 KiB

  1. ///////////////////////////////////////////////////////////////////////////////
  2. /* File: voluser.cpp
  3. Description: The CVolumeUser class maintains quota information about a
  4. particular user on a volume. Objects of this class are used
  5. in the CStatistics class to store information about a user/volume
  6. pair.
  7. CVolumeUser
  8. Revision History:
  9. Date Description Programmer
  10. -------- --------------------------------------------------- ----------
  11. 07/01/97 Initial creation. BrianAu
  12. */
  13. ///////////////////////////////////////////////////////////////////////////////
  14. #include <precomp.hxx>
  15. #pragma hdrstop
  16. #include "voluser.h"
  17. CVolumeUser::CVolumeUser(
  18. VOID
  19. )
  20. {
  21. m_liQuotaThreshold.QuadPart = 0;
  22. m_liQuotaLimit.QuadPart = 0;
  23. m_liQuotaUsed.QuadPart = 0;
  24. }
  25. CVolumeUser::CVolumeUser(
  26. LPCTSTR pszDisplayName,
  27. LPCTSTR pszEmailName,
  28. LARGE_INTEGER liQuotaThreshold,
  29. LARGE_INTEGER liQuotaLimit,
  30. LARGE_INTEGER liQuotaUsed
  31. )
  32. {
  33. SetUserInfo(pszDisplayName,
  34. pszEmailName,
  35. liQuotaThreshold,
  36. liQuotaLimit,
  37. liQuotaUsed);
  38. }
  39. CVolumeUser::~CVolumeUser(
  40. VOID
  41. )
  42. {
  43. }
  44. HRESULT
  45. CVolumeUser::SetUserInfo(
  46. LPCTSTR pszDisplayName,
  47. LPCTSTR pszEmailName,
  48. LARGE_INTEGER liQuotaThreshold,
  49. LARGE_INTEGER liQuotaLimit,
  50. LARGE_INTEGER liQuotaUsed
  51. )
  52. {
  53. m_strDisplayName = pszDisplayName;
  54. m_strEmailName = pszEmailName;
  55. m_liQuotaThreshold = liQuotaThreshold;
  56. m_liQuotaLimit = liQuotaLimit;
  57. m_liQuotaUsed = liQuotaUsed;
  58. return NOERROR;
  59. }