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.

57 lines
1.6 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. //
  12. //
  13. // PROPERTY_RO(AccountExpiration, DATE, 1) Implemented
  14. // PROPERTY_RO(BadLoginAddress, BSTR, 2) NI
  15. // PROPERTY_RO(BadLoginCount, long, 3) NI
  16. // PROPERTY_RO(LastLogin, DATE, 5) Implemented
  17. // PROPERTY_RO(LastLogoff, DATE, 6) Implemented
  18. // PROPERTY_RO(LastFailedLogin, DATE, 7) NI
  19. // PROPERTY_RO(PasswordLastChanged, DATE, 8) Implemented
  20. //
  21. //----------------------------------------------------------------------------
  22. #include "ldap.hxx"
  23. #pragma hdrstop
  24. // Class CLDAPUser
  25. STDMETHODIMP CLDAPUser::get_BadLoginAddress(THIS_ BSTR FAR* retval)
  26. {
  27. RRETURN(E_ADS_PROPERTY_NOT_SUPPORTED);
  28. }
  29. STDMETHODIMP CLDAPUser::get_BadLoginCount(THIS_ long FAR* retval)
  30. {
  31. GET_PROPERTY_LONG((IADsUser *)this, BadLoginCount);
  32. }
  33. STDMETHODIMP CLDAPUser::get_LastLogin(THIS_ DATE FAR* retval)
  34. {
  35. GET_PROPERTY_FILETIME((IADsUser *)this, LastLogin);
  36. }
  37. STDMETHODIMP CLDAPUser::get_LastLogoff(THIS_ DATE FAR* retval)
  38. {
  39. GET_PROPERTY_FILETIME((IADsUser *)this, LastLogoff);
  40. }
  41. STDMETHODIMP CLDAPUser::get_LastFailedLogin(THIS_ DATE FAR* retval)
  42. {
  43. GET_PROPERTY_FILETIME((IADsUser *)this, LastFailedLogin);
  44. }
  45. STDMETHODIMP CLDAPUser::get_PasswordLastChanged(THIS_ DATE FAR* retval)
  46. {
  47. GET_PROPERTY_FILETIME((IADsUser *)this, PasswordLastChanged);
  48. }