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.

60 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 "winnt.hxx"
  26. #pragma hdrstop
  27. // Class CWinNTUser
  28. STDMETHODIMP CWinNTUser::get_BadLoginAddress(THIS_ BSTR FAR* retval)
  29. {
  30. GET_PROPERTY_BSTR((IADsUser *)this, BadLoginAddress);
  31. }
  32. STDMETHODIMP CWinNTUser::get_BadLoginCount(THIS_ long FAR* retval)
  33. {
  34. GET_PROPERTY_LONG((IADsUser *)this, BadLoginCount);
  35. }
  36. STDMETHODIMP CWinNTUser::get_LastLogin(THIS_ DATE FAR* retval)
  37. {
  38. GET_PROPERTY_DATE((IADsUser *)this, LastLogin);
  39. }
  40. STDMETHODIMP CWinNTUser::get_LastLogoff(THIS_ DATE FAR* retval)
  41. {
  42. GET_PROPERTY_DATE((IADsUser *)this, LastLogoff);
  43. }
  44. STDMETHODIMP CWinNTUser::get_LastFailedLogin(THIS_ DATE FAR* retval)
  45. {
  46. GET_PROPERTY_DATE((IADsUser *)this, LastFailedLogin);
  47. }
  48. STDMETHODIMP CWinNTUser::get_PasswordLastChanged(THIS_ DATE FAR* retval)
  49. {
  50. GET_PROPERTY_DATE((IADsUser *)this, PasswordLastChanged);
  51. }