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.

449 lines
11 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. EnumAppsInPool(
  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, defaultvalue(VT_EMPTY)] VARIANT vServerID,
  52. [out, retval] VARIANT* pvActualID
  53. );
  54. [id(DISPID_IADs_UPPER_BOUND+3)]
  55. HRESULT
  56. EnableApplication(
  57. [in] BSTR bstrAppName
  58. );
  59. [id(DISPID_IADs_UPPER_BOUND+4)]
  60. HRESULT
  61. RemoveApplication(
  62. [in] BSTR bstrAppName
  63. );
  64. [id(DISPID_IADs_UPPER_BOUND+5)]
  65. HRESULT
  66. ListApplications(
  67. [out, retval] VARIANT* bstrBuffer
  68. );
  69. [id(DISPID_IADs_UPPER_BOUND+6)]
  70. HRESULT
  71. AddDependency(
  72. [in] BSTR bstrApplication,
  73. [in] BSTR bstrGroupID
  74. );
  75. [id(DISPID_IADs_UPPER_BOUND+7)]
  76. HRESULT
  77. RemoveDependency(
  78. [in] BSTR bstrApplication,
  79. [in] BSTR bstrGroupID
  80. );
  81. [id(DISPID_IADs_UPPER_BOUND+8)]
  82. HRESULT
  83. EnableWebServiceExtension(
  84. [in] BSTR bstrExtension
  85. );
  86. [id(DISPID_IADs_UPPER_BOUND+9)]
  87. HRESULT
  88. DisableWebServiceExtension(
  89. [in] BSTR bstrExtension
  90. );
  91. [id(DISPID_IADs_UPPER_BOUND+10)]
  92. HRESULT
  93. ListWebServiceExtensions(
  94. [out, retval] VARIANT* bstrBuffer
  95. );
  96. [id(DISPID_IADs_UPPER_BOUND+11)]
  97. HRESULT
  98. EnableExtensionFile(
  99. [in] BSTR bstrExtensionFile
  100. );
  101. [id(DISPID_IADs_UPPER_BOUND+12)]
  102. HRESULT
  103. DisableExtensionFile(
  104. [in] BSTR bstrExtensionFile
  105. );
  106. [id(DISPID_IADs_UPPER_BOUND+13)]
  107. HRESULT
  108. AddExtensionFile(
  109. [in] BSTR bstrExtensionFile,
  110. [in] VARIANT bAccess,
  111. [in] BSTR bstrGroupID,
  112. [in] VARIANT bCanDelete,
  113. [in] BSTR bstrDescription
  114. );
  115. [id(DISPID_IADs_UPPER_BOUND+14)]
  116. HRESULT
  117. DeleteExtensionFileRecord(
  118. [in] BSTR bstrExtensionFile
  119. );
  120. [id(DISPID_IADs_UPPER_BOUND+15)]
  121. HRESULT
  122. ListExtensionFiles(
  123. [out, retval] VARIANT* bstrBuffer
  124. );
  125. [id(DISPID_IADs_UPPER_BOUND+16)]
  126. HRESULT
  127. QueryGroupIDStatus(
  128. [in] BSTR bstrGroupID,
  129. [out, retval] VARIANT* bstrBuffer
  130. );
  131. };
  132. [ uuid(IIS_IID_IISDsCrMap), oleautomation, dual]
  133. interface IISDsCrMap : IADs
  134. {
  135. //methods
  136. [id(DISPID_IADs_UPPER_BOUND+1)]
  137. HRESULT
  138. CreateMapping(
  139. [in] VARIANT vCert,
  140. [in] BSTR bstrNtAcct,
  141. [in] BSTR bstrNtPwd,
  142. [in] BSTR bstrName,
  143. [in] LONG lEnabled
  144. );
  145. [id(DISPID_IADs_UPPER_BOUND+2)]
  146. HRESULT
  147. GetMapping(
  148. [in] LONG lMethod,
  149. [in] VARIANT vKey,
  150. [out] VARIANT* pvCert,
  151. [out] VARIANT* pbstrNtAcct,
  152. [out] VARIANT* pbstrNtPwd,
  153. [out] VARIANT* pbstrName,
  154. [out] VARIANT* plEnabled
  155. );
  156. [id(DISPID_IADs_UPPER_BOUND+3)]
  157. HRESULT
  158. DeleteMapping(
  159. [in] LONG lMethod,
  160. [in] VARIANT vKey
  161. );
  162. [id(DISPID_IADs_UPPER_BOUND+4)]
  163. HRESULT
  164. SetEnabled(
  165. [in] LONG lMethod,
  166. [in] VARIANT vKey,
  167. [in] LONG lEnabled
  168. );
  169. [id(DISPID_IADs_UPPER_BOUND+5)]
  170. HRESULT
  171. SetName(
  172. [in] LONG lMethod,
  173. [in] VARIANT vKey,
  174. [in] BSTR bstrName
  175. );
  176. [id(DISPID_IADs_UPPER_BOUND+6)]
  177. HRESULT
  178. SetPwd(
  179. [in] LONG lMethod,
  180. [in] VARIANT vKey,
  181. [in] BSTR bstrPwd
  182. );
  183. [id(DISPID_IADs_UPPER_BOUND+7)]
  184. HRESULT
  185. SetAcct(
  186. [in] LONG lMethod,
  187. [in] VARIANT vKey,
  188. [in] BSTR bstrAcct
  189. );
  190. };
  191. [ uuid(IIS_IID_IISApp), oleautomation, dual]
  192. interface IISApp : IADs
  193. {
  194. //methods
  195. [id(DISPID_IADs_UPPER_BOUND+1)]
  196. HRESULT
  197. AppCreate(
  198. [in] VARIANT_BOOL bSetInProcFlag
  199. );
  200. [id(DISPID_IADs_UPPER_BOUND+2)]
  201. HRESULT
  202. AppDelete(void);
  203. [id(DISPID_IADs_UPPER_BOUND+3)]
  204. HRESULT
  205. AppDeleteRecursive(void);
  206. [id(DISPID_IADs_UPPER_BOUND+4)]
  207. HRESULT
  208. AppUnLoad(void);
  209. [id(DISPID_IADs_UPPER_BOUND+5)]
  210. HRESULT
  211. AppUnLoadRecursive(void);
  212. [id(DISPID_IADs_UPPER_BOUND+6)]
  213. HRESULT
  214. AppDisable(void);
  215. [id(DISPID_IADs_UPPER_BOUND+7)]
  216. HRESULT
  217. AppDisableRecursive(void);
  218. [id(DISPID_IADs_UPPER_BOUND+8)]
  219. HRESULT
  220. AppEnable(void);
  221. [id(DISPID_IADs_UPPER_BOUND+9)]
  222. HRESULT
  223. AppEnableRecursive(void);
  224. // Obsolete. This method will not work correctly for late bound
  225. // clients
  226. [id(DISPID_IADs_UPPER_BOUND+10)]
  227. HRESULT
  228. AppGetStatus(
  229. [out] DWORD * pdwStatus
  230. );
  231. [id(DISPID_IADs_UPPER_BOUND+11)]
  232. HRESULT
  233. AspAppRestart(void);
  234. };
  235. [ uuid(IIS_IID_IISApp2), oleautomation, dual]
  236. interface IISApp2 : IISApp
  237. {
  238. [id(DISPID_IADs_UPPER_BOUND+12)]
  239. HRESULT
  240. AppCreate2(
  241. [in] LONG lAppMode
  242. );
  243. [id(DISPID_IADs_UPPER_BOUND+13)]
  244. HRESULT
  245. AppGetStatus2(
  246. [out,retval] LONG *lpStatus
  247. );
  248. };
  249. [ uuid(IIS_IID_IISApp3), oleautomation, dual]
  250. interface IISApp3 : IISApp2
  251. {
  252. [id(DISPID_IADs_UPPER_BOUND+14)]
  253. HRESULT
  254. AppCreate3(
  255. [in] LONG lAppMode,
  256. [in] VARIANT bstrAppPooI,
  257. [in] VARIANT bCreatePool
  258. );
  259. };
  260. [ uuid(IIS_IID_IISComputer), oleautomation, dual]
  261. interface IISComputer : IADs
  262. {
  263. //methods
  264. [id(DISPID_IADs_UPPER_BOUND+1)]
  265. HRESULT
  266. Backup(
  267. [in] BSTR bstrLocation,
  268. [in] LONG lVersion,
  269. [in] LONG lFlags
  270. );
  271. [id(DISPID_IADs_UPPER_BOUND+2)]
  272. HRESULT
  273. Restore(
  274. [in] BSTR bstrLocation,
  275. [in] LONG lVersion,
  276. [in] LONG lFlags
  277. );
  278. [id(DISPID_IADs_UPPER_BOUND+3)]
  279. HRESULT
  280. EnumBackups(
  281. [in] BSTR bstrLocation,
  282. [in] LONG lIndex,
  283. [out] VARIANT *pvVersion,
  284. [out] VARIANT *pvLocations,
  285. [out] VARIANT *pvDate
  286. );
  287. [id(DISPID_IADs_UPPER_BOUND+4)]
  288. HRESULT
  289. DeleteBackup(
  290. [in] BSTR bstrLocation,
  291. [in] LONG lVersion
  292. );
  293. };
  294. [ uuid(IIS_IID_IISComputer2), oleautomation, dual]
  295. interface IISComputer2 : IISComputer
  296. {
  297. //methods
  298. [id(DISPID_IADs_UPPER_BOUND+5)]
  299. HRESULT
  300. BackupWithPassword(
  301. [in] BSTR bstrLocation,
  302. [in] LONG lVersion,
  303. [in] LONG lFlags,
  304. [in] BSTR bstrPassword
  305. );
  306. [id(DISPID_IADs_UPPER_BOUND+6)]
  307. HRESULT
  308. RestoreWithPassword(
  309. [in] BSTR bstrLocation,
  310. [in] LONG lVersion,
  311. [in] LONG lFlags,
  312. [in] BSTR bstrPassword
  313. );
  314. [id(DISPID_IADs_UPPER_BOUND+7)]
  315. HRESULT
  316. Export(
  317. [in] BSTR bstrPassword,
  318. [in] BSTR bstrFilename,
  319. [in] BSTR bstrSourcePath,
  320. [in] LONG lFlags
  321. );
  322. [id(DISPID_IADs_UPPER_BOUND+8)]
  323. HRESULT
  324. Import(
  325. [in] BSTR bstrPassword,
  326. [in] BSTR bstrFilename,
  327. [in] BSTR bstrSourcePath,
  328. [in] BSTR bstrDestPath,
  329. [in] LONG lFlags
  330. );
  331. [id(DISPID_IADs_UPPER_BOUND+9)]
  332. HRESULT
  333. SaveData();
  334. };
  335. [uuid(IIS_CLSID_IISExtComputer)]
  336. coclass IISExtComputer
  337. {
  338. [default] interface IISComputer2;
  339. interface IDispatch;
  340. };
  341. [uuid(IIS_CLSID_IISExtApp)]
  342. coclass IISExtApp
  343. {
  344. [default] interface IISApp3;
  345. interface IDispatch;
  346. };
  347. [uuid(IIS_CLSID_IISExtServer)]
  348. coclass IISExtServer
  349. {
  350. [default] interface IADsServiceOperations;
  351. interface IDispatch;
  352. };
  353. [uuid(IIS_CLSID_IISExtDsCrMap)]
  354. coclass IISExtDsCrMap
  355. {
  356. [default] interface IISDsCrMap;
  357. interface IDispatch;
  358. };
  359. [uuid(IIS_CLSID_IISExtApplicationPool)]
  360. coclass IISExtApplicationPool
  361. {
  362. [default] interface IISApplicationPool;
  363. interface IDispatch;
  364. };
  365. [uuid(IIS_CLSID_IISExtApplicationPools)]
  366. coclass IISExtApplicationPools
  367. {
  368. [default] interface IISApplicationPools;
  369. interface IDispatch;
  370. };
  371. [uuid(IIS_CLSID_IISExtWebService)]
  372. coclass IISExtWebService
  373. {
  374. [default] interface IISWebService;
  375. interface IDispatch;
  376. };
  377. };