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.

83 lines
2.1 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(BadPasswordAttempts, long, 4) Implemented
  17. // PROPERTY_RO(LastLogin, DATE, 5) Implemented
  18. // PROPERTY_RO(LastLogoff, DATE, 6) Implemented
  19. // PROPERTY_RO(LastFailedLogin, DATE, 7) NI
  20. // PROPERTY_RO(PasswordLastChanged, DATE, 8) Implemented
  21. //
  22. //----------------------------------------------------------------------------
  23. #include "nds.hxx"
  24. #pragma hdrstop
  25. // Class CNDSUser
  26. STDMETHODIMP CNDSUser::get_EmailAddress(THIS_ BSTR FAR* retval)
  27. {
  28. GET_PROPERTY_BSTR((IADsUser *)this, EmailAddress);
  29. }
  30. STDMETHODIMP CNDSUser::put_EmailAddress(THIS_ BSTR bstrEmailAddress)
  31. {
  32. PUT_PROPERTY_BSTR((IADsUser *)this, EmailAddress);
  33. }
  34. STDMETHODIMP CNDSUser::get_HomeDirectory(THIS_ BSTR FAR* retval)
  35. {
  36. GET_PROPERTY_BSTR((IADsUser *)this, HomeDirectory);
  37. }
  38. STDMETHODIMP CNDSUser::put_HomeDirectory(THIS_ BSTR bstrHomeDirectory)
  39. {
  40. PUT_PROPERTY_BSTR((IADsUser *)this, HomeDirectory);
  41. }
  42. STDMETHODIMP CNDSUser::get_Languages(THIS_ VARIANT FAR* retval)
  43. {
  44. GET_PROPERTY_VARIANT((IADsUser *)this, Languages);
  45. }
  46. STDMETHODIMP CNDSUser::put_Languages(THIS_ VARIANT vLanguages)
  47. {
  48. PUT_PROPERTY_VARIANT((IADsUser *)this, Languages);
  49. }
  50. STDMETHODIMP CNDSUser::get_Profile(THIS_ BSTR FAR* retval)
  51. {
  52. GET_PROPERTY_BSTR((IADsUser *)this, Profile);
  53. }
  54. STDMETHODIMP CNDSUser::put_Profile(THIS_ BSTR bstrProfile)
  55. {
  56. PUT_PROPERTY_BSTR((IADsUser *)this, Profile);
  57. }
  58. STDMETHODIMP CNDSUser::get_LoginScript(THIS_ BSTR FAR* retval)
  59. {
  60. GET_PROPERTY_BSTR((IADsUser *)this, LoginScript);
  61. }
  62. STDMETHODIMP CNDSUser::put_LoginScript(THIS_ BSTR bstrLoginScript)
  63. {
  64. PUT_PROPERTY_BSTR((IADsUser *)this, LoginScript);
  65. }