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.

59 lines
1.7 KiB

  1. //---------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1992 - 1995
  5. //
  6. // File: cuas.cxx
  7. //
  8. // Contents: User Object Account Statistics FunctionalSet
  9. //
  10. // History: 11-1-95 krishnag Created.
  11. // 8-5-96 ramv Modified to be consistent with spec
  12. //
  13. //
  14. // PROPERTY_RO(AccountExpiration, DATE, 1) Implemented
  15. // PROPERTY_RO(BadLoginAddress, BSTR, 2) NI
  16. // PROPERTY_RO(BadLoginCount, long, 3) NI
  17. // PROPERTY_RO(BadPasswordAttempts, long, 4) Implemented
  18. // PROPERTY_RO(LastLogin, DATE, 5) Implemented
  19. // PROPERTY_RO(LastLogoff, DATE, 6) Implemented
  20. // PROPERTY_RO(LastFailedLogin, DATE, 7) NI
  21. // PROPERTY_RO(PasswordLastChanged, DATE, 8) Implemented
  22. //
  23. //----------------------------------------------------------------------------
  24. #include "nds.hxx"
  25. #pragma hdrstop
  26. // Class CNDSUser
  27. STDMETHODIMP CNDSUser::get_BadLoginAddress(THIS_ BSTR FAR* retval)
  28. {
  29. GET_PROPERTY_BSTR((IADsUser *)this, BadLoginAddress);
  30. }
  31. STDMETHODIMP CNDSUser::get_BadLoginCount(THIS_ long FAR* retval)
  32. {
  33. GET_PROPERTY_LONG((IADsUser *)this, BadLoginCount);
  34. }
  35. STDMETHODIMP CNDSUser::get_LastLogin(THIS_ DATE FAR* retval)
  36. {
  37. GET_PROPERTY_DATE((IADsUser *)this, LastLogin);
  38. }
  39. STDMETHODIMP CNDSUser::get_LastLogoff(THIS_ DATE FAR* retval)
  40. {
  41. GET_PROPERTY_DATE((IADsUser *)this, LastLogoff);
  42. }
  43. STDMETHODIMP CNDSUser::get_LastFailedLogin(THIS_ DATE FAR* retval)
  44. {
  45. GET_PROPERTY_DATE((IADsUser *)this, LastFailedLogin);
  46. }
  47. STDMETHODIMP CNDSUser::get_PasswordLastChanged(THIS_ DATE FAR* retval)
  48. {
  49. GET_PROPERTY_DATE((IADsUser *)this, PasswordLastChanged);
  50. }