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.

359 lines
8.2 KiB

  1. // iisext.odl : type library source for iisext.dll
  2. // This file will be processed by the Make Type Library (mktyplib) tool to
  3. // produce the type library (iisext.tlb).
  4. #include "iisext.h"
  5. #define DISPID_IADs_UPPER_BOUND 100
  6. [ uuid(IIS_LIBIID_IISExt), version(1.0),
  7. helpstring("Active DS IIS Extension Dll") ]
  8. library IISExt
  9. {
  10. importlib("stdole2.tlb");
  11. importlib("..\\oleds2.0\\types\\activeds.tlb");
  12. [ uuid(IIS_IID_IISApplicationPool), oleautomation, dual]
  13. interface IISApplicationPool : IADs
  14. {
  15. //methods
  16. [id(DISPID_IADs_UPPER_BOUND+1)]
  17. HRESULT
  18. Recycle(void);
  19. [id(DISPID_IADs_UPPER_BOUND+2)]
  20. HRESULT
  21. EnumApps(
  22. [out, retval] VARIANT* bstrBuffer
  23. );
  24. [id(DISPID_IADs_UPPER_BOUND+3)]
  25. HRESULT
  26. Start(void);
  27. [id(DISPID_IADs_UPPER_BOUND+4)]
  28. HRESULT
  29. Stop(void);
  30. };
  31. [ uuid(IIS_IID_IISApplicationPools), oleautomation, dual]
  32. interface IISApplicationPools : IADs
  33. {
  34. //methods
  35. };
  36. [ uuid(IIS_IID_IISWebService), oleautomation, dual]
  37. interface IISWebService : IADs
  38. {
  39. //methods
  40. [id(DISPID_IADs_UPPER_BOUND+1)]
  41. HRESULT
  42. GetCurrentMode(
  43. [out, retval] VARIANT* pvServerMode
  44. );
  45. [id(DISPID_IADs_UPPER_BOUND+2)]
  46. HRESULT
  47. CreateNewSite(
  48. [in] BSTR bstrServerComment,
  49. [in] VARIANT* pvServerBindings,
  50. [in] BSTR bstrRootVDirPath,
  51. [in, optional] VARIANT vServerID,
  52. [out, retval] VARIANT* pvActualID
  53. );
  54. };
  55. [ uuid(IIS_IID_IISDsCrMap), oleautomation, dual]
  56. interface IISDsCrMap : IADs
  57. {
  58. //methods
  59. [id(DISPID_IADs_UPPER_BOUND+1)]
  60. HRESULT
  61. CreateMapping(
  62. [in] VARIANT vCert,
  63. [in] BSTR bstrNtAcct,
  64. [in] BSTR bstrNtPwd,
  65. [in] BSTR bstrName,
  66. [in] LONG lEnabled
  67. );
  68. [id(DISPID_IADs_UPPER_BOUND+2)]
  69. HRESULT
  70. GetMapping(
  71. [in] LONG lMethod,
  72. [in] VARIANT vKey,
  73. [out] VARIANT* pvCert,
  74. [out] VARIANT* pbstrNtAcct,
  75. [out] VARIANT* pbstrNtPwd,
  76. [out] VARIANT* pbstrName,
  77. [out] VARIANT* plEnabled
  78. );
  79. [id(DISPID_IADs_UPPER_BOUND+3)]
  80. HRESULT
  81. DeleteMapping(
  82. [in] LONG lMethod,
  83. [in] VARIANT vKey
  84. );
  85. [id(DISPID_IADs_UPPER_BOUND+4)]
  86. HRESULT
  87. SetEnabled(
  88. [in] LONG lMethod,
  89. [in] VARIANT vKey,
  90. [in] LONG lEnabled
  91. );
  92. [id(DISPID_IADs_UPPER_BOUND+5)]
  93. HRESULT
  94. SetName(
  95. [in] LONG lMethod,
  96. [in] VARIANT vKey,
  97. [in] BSTR bstrName
  98. );
  99. [id(DISPID_IADs_UPPER_BOUND+6)]
  100. HRESULT
  101. SetPwd(
  102. [in] LONG lMethod,
  103. [in] VARIANT vKey,
  104. [in] BSTR bstrPwd
  105. );
  106. [id(DISPID_IADs_UPPER_BOUND+7)]
  107. HRESULT
  108. SetAcct(
  109. [in] LONG lMethod,
  110. [in] VARIANT vKey,
  111. [in] BSTR bstrAcct
  112. );
  113. };
  114. [ uuid(IIS_IID_IISApp), oleautomation, dual]
  115. interface IISApp : IADs
  116. {
  117. //methods
  118. [id(DISPID_IADs_UPPER_BOUND+1)]
  119. HRESULT
  120. AppCreate(
  121. [in] VARIANT_BOOL bSetInProcFlag
  122. );
  123. [id(DISPID_IADs_UPPER_BOUND+2)]
  124. HRESULT
  125. AppDelete(void);
  126. [id(DISPID_IADs_UPPER_BOUND+3)]
  127. HRESULT
  128. AppDeleteRecursive(void);
  129. [id(DISPID_IADs_UPPER_BOUND+4)]
  130. HRESULT
  131. AppUnLoad(void);
  132. [id(DISPID_IADs_UPPER_BOUND+5)]
  133. HRESULT
  134. AppUnLoadRecursive(void);
  135. [id(DISPID_IADs_UPPER_BOUND+6)]
  136. HRESULT
  137. AppDisable(void);
  138. [id(DISPID_IADs_UPPER_BOUND+7)]
  139. HRESULT
  140. AppDisableRecursive(void);
  141. [id(DISPID_IADs_UPPER_BOUND+8)]
  142. HRESULT
  143. AppEnable(void);
  144. [id(DISPID_IADs_UPPER_BOUND+9)]
  145. HRESULT
  146. AppEnableRecursive(void);
  147. // Obsolete. This method will not work correctly for late bound
  148. // clients
  149. [id(DISPID_IADs_UPPER_BOUND+10)]
  150. HRESULT
  151. AppGetStatus(
  152. [out] DWORD * pdwStatus
  153. );
  154. [id(DISPID_IADs_UPPER_BOUND+11)]
  155. HRESULT
  156. AspAppRestart(void);
  157. };
  158. [ uuid(IIS_IID_IISApp2), oleautomation, dual]
  159. interface IISApp2 : IISApp
  160. {
  161. [id(DISPID_IADs_UPPER_BOUND+12)]
  162. HRESULT
  163. AppCreate2(
  164. [in] LONG lAppMode
  165. );
  166. [id(DISPID_IADs_UPPER_BOUND+13)]
  167. HRESULT
  168. AppGetStatus2(
  169. [out,retval] LONG *lpStatus
  170. );
  171. };
  172. [ uuid(IIS_IID_IISApp3), oleautomation, dual]
  173. interface IISApp3 : IISApp2
  174. {
  175. [id(DISPID_IADs_UPPER_BOUND+14)]
  176. HRESULT
  177. AppCreate3(
  178. [in] LONG lAppMode,
  179. [in] VARIANT bstrAppPooI,
  180. [in] VARIANT bCreatePool
  181. );
  182. };
  183. [ uuid(IIS_IID_IISComputer), oleautomation, dual]
  184. interface IISComputer : IADs
  185. {
  186. //methods
  187. [id(DISPID_IADs_UPPER_BOUND+1)]
  188. HRESULT
  189. Backup(
  190. [in] BSTR bstrLocation,
  191. [in] LONG lVersion,
  192. [in] LONG lFlags
  193. );
  194. [id(DISPID_IADs_UPPER_BOUND+2)]
  195. HRESULT
  196. Restore(
  197. [in] BSTR bstrLocation,
  198. [in] LONG lVersion,
  199. [in] LONG lFlags
  200. );
  201. [id(DISPID_IADs_UPPER_BOUND+3)]
  202. HRESULT
  203. EnumBackups(
  204. [in] BSTR bstrLocation,
  205. [in] LONG lIndex,
  206. [out] VARIANT *pvVersion,
  207. [out] VARIANT *pvLocations,
  208. [out] VARIANT *pvDate
  209. );
  210. [id(DISPID_IADs_UPPER_BOUND+4)]
  211. HRESULT
  212. DeleteBackup(
  213. [in] BSTR bstrLocation,
  214. [in] LONG lVersion
  215. );
  216. };
  217. [ uuid(IIS_IID_IISComputer2), oleautomation, dual]
  218. interface IISComputer2 : IISComputer
  219. {
  220. //methods
  221. [id(DISPID_IADs_UPPER_BOUND+5)]
  222. HRESULT
  223. BackupWithPassword(
  224. [in] BSTR bstrLocation,
  225. [in] LONG lVersion,
  226. [in] LONG lFlags,
  227. [in] BSTR bstrPassword
  228. );
  229. [id(DISPID_IADs_UPPER_BOUND+6)]
  230. HRESULT
  231. RestoreWithPassword(
  232. [in] BSTR bstrLocation,
  233. [in] LONG lVersion,
  234. [in] LONG lFlags,
  235. [in] BSTR bstrPassword
  236. );
  237. [id(DISPID_IADs_UPPER_BOUND+7)]
  238. HRESULT
  239. Export(
  240. [in] BSTR bstrPassword,
  241. [in] BSTR bstrFilename,
  242. [in] BSTR bstrSourcePath,
  243. [in] LONG lFlags
  244. );
  245. [id(DISPID_IADs_UPPER_BOUND+8)]
  246. HRESULT
  247. Import(
  248. [in] BSTR bstrPassword,
  249. [in] BSTR bstrFilename,
  250. [in] BSTR bstrSourcePath,
  251. [in] BSTR bstrDestPath,
  252. [in] LONG lFlags
  253. );
  254. [id(DISPID_IADs_UPPER_BOUND+9)]
  255. HRESULT
  256. SaveData();
  257. };
  258. [uuid(IIS_CLSID_IISExtComputer)]
  259. coclass IISExtComputer
  260. {
  261. [default] interface IISComputer2;
  262. interface IDispatch;
  263. };
  264. [uuid(IIS_CLSID_IISExtApp)]
  265. coclass IISExtApp
  266. {
  267. [default] interface IISApp3;
  268. interface IDispatch;
  269. };
  270. [uuid(IIS_CLSID_IISExtServer)]
  271. coclass IISExtServer
  272. {
  273. [default] interface IADsServiceOperations;
  274. interface IDispatch;
  275. };
  276. [uuid(IIS_CLSID_IISExtDsCrMap)]
  277. coclass IISExtDsCrMap
  278. {
  279. [default] interface IISDsCrMap;
  280. interface IDispatch;
  281. };
  282. [uuid(IIS_CLSID_IISExtApplicationPool)]
  283. coclass IISExtApplicationPool
  284. {
  285. [default] interface IISApplicationPool;
  286. interface IDispatch;
  287. };
  288. [uuid(IIS_CLSID_IISExtApplicationPools)]
  289. coclass IISExtApplicationPools
  290. {
  291. [default] interface IISApplicationPools;
  292. interface IDispatch;
  293. };
  294. [uuid(IIS_CLSID_IISExtWebService)]
  295. coclass IISExtWebService
  296. {
  297. [default] interface IISWebService;
  298. interface IDispatch;
  299. };
  300. };