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.

72 lines
1.8 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. //
  15. // PROPERTY_RO(AccountExpiration, DATE, 1) Implemented
  16. // PROPERTY_RO(BadLoginAddress, BSTR, 2) NI
  17. // PROPERTY_RO(BadLoginCount, long, 3) NI
  18. // PROPERTY_RO(BadPasswordAttempts, long, 4) Implemented
  19. // PROPERTY_RO(LastLogin, DATE, 5) Implemented
  20. // PROPERTY_RO(LastLogoff, DATE, 6) Implemented
  21. // PROPERTY_RO(LastFailedLogin, DATE, 7) NI
  22. // PROPERTY_RO(PasswordLastChanged, DATE, 8) Implemented
  23. //
  24. //----------------------------------------------------------------------------
  25. #include "NWCOMPAT.hxx"
  26. #pragma hdrstop
  27. // Class CNWCOMPATUser
  28. /* IADsFSUserAccountStatistics methods */
  29. STDMETHODIMP CNWCOMPATUser::get_BadLoginAddress(THIS_ BSTR FAR* retval)
  30. {
  31. GET_PROPERTY_BSTR((IADsUser *)this, BadLoginAddress);
  32. }
  33. STDMETHODIMP CNWCOMPATUser::get_BadLoginCount(THIS_ long FAR* retval)
  34. {
  35. NW_RRETURN_EXP_IF_ERR(E_ADS_PROPERTY_NOT_SUPPORTED);
  36. }
  37. STDMETHODIMP CNWCOMPATUser::get_LastLogin(THIS_ DATE FAR* retval)
  38. {
  39. GET_PROPERTY_DATE((IADsUser *)this, LastLogin);
  40. }
  41. STDMETHODIMP CNWCOMPATUser::get_LastLogoff(THIS_ DATE FAR* retval)
  42. {
  43. NW_RRETURN_EXP_IF_ERR(E_ADS_PROPERTY_NOT_SUPPORTED);
  44. }
  45. STDMETHODIMP CNWCOMPATUser::get_LastFailedLogin(THIS_ DATE FAR* retval)
  46. {
  47. NW_RRETURN_EXP_IF_ERR(E_ADS_PROPERTY_NOT_SUPPORTED);
  48. }
  49. STDMETHODIMP CNWCOMPATUser::get_PasswordLastChanged(THIS_ DATE FAR* retval)
  50. {
  51. NW_RRETURN_EXP_IF_ERR(E_ADS_PROPERTY_NOT_SUPPORTED);
  52. }