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.

116 lines
3.3 KiB

  1. //---------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1992 - 1995
  5. //
  6. // File: cdompwd.cxx
  7. //
  8. // Contents: Domain Password PropertySet
  9. //
  10. // History: 11-1-95 krishnag Created.
  11. //
  12. // PROPERTY_RW(MinPasswordLength, long, 1) I
  13. // PROPERTY_RW(MinPasswordAge, long, 2) I
  14. // PROPERTY_RW(MaxPasswordAge, long, 3) I
  15. // PROPERTY_RW(MaxBadPasswordsAllowed, long, 4) I
  16. // PROPERTY_RW(PasswordHistoryLength, long, 5) I
  17. // PROPERTY_RW(PasswordAttributes, long, 6) NI
  18. // PROPERTY_RW(AutoUnlockInterval, long, 7) NI
  19. // PROPERTY_RW(LockoutObservationInterval, long, 8) NI
  20. //----------------------------------------------------------------------------
  21. #include "winnt.hxx"
  22. #pragma hdrstop
  23. // Class CWinNTDomain
  24. /* IADsDomain methods */
  25. STDMETHODIMP
  26. CWinNTDomain::get_MinPasswordLength(THIS_ long FAR* retval)
  27. {
  28. GET_PROPERTY_LONG((IADsDomain *)this, MinPasswordLength);
  29. }
  30. STDMETHODIMP
  31. CWinNTDomain::put_MinPasswordLength(THIS_ long lMinPasswordLength)
  32. {
  33. PUT_PROPERTY_LONG((IADsDomain *)this, MinPasswordLength);
  34. }
  35. STDMETHODIMP
  36. CWinNTDomain::get_MinPasswordAge(THIS_ long FAR* retval)
  37. {
  38. GET_PROPERTY_LONG((IADsDomain *)this, MinPasswordAge);
  39. }
  40. STDMETHODIMP CWinNTDomain::put_MinPasswordAge(THIS_ long lMinPasswordAge)
  41. {
  42. PUT_PROPERTY_LONG((IADsDomain *)this, MinPasswordAge);
  43. }
  44. STDMETHODIMP CWinNTDomain::get_MaxPasswordAge(THIS_ long FAR* retval)
  45. {
  46. GET_PROPERTY_LONG((IADsDomain *)this, MaxPasswordAge);
  47. }
  48. STDMETHODIMP CWinNTDomain::put_MaxPasswordAge(THIS_ long lMaxPasswordAge)
  49. {
  50. PUT_PROPERTY_LONG((IADsDomain *)this, MaxPasswordAge);
  51. }
  52. STDMETHODIMP CWinNTDomain::get_MaxBadPasswordsAllowed(THIS_ long FAR* retval)
  53. {
  54. GET_PROPERTY_LONG((IADsDomain *)this, MaxBadPasswordsAllowed);
  55. }
  56. STDMETHODIMP CWinNTDomain::put_MaxBadPasswordsAllowed(THIS_ long lMaxBadPasswordsAllowed)
  57. {
  58. PUT_PROPERTY_LONG((IADsDomain *)this, MaxBadPasswordsAllowed);
  59. }
  60. STDMETHODIMP CWinNTDomain::get_PasswordHistoryLength(THIS_ long FAR* retval)
  61. {
  62. GET_PROPERTY_LONG((IADsDomain *)this, PasswordHistoryLength);
  63. }
  64. STDMETHODIMP CWinNTDomain::put_PasswordHistoryLength(THIS_ long lPasswordHistoryLength)
  65. {
  66. PUT_PROPERTY_LONG((IADsDomain *)this, PasswordHistoryLength);
  67. }
  68. STDMETHODIMP CWinNTDomain::get_PasswordAttributes(THIS_ long FAR* retval)
  69. {
  70. GET_PROPERTY_LONG((IADsDomain *)this, PasswordAttributes);
  71. }
  72. STDMETHODIMP CWinNTDomain::put_PasswordAttributes(THIS_ long lPasswordAttributes)
  73. {
  74. PUT_PROPERTY_LONG((IADsDomain *)this, PasswordAttributes);
  75. }
  76. STDMETHODIMP CWinNTDomain::get_AutoUnlockInterval(THIS_ long FAR* retval)
  77. {
  78. GET_PROPERTY_LONG((IADsDomain *)this, AutoUnlockInterval);
  79. }
  80. STDMETHODIMP CWinNTDomain::put_AutoUnlockInterval(THIS_ long lAutoUnlockInterval)
  81. {
  82. PUT_PROPERTY_LONG((IADsDomain *)this, AutoUnlockInterval);
  83. }
  84. STDMETHODIMP CWinNTDomain::get_LockoutObservationInterval(THIS_ long FAR* retval)
  85. {
  86. GET_PROPERTY_LONG((IADsDomain *)this, LockoutObservationInterval);
  87. }
  88. STDMETHODIMP CWinNTDomain::put_LockoutObservationInterval(THIS_ long lLockoutObservationInterval)
  89. {
  90. PUT_PROPERTY_LONG((IADsDomain *)this, LockoutObservationInterval);
  91. }