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.

464 lines
12 KiB

  1. typedef struct
  2. {
  3. DWORD Length;
  4. LPBYTE Value;
  5. } OctetString, *POctetString;
  6. class CCaseIgnoreList;
  7. class CCaseIgnoreList : INHERIT_TRACKING,
  8. public IADsCaseIgnoreList
  9. {
  10. public:
  11. /* IUnknown methods */
  12. STDMETHOD(QueryInterface)(THIS_ REFIID riid, LPVOID FAR* ppvObj) ;
  13. DECLARE_STD_REFCOUNTING
  14. DECLARE_IDispatch_METHODS
  15. STDMETHOD(get_CaseIgnoreList)(THIS_ VARIANT FAR* retval);
  16. STDMETHOD(put_CaseIgnoreList)(THIS_ VARIANT varCaseIgnoreList);
  17. CCaseIgnoreList::CCaseIgnoreList();
  18. CCaseIgnoreList::~CCaseIgnoreList();
  19. static
  20. HRESULT
  21. CCaseIgnoreList::CreateCaseIgnoreList(
  22. REFIID riid,
  23. void **ppvObj
  24. );
  25. static
  26. HRESULT
  27. CCaseIgnoreList::AllocateCaseIgnoreListObject(
  28. CCaseIgnoreList ** ppCaseIgnoreList
  29. );
  30. protected:
  31. CDispatchMgr FAR * _pDispMgr;
  32. LPWSTR *_rgszCaseIgnoreList;
  33. DWORD _dwNumElement;
  34. };
  35. class CFaxNumber;
  36. class CFaxNumber : INHERIT_TRACKING,
  37. public IADsFaxNumber
  38. {
  39. public:
  40. /* IUnknown methods */
  41. STDMETHOD(QueryInterface)(THIS_ REFIID riid, LPVOID FAR* ppvObj) ;
  42. DECLARE_STD_REFCOUNTING
  43. DECLARE_IDispatch_METHODS
  44. STDMETHOD(get_TelephoneNumber)(THIS_ BSTR FAR* retval);
  45. STDMETHOD(put_TelephoneNumber)(THIS_ BSTR bstrTelephoneNumber);
  46. STDMETHOD(get_Parameters)(THIS_ VARIANT FAR* retval);
  47. STDMETHOD(put_Parameters)(THIS_ VARIANT varParameters);
  48. CFaxNumber::CFaxNumber();
  49. CFaxNumber::~CFaxNumber();
  50. static
  51. HRESULT
  52. CFaxNumber::CreateFaxNumber(
  53. REFIID riid,
  54. void **ppvObj
  55. );
  56. static
  57. HRESULT
  58. CFaxNumber::AllocateFaxNumberObject(
  59. CFaxNumber ** ppFaxNumber
  60. );
  61. protected:
  62. CDispatchMgr FAR * _pDispMgr;
  63. LPWSTR _szTelephoneNumber;
  64. DWORD _NumberOfBits;
  65. LPBYTE _Parameters;
  66. };
  67. class CNetAddress;
  68. class CNetAddress : INHERIT_TRACKING,
  69. public IADsNetAddress
  70. {
  71. public:
  72. /* IUnknown methods */
  73. STDMETHOD(QueryInterface)(THIS_ REFIID riid, LPVOID FAR* ppvObj) ;
  74. DECLARE_STD_REFCOUNTING
  75. DECLARE_IDispatch_METHODS
  76. STDMETHOD(get_AddressType)(THIS_ long FAR* retval) ;
  77. STDMETHOD(put_AddressType)(THIS_ long lnAddressType) ;
  78. STDMETHOD(get_Address)(THIS_ VARIANT FAR* retval);
  79. STDMETHOD(put_Address)(THIS_ VARIANT varAddress);
  80. CNetAddress::CNetAddress();
  81. CNetAddress::~CNetAddress();
  82. static
  83. HRESULT
  84. CNetAddress::CreateNetAddress(
  85. REFIID riid,
  86. void **ppvObj
  87. );
  88. static
  89. HRESULT
  90. CNetAddress::AllocateNetAddressObject(
  91. CNetAddress ** ppNetAddress
  92. );
  93. protected:
  94. CDispatchMgr FAR * _pDispMgr;
  95. DWORD _dwAddressType;
  96. DWORD _dwAddressLength;
  97. BYTE *_pbAddress;
  98. };
  99. class COctetList;
  100. class COctetList : INHERIT_TRACKING,
  101. public IADsOctetList
  102. {
  103. public:
  104. /* IUnknown methods */
  105. STDMETHOD(QueryInterface)(THIS_ REFIID riid, LPVOID FAR* ppvObj) ;
  106. DECLARE_STD_REFCOUNTING
  107. DECLARE_IDispatch_METHODS
  108. STDMETHOD(get_OctetList)(THIS_ VARIANT FAR* retval);
  109. STDMETHOD(put_OctetList)(THIS_ VARIANT varOctetList);
  110. COctetList::COctetList();
  111. COctetList::~COctetList();
  112. static
  113. HRESULT
  114. COctetList::CreateOctetList(
  115. REFIID riid,
  116. void **ppvObj
  117. );
  118. static
  119. HRESULT
  120. COctetList::AllocateOctetListObject(
  121. COctetList ** ppOctetList
  122. );
  123. protected:
  124. CDispatchMgr FAR * _pDispMgr;
  125. POctetString *_rgOctetList;
  126. DWORD _dwNumElement;
  127. };
  128. class CEmail;
  129. class CEmail : INHERIT_TRACKING,
  130. public IADsEmail
  131. {
  132. public:
  133. /* IUnknown methods */
  134. STDMETHOD(QueryInterface)(THIS_ REFIID riid, LPVOID FAR* ppvObj) ;
  135. DECLARE_STD_REFCOUNTING
  136. DECLARE_IDispatch_METHODS
  137. STDMETHOD(get_Address)(THIS_ BSTR FAR* retval);
  138. STDMETHOD(put_Address)(THIS_ BSTR bstrAddress);
  139. STDMETHOD(get_Type)(THIS_ long FAR* retval) ;
  140. STDMETHOD(put_Type)(THIS_ long lnType) ;
  141. CEmail::CEmail();
  142. CEmail::~CEmail();
  143. static
  144. HRESULT
  145. CEmail::CreateEmail(
  146. REFIID riid,
  147. void **ppvObj
  148. );
  149. static
  150. HRESULT
  151. CEmail::AllocateEmailObject(
  152. CEmail ** ppEmail
  153. );
  154. protected:
  155. CDispatchMgr FAR * _pDispMgr;
  156. LPWSTR _szAddress;
  157. DWORD _dwType;
  158. };
  159. class CPath;
  160. class CPath : INHERIT_TRACKING,
  161. public IADsPath
  162. {
  163. public:
  164. DWORD Type;
  165. LPWSTR VolumeName;
  166. LPWSTR Path;
  167. /* IUnknown methods */
  168. STDMETHOD(QueryInterface)(THIS_ REFIID riid, LPVOID FAR* ppvObj) ;
  169. DECLARE_STD_REFCOUNTING
  170. DECLARE_IDispatch_METHODS
  171. STDMETHOD(get_Type)(THIS_ long FAR* retval) ;
  172. STDMETHOD(put_Type)(THIS_ long lnType) ;
  173. STDMETHOD(get_VolumeName)(THIS_ BSTR FAR* retval);
  174. STDMETHOD(put_VolumeName)(THIS_ BSTR bstrVolumeName);
  175. STDMETHOD(get_Path)(THIS_ BSTR FAR* retval);
  176. STDMETHOD(put_Path)(THIS_ BSTR bstrPath);
  177. CPath::CPath();
  178. CPath::~CPath();
  179. static
  180. HRESULT
  181. CPath::CreatePath(
  182. REFIID riid,
  183. void **ppvObj
  184. );
  185. static
  186. HRESULT
  187. CPath::AllocatePathObject(
  188. CPath ** ppPath
  189. );
  190. protected:
  191. CDispatchMgr FAR * _pDispMgr;
  192. DWORD _dwType;
  193. LPWSTR _lpVolumeName;
  194. LPWSTR _lpPath;
  195. };
  196. class CReplicaPointer;
  197. class CReplicaPointer: INHERIT_TRACKING,
  198. public IADsReplicaPointer
  199. {
  200. public:
  201. /* IUnknown methods */
  202. STDMETHOD(QueryInterface)(THIS_ REFIID riid, LPVOID FAR* ppvObj) ;
  203. DECLARE_STD_REFCOUNTING
  204. DECLARE_IDispatch_METHODS
  205. STDMETHOD(get_ServerName)(THIS_ BSTR FAR* retval);
  206. STDMETHOD(put_ServerName)(THIS_ BSTR bstrServerName);
  207. STDMETHOD(get_ReplicaType)(THIS_ long FAR* retval) ;
  208. STDMETHOD(put_ReplicaType)(THIS_ long lnReplicaType) ;
  209. STDMETHOD(get_ReplicaNumber)(THIS_ long FAR* retval) ;
  210. STDMETHOD(put_ReplicaNumber)(THIS_ long lnReplicaNumber) ;
  211. STDMETHOD(get_Count)(THIS_ long FAR* retval) ;
  212. STDMETHOD(put_Count)(THIS_ long lnCount) ;
  213. STDMETHOD(get_ReplicaAddressHints)(THIS_ VARIANT FAR* retval) ;
  214. STDMETHOD(put_ReplicaAddressHints)(THIS_ VARIANT pReplicaAddressHints) ;
  215. CReplicaPointer::CReplicaPointer();
  216. CReplicaPointer::~CReplicaPointer();
  217. static
  218. HRESULT
  219. CReplicaPointer::CreateReplicaPointer(
  220. REFIID riid,
  221. void **ppvObj
  222. );
  223. static
  224. HRESULT
  225. CReplicaPointer::AllocateReplicaPointerObject(
  226. CReplicaPointer ** ppReplicaPointer
  227. );
  228. protected:
  229. CDispatchMgr FAR * _pDispMgr;
  230. LPWSTR _lpServerName;
  231. DWORD _dwReplicaType;
  232. DWORD _dwReplicaNumber;
  233. DWORD _dwCount;
  234. NDS_ASN1_TYPE_12 _ReplicaAddressHints;
  235. };
  236. class CTimestamp;
  237. class CTimestamp: INHERIT_TRACKING,
  238. public IADsTimestamp
  239. {
  240. public:
  241. /* IUnknown methods */
  242. STDMETHOD(QueryInterface)(THIS_ REFIID riid, LPVOID FAR* ppvObj) ;
  243. DECLARE_STD_REFCOUNTING
  244. DECLARE_IDispatch_METHODS
  245. STDMETHOD(get_WholeSeconds)(THIS_ long FAR* retval) ;
  246. STDMETHOD(put_WholeSeconds)(THIS_ long lnWholeSeconds) ;
  247. STDMETHOD(get_EventID)(THIS_ long FAR* retval) ;
  248. STDMETHOD(put_EventID)(THIS_ long lnEventID) ;
  249. CTimestamp::CTimestamp();
  250. CTimestamp::~CTimestamp();
  251. static
  252. HRESULT
  253. CTimestamp::CreateTimestamp(
  254. REFIID riid,
  255. void **ppvObj
  256. );
  257. static
  258. HRESULT
  259. CTimestamp::AllocateTimestampObject(
  260. CTimestamp ** ppTimestamp
  261. );
  262. protected:
  263. CDispatchMgr FAR * _pDispMgr;
  264. DWORD _dwWholeSeconds;
  265. DWORD _dwEventID;
  266. };
  267. class CPostalAddress;
  268. class CPostalAddress : INHERIT_TRACKING,
  269. public IADsPostalAddress
  270. {
  271. public:
  272. /* IUnknown methods */
  273. STDMETHOD(QueryInterface)(THIS_ REFIID riid, LPVOID FAR* ppvObj) ;
  274. DECLARE_STD_REFCOUNTING
  275. DECLARE_IDispatch_METHODS
  276. STDMETHOD(get_PostalAddress)(THIS_ VARIANT FAR* retval);
  277. STDMETHOD(put_PostalAddress)(THIS_ VARIANT varPostalAddress);
  278. CPostalAddress::CPostalAddress();
  279. CPostalAddress::~CPostalAddress();
  280. static
  281. HRESULT
  282. CPostalAddress::CreatePostalAddress(
  283. REFIID riid,
  284. void **ppvObj
  285. );
  286. static
  287. HRESULT
  288. CPostalAddress::AllocatePostalAddressObject(
  289. CPostalAddress ** ppPostalAddress
  290. );
  291. protected:
  292. CDispatchMgr FAR * _pDispMgr;
  293. LPWSTR *_rgszPostalAddress;
  294. DWORD _dwNumElement;
  295. };
  296. class CBackLink;
  297. class CBackLink : INHERIT_TRACKING,
  298. public IADsBackLink
  299. {
  300. public:
  301. DWORD RemoteID;
  302. LPWSTR ObjectName;
  303. /* IUnknown methods */
  304. STDMETHOD(QueryInterface)(THIS_ REFIID riid, LPVOID FAR* ppvObj) ;
  305. DECLARE_STD_REFCOUNTING
  306. DECLARE_IDispatch_METHODS
  307. STDMETHOD(get_RemoteID)(THIS_ long FAR* retval) ;
  308. STDMETHOD(put_RemoteID)(THIS_ long lnRemoteID) ;
  309. STDMETHOD(get_ObjectName)(THIS_ BSTR FAR* retval);
  310. STDMETHOD(put_ObjectName)(THIS_ BSTR bstrObjectName);
  311. CBackLink::CBackLink();
  312. CBackLink::~CBackLink();
  313. static
  314. HRESULT
  315. CBackLink::CreateBackLink(
  316. REFIID riid,
  317. void **ppvObj
  318. );
  319. static
  320. HRESULT
  321. CBackLink::AllocateBackLinkObject(
  322. CBackLink ** ppBackLink
  323. );
  324. protected:
  325. CDispatchMgr FAR * _pDispMgr;
  326. DWORD _dwRemoteID;
  327. LPWSTR _lpObjectName;
  328. };
  329. class CTypedName;
  330. class CTypedName : INHERIT_TRACKING,
  331. public IADsTypedName
  332. {
  333. public:
  334. LPWSTR ObjectName;
  335. DWORD Level;
  336. DWORD Interval;
  337. /* IUnknown methods */
  338. STDMETHOD(QueryInterface)(THIS_ REFIID riid, LPVOID FAR* ppvObj) ;
  339. DECLARE_STD_REFCOUNTING
  340. DECLARE_IDispatch_METHODS
  341. STDMETHOD(get_ObjectName)(THIS_ BSTR FAR* retval);
  342. STDMETHOD(put_ObjectName)(THIS_ BSTR bstrObjectName);
  343. STDMETHOD(get_Level)(THIS_ long FAR* retval) ;
  344. STDMETHOD(put_Level)(THIS_ long lnLevel) ;
  345. STDMETHOD(get_Interval)(THIS_ long FAR* retval) ;
  346. STDMETHOD(put_Interval)(THIS_ long lnInterval) ;
  347. CTypedName::CTypedName();
  348. CTypedName::~CTypedName();
  349. static
  350. HRESULT
  351. CTypedName::CreateTypedName(
  352. REFIID riid,
  353. void **ppvObj
  354. );
  355. static
  356. HRESULT
  357. CTypedName::AllocateTypedNameObject(
  358. CTypedName ** ppTypedName
  359. );
  360. protected:
  361. CDispatchMgr FAR * _pDispMgr;
  362. LPWSTR _lpObjectName;
  363. DWORD _dwLevel;
  364. DWORD _dwInterval;
  365. };
  366. class CHold;
  367. class CHold : INHERIT_TRACKING,
  368. public IADsHold
  369. {
  370. public:
  371. /* IUnknown methods */
  372. STDMETHOD(QueryInterface)(THIS_ REFIID riid, LPVOID FAR* ppvObj) ;
  373. DECLARE_STD_REFCOUNTING
  374. DECLARE_IDispatch_METHODS
  375. STDMETHOD(get_ObjectName)(THIS_ BSTR FAR* retval);
  376. STDMETHOD(put_ObjectName)(THIS_ BSTR bstrObjectName);
  377. STDMETHOD(get_Amount)(THIS_ long FAR* retval) ;
  378. STDMETHOD(put_Amount)(THIS_ long lnAmount) ;
  379. CHold::CHold();
  380. CHold::~CHold();
  381. static
  382. HRESULT
  383. CHold::CreateHold(
  384. REFIID riid,
  385. void **ppvObj
  386. );
  387. static
  388. HRESULT
  389. CHold::AllocateHoldObject(
  390. CHold ** ppHold
  391. );
  392. protected:
  393. CDispatchMgr FAR * _pDispMgr;
  394. LPWSTR _lpObjectName;
  395. DWORD _dwAmount;
  396. };