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.

326 lines
7.4 KiB

  1. //---------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1992 - 1995
  5. //
  6. // File: cubi.cxx
  7. //
  8. // Contents:
  9. //
  10. // History: 11-1-95 krishnag Created.
  11. // 8-5-96 ramv Modified to be consistent with spec
  12. //
  13. //
  14. // PROPERTY_RW(Address, VARIANT, 1) NI
  15. // PROPERTY_RW(Department, BSTR, 3) NI
  16. // PROPERTY_RW(Division, BSTR, 5) NI
  17. // PROPERTY_RW(EmployeeID, BSTR, 6) NI
  18. // PROPERTY_RW(FirstName, BSTR, 8) Implemented
  19. // PROPERTY_RW(FullName, BSTR, 9) NI
  20. // PROPERTY_RW(Initials, BSTR, 10) NI
  21. // PROPERTY_RW(LastName, BSTR, 11) NI
  22. // PROPERTY_RW(Manager, BSTR, 12) NI
  23. // PROPERTY_RW(NickName, BSTR, 13) NI
  24. // PROPERTY_RW(OfficeLocation, BSTR, 14) NI
  25. // PROPERTY_RW(Picture, VARIANT, 15) NI
  26. // PROPERTY_RW(TelephoneNumber, BSTR, 18) NI
  27. // PROPERTY_RW(Title, BSTR, 19)
  28. //
  29. //----------------------------------------------------------------------------
  30. #include "NWCOMPAT.hxx"
  31. #pragma hdrstop
  32. // Class CNWCOMPATUser
  33. /* IADsFSUserBusinessInformation methods */
  34. STDMETHODIMP
  35. CNWCOMPATUser::get_Department(THIS_ BSTR FAR* retval)
  36. {
  37. NW_RRETURN_EXP_IF_ERR(E_ADS_PROPERTY_NOT_SUPPORTED);
  38. }
  39. STDMETHODIMP
  40. CNWCOMPATUser::put_Department(THIS_ BSTR bstrDepartment)
  41. {
  42. NW_RRETURN_EXP_IF_ERR(E_ADS_PROPERTY_NOT_SUPPORTED);
  43. }
  44. STDMETHODIMP
  45. CNWCOMPATUser::get_Description(THIS_ BSTR FAR* retval)
  46. {
  47. NW_RRETURN_EXP_IF_ERR(E_ADS_PROPERTY_NOT_SUPPORTED);
  48. }
  49. STDMETHODIMP
  50. CNWCOMPATUser::put_Description(THIS_ BSTR bstrDescription)
  51. {
  52. NW_RRETURN_EXP_IF_ERR(E_ADS_PROPERTY_NOT_SUPPORTED);
  53. }
  54. STDMETHODIMP
  55. CNWCOMPATUser::get_Division(THIS_ BSTR FAR* retval)
  56. {
  57. NW_RRETURN_EXP_IF_ERR(E_ADS_PROPERTY_NOT_SUPPORTED);
  58. }
  59. STDMETHODIMP
  60. CNWCOMPATUser::put_Division(THIS_ BSTR bstrDivision)
  61. {
  62. NW_RRETURN_EXP_IF_ERR(E_ADS_PROPERTY_NOT_SUPPORTED);
  63. }
  64. STDMETHODIMP
  65. CNWCOMPATUser::get_EmployeeID(THIS_ BSTR FAR* retval)
  66. {
  67. NW_RRETURN_EXP_IF_ERR(E_ADS_PROPERTY_NOT_SUPPORTED);
  68. }
  69. STDMETHODIMP
  70. CNWCOMPATUser::put_EmployeeID(THIS_ BSTR bstrEmployeeID)
  71. {
  72. NW_RRETURN_EXP_IF_ERR(E_ADS_PROPERTY_NOT_SUPPORTED);
  73. }
  74. STDMETHODIMP
  75. CNWCOMPATUser::get_FirstName(THIS_ BSTR FAR* retval)
  76. {
  77. NW_RRETURN_EXP_IF_ERR(E_ADS_PROPERTY_NOT_SUPPORTED);
  78. }
  79. STDMETHODIMP
  80. CNWCOMPATUser::put_FirstName(THIS_ BSTR bstrFirstName)
  81. {
  82. NW_RRETURN_EXP_IF_ERR(E_ADS_PROPERTY_NOT_SUPPORTED);
  83. }
  84. STDMETHODIMP
  85. CNWCOMPATUser::get_FullName(THIS_ BSTR FAR* retval)
  86. {
  87. GET_PROPERTY_BSTR((IADsUser *)this, FullName);
  88. }
  89. STDMETHODIMP
  90. CNWCOMPATUser::put_FullName(THIS_ BSTR bstrFullName)
  91. {
  92. PUT_PROPERTY_BSTR((IADsUser *)this, FullName);
  93. }
  94. STDMETHODIMP
  95. CNWCOMPATUser::get_LastName(THIS_ BSTR FAR* retval)
  96. {
  97. NW_RRETURN_EXP_IF_ERR(E_ADS_PROPERTY_NOT_SUPPORTED);
  98. }
  99. STDMETHODIMP
  100. CNWCOMPATUser::put_LastName(THIS_ BSTR bstrLastName)
  101. {
  102. NW_RRETURN_EXP_IF_ERR(E_ADS_PROPERTY_NOT_SUPPORTED);
  103. }
  104. STDMETHODIMP
  105. CNWCOMPATUser::get_Manager(THIS_ BSTR FAR* retval)
  106. {
  107. NW_RRETURN_EXP_IF_ERR(E_ADS_PROPERTY_NOT_SUPPORTED);
  108. }
  109. STDMETHODIMP
  110. CNWCOMPATUser::put_Manager(THIS_ BSTR bstrManager)
  111. {
  112. NW_RRETURN_EXP_IF_ERR(E_ADS_PROPERTY_NOT_SUPPORTED);
  113. }
  114. STDMETHODIMP
  115. CNWCOMPATUser::get_OfficeLocations(THIS_ VARIANT FAR* retval)
  116. {
  117. NW_RRETURN_EXP_IF_ERR(E_ADS_PROPERTY_NOT_SUPPORTED);
  118. }
  119. STDMETHODIMP
  120. CNWCOMPATUser::put_OfficeLocations(THIS_ VARIANT vOfficeLocation)
  121. {
  122. NW_RRETURN_EXP_IF_ERR(E_ADS_PROPERTY_NOT_SUPPORTED);
  123. }
  124. STDMETHODIMP
  125. CNWCOMPATUser::get_Picture(THIS_ VARIANT FAR* retval)
  126. {
  127. NW_RRETURN_EXP_IF_ERR(E_ADS_PROPERTY_NOT_SUPPORTED);
  128. }
  129. STDMETHODIMP
  130. CNWCOMPATUser::put_Picture(THIS_ VARIANT vPicture)
  131. {
  132. NW_RRETURN_EXP_IF_ERR(E_ADS_PROPERTY_NOT_SUPPORTED);
  133. }
  134. STDMETHODIMP
  135. CNWCOMPATUser::get_PostalAddresses(THIS_ VARIANT FAR* retval)
  136. {
  137. NW_RRETURN_EXP_IF_ERR(E_ADS_PROPERTY_NOT_SUPPORTED);
  138. }
  139. STDMETHODIMP
  140. CNWCOMPATUser::put_PostalAddresses(THIS_ VARIANT vPostalAddresses)
  141. {
  142. NW_RRETURN_EXP_IF_ERR(E_ADS_PROPERTY_NOT_SUPPORTED);
  143. }
  144. STDMETHODIMP
  145. CNWCOMPATUser::get_PostalCodes(THIS_ VARIANT FAR* retval)
  146. {
  147. NW_RRETURN_EXP_IF_ERR(E_ADS_PROPERTY_NOT_SUPPORTED);
  148. }
  149. STDMETHODIMP
  150. CNWCOMPATUser::put_PostalCodes(THIS_ VARIANT vPostalCodes)
  151. {
  152. NW_RRETURN_EXP_IF_ERR(E_ADS_PROPERTY_NOT_SUPPORTED);
  153. }
  154. STDMETHODIMP
  155. CNWCOMPATUser::get_TelephoneNumber(THIS_ VARIANT FAR* retval)
  156. {
  157. NW_RRETURN_EXP_IF_ERR(E_ADS_PROPERTY_NOT_SUPPORTED);
  158. }
  159. STDMETHODIMP
  160. CNWCOMPATUser::put_TelephoneNumber(THIS_ VARIANT vTelephoneNumber)
  161. {
  162. NW_RRETURN_EXP_IF_ERR(E_ADS_PROPERTY_NOT_SUPPORTED);
  163. }
  164. STDMETHODIMP
  165. CNWCOMPATUser::get_TelephoneHome(THIS_ VARIANT FAR* retval)
  166. {
  167. NW_RRETURN_EXP_IF_ERR(E_ADS_PROPERTY_NOT_SUPPORTED);
  168. }
  169. STDMETHODIMP
  170. CNWCOMPATUser::put_TelephoneHome(THIS_ VARIANT vTelephoneHome)
  171. {
  172. NW_RRETURN_EXP_IF_ERR(E_ADS_PROPERTY_NOT_SUPPORTED);
  173. }
  174. STDMETHODIMP
  175. CNWCOMPATUser::get_TelephoneMobile(THIS_ VARIANT FAR* retval)
  176. {
  177. NW_RRETURN_EXP_IF_ERR(E_ADS_PROPERTY_NOT_SUPPORTED);
  178. }
  179. STDMETHODIMP
  180. CNWCOMPATUser::put_TelephoneMobile(THIS_ VARIANT vTelephoneMobile)
  181. {
  182. NW_RRETURN_EXP_IF_ERR(E_ADS_PROPERTY_NOT_SUPPORTED);
  183. }
  184. STDMETHODIMP
  185. CNWCOMPATUser::get_TelephonePager(THIS_ VARIANT FAR* retval)
  186. {
  187. NW_RRETURN_EXP_IF_ERR(E_ADS_PROPERTY_NOT_SUPPORTED);
  188. }
  189. STDMETHODIMP
  190. CNWCOMPATUser::put_TelephonePager(THIS_ VARIANT vTelephonePager)
  191. {
  192. NW_RRETURN_EXP_IF_ERR(E_ADS_PROPERTY_NOT_SUPPORTED);
  193. }
  194. STDMETHODIMP
  195. CNWCOMPATUser::get_FaxNumber(THIS_ VARIANT FAR* retval)
  196. {
  197. NW_RRETURN_EXP_IF_ERR(E_ADS_PROPERTY_NOT_SUPPORTED);
  198. }
  199. STDMETHODIMP
  200. CNWCOMPATUser::put_FaxNumber(THIS_ VARIANT vFaxNumber)
  201. {
  202. NW_RRETURN_EXP_IF_ERR(E_ADS_PROPERTY_NOT_SUPPORTED);
  203. }
  204. STDMETHODIMP
  205. CNWCOMPATUser::get_Title(THIS_ BSTR FAR* retval)
  206. {
  207. NW_RRETURN_EXP_IF_ERR(E_ADS_PROPERTY_NOT_SUPPORTED);
  208. }
  209. STDMETHODIMP
  210. CNWCOMPATUser::put_Title(THIS_ BSTR bstrTitle)
  211. {
  212. NW_RRETURN_EXP_IF_ERR(E_ADS_PROPERTY_NOT_SUPPORTED);
  213. }
  214. STDMETHODIMP CNWCOMPATUser::Groups(THIS_ IADsMembers FAR* FAR * ppGroups)
  215. {
  216. HRESULT hr = S_OK;
  217. hr = CNWCOMPATUserCollection::CreateUserCollection(
  218. _Parent,
  219. _ParentType,
  220. _ServerName,
  221. _Name,
  222. _Credentials,
  223. IID_IADsMembers,
  224. (void **)ppGroups
  225. );
  226. NW_RRETURN_EXP_IF_ERR(hr);
  227. }
  228. STDMETHODIMP CNWCOMPATUser::get_HomePage(THIS_ BSTR FAR* retval)
  229. {
  230. NW_RRETURN_EXP_IF_ERR(E_NOTIMPL);
  231. }
  232. STDMETHODIMP CNWCOMPATUser::put_HomePage(THIS_ BSTR bstrHomePage)
  233. {
  234. NW_RRETURN_EXP_IF_ERR(E_NOTIMPL);
  235. }
  236. STDMETHODIMP CNWCOMPATUser::get_SeeAlso(THIS_ VARIANT FAR* retval)
  237. {
  238. NW_RRETURN_EXP_IF_ERR(E_NOTIMPL);
  239. }
  240. STDMETHODIMP CNWCOMPATUser::put_SeeAlso(THIS_ VARIANT vSeeAlso)
  241. {
  242. NW_RRETURN_EXP_IF_ERR(E_NOTIMPL);
  243. }
  244. STDMETHODIMP CNWCOMPATUser::get_NamePrefix(THIS_ BSTR FAR* retval)
  245. {
  246. NW_RRETURN_EXP_IF_ERR(E_NOTIMPL);
  247. }
  248. STDMETHODIMP CNWCOMPATUser::put_NamePrefix(THIS_ BSTR bstrNamePrefix)
  249. {
  250. NW_RRETURN_EXP_IF_ERR(E_NOTIMPL);
  251. }
  252. STDMETHODIMP CNWCOMPATUser::get_NameSuffix(THIS_ BSTR FAR* retval)
  253. {
  254. NW_RRETURN_EXP_IF_ERR(E_NOTIMPL);
  255. }
  256. STDMETHODIMP CNWCOMPATUser::put_NameSuffix(THIS_ BSTR bstrNamePrefix)
  257. {
  258. NW_RRETURN_EXP_IF_ERR(E_NOTIMPL);
  259. }
  260. STDMETHODIMP CNWCOMPATUser::get_OtherName(THIS_ BSTR FAR* retval)
  261. {
  262. NW_RRETURN_EXP_IF_ERR(E_NOTIMPL);
  263. }
  264. STDMETHODIMP CNWCOMPATUser::put_OtherName(THIS_ BSTR bstrOtherName)
  265. {
  266. NW_RRETURN_EXP_IF_ERR(E_NOTIMPL);
  267. }