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.

234 lines
4.9 KiB

  1. #define COMPUTER_USER 1
  2. #define DOMAIN_USER 2
  3. class CNWCOMPATUser;
  4. class CNWCOMPATUser : INHERIT_TRACKING,
  5. public CCoreADsObject,
  6. public ISupportErrorInfo,
  7. public IADsUser,
  8. public IADsPropertyList
  9. {
  10. public:
  11. /* IUnknown methods */
  12. STDMETHOD(QueryInterface)(THIS_ REFIID riid, LPVOID FAR* ppvObj) ;
  13. DECLARE_STD_REFCOUNTING
  14. DECLARE_IDispatch_METHODS
  15. DECLARE_ISupportErrorInfo_METHODS
  16. DECLARE_IADs_METHODS
  17. DECLARE_IADsUser_METHODS
  18. DECLARE_IADsPropertyList_METHODS
  19. CNWCOMPATUser::CNWCOMPATUser();
  20. CNWCOMPATUser::~CNWCOMPATUser();
  21. static
  22. HRESULT
  23. CNWCOMPATUser::CreateUser(
  24. BSTR Parent,
  25. ULONG ParentType,
  26. BSTR ServerName,
  27. BSTR UserName,
  28. DWORD dwObjectState,
  29. REFIID riid,
  30. void **ppvObj
  31. );
  32. static
  33. HRESULT
  34. CNWCOMPATUser::AllocateUserObject(
  35. CNWCOMPATUser ** ppUser
  36. );
  37. STDMETHOD(GetInfo)(
  38. THIS_ BOOL fExplicit,
  39. DWORD dwPropertyID
  40. ) ;
  41. STDMETHODIMP
  42. CNWCOMPATUser::SetInfo(
  43. THIS_ DWORD dwPropertyID
  44. );
  45. protected:
  46. HRESULT
  47. CNWCOMPATUser::SetBusinessInfo(
  48. NWCONN_HANDLE hConn
  49. );
  50. HRESULT
  51. CNWCOMPATUser::SetAccountRestrictions(
  52. NWCONN_HANDLE hConn
  53. );
  54. HRESULT
  55. CNWCOMPATUser::ExplicitGetInfo(
  56. NWCONN_HANDLE hConn,
  57. BOOL fExplicit
  58. );
  59. HRESULT
  60. CNWCOMPATUser::ImplicitGetInfo(
  61. NWCONN_HANDLE hConn,
  62. DWORD dwPropertyID,
  63. BOOL fExplicit
  64. );
  65. HRESULT
  66. CNWCOMPATUser::GetBusinessInfo(
  67. NWCONN_HANDLE hConn,
  68. DWORD dwPropertyID,
  69. BOOL fExplicit
  70. );
  71. HRESULT
  72. CNWCOMPATUser::GetAccountRestrictions(
  73. NWCONN_HANDLE hConn,
  74. DWORD dwPropertyID,
  75. BOOL fExplicit
  76. );
  77. HRESULT
  78. CNWCOMPATUser::GetAccountStatistics(
  79. NWCONN_HANDLE hConn,
  80. DWORD dwPropertyID,
  81. BOOL fExplicit
  82. );
  83. HRESULT
  84. CNWCOMPATUser::GetProperty_FullName(
  85. NWCONN_HANDLE hConn,
  86. BOOL fExplicit
  87. );
  88. HRESULT
  89. CNWCOMPATUser::GetProperty_AccountDisabled(
  90. NWCONN_HANDLE hConn,
  91. LC_STRUCTURE LoginCtrlStruct,
  92. BOOL fExplicit
  93. );
  94. HRESULT
  95. CNWCOMPATUser::GetProperty_AccountExpirationDate(
  96. NWCONN_HANDLE hConn,
  97. LC_STRUCTURE LoginCtrlStruct,
  98. BOOL fExplicit
  99. );
  100. HRESULT
  101. CNWCOMPATUser::GetProperty_CanAccountExpire(
  102. NWCONN_HANDLE hConn,
  103. LC_STRUCTURE LoginCtrlStruct,
  104. BOOL fExplicit
  105. );
  106. HRESULT
  107. CNWCOMPATUser::GetProperty_GraceLoginsAllowed(
  108. NWCONN_HANDLE hConn,
  109. LC_STRUCTURE LoginCtrlStruct,
  110. BOOL fExplicit
  111. );
  112. HRESULT
  113. CNWCOMPATUser::GetProperty_GraceLoginsRemaining(
  114. NWCONN_HANDLE hConn,
  115. LC_STRUCTURE LoginCtrlStruct,
  116. BOOL fExplicit
  117. );
  118. HRESULT
  119. CNWCOMPATUser::GetProperty_IsAccountLocked(
  120. NWCONN_HANDLE hConn,
  121. LC_STRUCTURE LoginCtrlStruct,
  122. BOOL fExplicit
  123. );
  124. HRESULT
  125. CNWCOMPATUser::GetProperty_LoginHours(
  126. NWCONN_HANDLE hConn,
  127. LC_STRUCTURE LoginCtrlStruct,
  128. BOOL fExplicit
  129. );
  130. HRESULT
  131. CNWCOMPATUser::GetProperty_IsAdmin(
  132. NWCONN_HANDLE hConn,
  133. BOOL fExplicit
  134. );
  135. HRESULT
  136. CNWCOMPATUser::GetProperty_MaxLogins(
  137. NWCONN_HANDLE hConn,
  138. LC_STRUCTURE LoginCtrlStruct,
  139. BOOL fExplicit
  140. );
  141. HRESULT
  142. CNWCOMPATUser::GetProperty_CanPasswordExpire(
  143. NWCONN_HANDLE hConn,
  144. LC_STRUCTURE LoginCtrlStruct,
  145. BOOL fExplicit
  146. );
  147. HRESULT
  148. CNWCOMPATUser::GetProperty_PasswordExpirationDate(
  149. NWCONN_HANDLE hConn,
  150. LC_STRUCTURE LoginCtrlStruct,
  151. BOOL fExplicit
  152. );
  153. HRESULT
  154. CNWCOMPATUser::GetProperty_PasswordMinimumLength(
  155. NWCONN_HANDLE hConn,
  156. LC_STRUCTURE LoginCtrlStruct,
  157. BOOL fExplicit
  158. );
  159. HRESULT
  160. CNWCOMPATUser::GetProperty_PasswordRequired(
  161. NWCONN_HANDLE hConn,
  162. LC_STRUCTURE LoginCtrlStruct,
  163. BOOL fExplicit
  164. );
  165. HRESULT
  166. CNWCOMPATUser::GetProperty_RequireUniquePassword(
  167. NWCONN_HANDLE hConn,
  168. LC_STRUCTURE LoginCtrlStruct,
  169. BOOL fExplicit
  170. );
  171. HRESULT
  172. CNWCOMPATUser::GetProperty_BadLoginAddress(
  173. NWCONN_HANDLE hConn,
  174. LC_STRUCTURE LoginCtrlStruct,
  175. BOOL fExplicit
  176. );
  177. HRESULT
  178. CNWCOMPATUser::GetProperty_LastLogin(
  179. NWCONN_HANDLE hConn,
  180. LC_STRUCTURE LoginCtrlStruct,
  181. BOOL fExplicit
  182. );
  183. BSTR _ServerName;
  184. BSTR _szHostServerName;
  185. ULONG _ParentType;
  186. CAggregatorDispMgr FAR * _pDispMgr;
  187. CADsExtMgr FAR * _pExtMgr;
  188. CPropertyCache FAR * _pPropertyCache;
  189. };