mtsadmin.h 29 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514
  1. /**
  2. * This file has no copyright assigned and is placed in the Public Domain.
  3. * This file is part of the mingw-w64 runtime package.
  4. * No warranty is given; refer to the file DISCLAIMER.PD within this package.
  5. */
  6. #ifndef __REQUIRED_RPCNDR_H_VERSION__
  7. #define __REQUIRED_RPCNDR_H_VERSION__ 440
  8. #endif
  9. #include "rpc.h"
  10. #include "rpcndr.h"
  11. #ifndef __RPCNDR_H_VERSION__
  12. #error This stub requires an updated version of <rpcndr.h>
  13. #endif
  14. #ifndef COM_NO_WINDOWS_H
  15. #include "windows.h"
  16. #include "ole2.h"
  17. #endif
  18. #ifndef __mtsadmin_h__
  19. #define __mtsadmin_h__
  20. #ifdef __cplusplus
  21. extern "C"{
  22. #endif
  23. #ifndef __ICatalog_FWD_DEFINED__
  24. #define __ICatalog_FWD_DEFINED__
  25. typedef struct ICatalog ICatalog;
  26. #endif
  27. #ifndef __IComponentUtil_FWD_DEFINED__
  28. #define __IComponentUtil_FWD_DEFINED__
  29. typedef struct IComponentUtil IComponentUtil;
  30. #endif
  31. #ifndef __IPackageUtil_FWD_DEFINED__
  32. #define __IPackageUtil_FWD_DEFINED__
  33. typedef struct IPackageUtil IPackageUtil;
  34. #endif
  35. #ifndef __IRemoteComponentUtil_FWD_DEFINED__
  36. #define __IRemoteComponentUtil_FWD_DEFINED__
  37. typedef struct IRemoteComponentUtil IRemoteComponentUtil;
  38. #endif
  39. #ifndef __IRoleAssociationUtil_FWD_DEFINED__
  40. #define __IRoleAssociationUtil_FWD_DEFINED__
  41. typedef struct IRoleAssociationUtil IRoleAssociationUtil;
  42. #endif
  43. #ifndef __Catalog_FWD_DEFINED__
  44. #define __Catalog_FWD_DEFINED__
  45. #ifdef __cplusplus
  46. typedef class Catalog Catalog;
  47. #else
  48. typedef struct Catalog Catalog;
  49. #endif
  50. #endif
  51. #ifndef __CatalogObject_FWD_DEFINED__
  52. #define __CatalogObject_FWD_DEFINED__
  53. #ifdef __cplusplus
  54. typedef class CatalogObject CatalogObject;
  55. #else
  56. typedef struct CatalogObject CatalogObject;
  57. #endif
  58. #endif
  59. #ifndef __CatalogCollection_FWD_DEFINED__
  60. #define __CatalogCollection_FWD_DEFINED__
  61. #ifdef __cplusplus
  62. typedef class CatalogCollection CatalogCollection;
  63. #else
  64. typedef struct CatalogCollection CatalogCollection;
  65. #endif
  66. #endif
  67. #ifndef __ComponentUtil_FWD_DEFINED__
  68. #define __ComponentUtil_FWD_DEFINED__
  69. #ifdef __cplusplus
  70. typedef class ComponentUtil ComponentUtil;
  71. #else
  72. typedef struct ComponentUtil ComponentUtil;
  73. #endif
  74. #endif
  75. #ifndef __PackageUtil_FWD_DEFINED__
  76. #define __PackageUtil_FWD_DEFINED__
  77. #ifdef __cplusplus
  78. typedef class PackageUtil PackageUtil;
  79. #else
  80. typedef struct PackageUtil PackageUtil;
  81. #endif
  82. #endif
  83. #ifndef __RemoteComponentUtil_FWD_DEFINED__
  84. #define __RemoteComponentUtil_FWD_DEFINED__
  85. #ifdef __cplusplus
  86. typedef class RemoteComponentUtil RemoteComponentUtil;
  87. #else
  88. typedef struct RemoteComponentUtil RemoteComponentUtil;
  89. #endif
  90. #endif
  91. #ifndef __RoleAssociationUtil_FWD_DEFINED__
  92. #define __RoleAssociationUtil_FWD_DEFINED__
  93. #ifdef __cplusplus
  94. typedef class RoleAssociationUtil RoleAssociationUtil;
  95. #else
  96. typedef struct RoleAssociationUtil RoleAssociationUtil;
  97. #endif
  98. #endif
  99. #include "unknwn.h"
  100. #include "comadmin.h"
  101. #ifndef __MIDL_user_allocate_free_DEFINED__
  102. #define __MIDL_user_allocate_free_DEFINED__
  103. void *__RPC_API MIDL_user_allocate(size_t);
  104. void __RPC_API MIDL_user_free(void *);
  105. #endif
  106. #include <objbase.h>
  107. extern RPC_IF_HANDLE __MIDL_itf_mtsadmin_0000_v0_0_c_ifspec;
  108. extern RPC_IF_HANDLE __MIDL_itf_mtsadmin_0000_v0_0_s_ifspec;
  109. #ifndef __ICatalog_INTERFACE_DEFINED__
  110. #define __ICatalog_INTERFACE_DEFINED__
  111. EXTERN_C const IID IID_ICatalog;
  112. #if defined(__cplusplus) && !defined(CINTERFACE)
  113. struct ICatalog : public IDispatch {
  114. public:
  115. virtual HRESULT WINAPI GetCollection(BSTR bstrCollName,IDispatch **ppCatalogCollection) = 0;
  116. virtual HRESULT WINAPI Connect(BSTR bstrConnectString,IDispatch **ppCatalogCollection) = 0;
  117. virtual HRESULT WINAPI get_MajorVersion(__LONG32 *retval) = 0;
  118. virtual HRESULT WINAPI get_MinorVersion(__LONG32 *retval) = 0;
  119. };
  120. #else
  121. typedef struct ICatalogVtbl {
  122. BEGIN_INTERFACE
  123. HRESULT (WINAPI *QueryInterface)(ICatalog *This,REFIID riid,void **ppvObject);
  124. ULONG (WINAPI *AddRef)(ICatalog *This);
  125. ULONG (WINAPI *Release)(ICatalog *This);
  126. HRESULT (WINAPI *GetTypeInfoCount)(ICatalog *This,UINT *pctinfo);
  127. HRESULT (WINAPI *GetTypeInfo)(ICatalog *This,UINT iTInfo,LCID lcid,ITypeInfo **ppTInfo);
  128. HRESULT (WINAPI *GetIDsOfNames)(ICatalog *This,REFIID riid,LPOLESTR *rgszNames,UINT cNames,LCID lcid,DISPID *rgDispId);
  129. HRESULT (WINAPI *Invoke)(ICatalog *This,DISPID dispIdMember,REFIID riid,LCID lcid,WORD wFlags,DISPPARAMS *pDispParams,VARIANT *pVarResult,EXCEPINFO *pExcepInfo,UINT *puArgErr);
  130. HRESULT (WINAPI *GetCollection)(ICatalog *This,BSTR bstrCollName,IDispatch **ppCatalogCollection);
  131. HRESULT (WINAPI *Connect)(ICatalog *This,BSTR bstrConnectString,IDispatch **ppCatalogCollection);
  132. HRESULT (WINAPI *get_MajorVersion)(ICatalog *This,__LONG32 *retval);
  133. HRESULT (WINAPI *get_MinorVersion)(ICatalog *This,__LONG32 *retval);
  134. END_INTERFACE
  135. } ICatalogVtbl;
  136. struct ICatalog {
  137. CONST_VTBL struct ICatalogVtbl *lpVtbl;
  138. };
  139. #ifdef COBJMACROS
  140. #define ICatalog_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
  141. #define ICatalog_AddRef(This) (This)->lpVtbl->AddRef(This)
  142. #define ICatalog_Release(This) (This)->lpVtbl->Release(This)
  143. #define ICatalog_GetTypeInfoCount(This,pctinfo) (This)->lpVtbl->GetTypeInfoCount(This,pctinfo)
  144. #define ICatalog_GetTypeInfo(This,iTInfo,lcid,ppTInfo) (This)->lpVtbl->GetTypeInfo(This,iTInfo,lcid,ppTInfo)
  145. #define ICatalog_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) (This)->lpVtbl->GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)
  146. #define ICatalog_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) (This)->lpVtbl->Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)
  147. #define ICatalog_GetCollection(This,bstrCollName,ppCatalogCollection) (This)->lpVtbl->GetCollection(This,bstrCollName,ppCatalogCollection)
  148. #define ICatalog_Connect(This,bstrConnectString,ppCatalogCollection) (This)->lpVtbl->Connect(This,bstrConnectString,ppCatalogCollection)
  149. #define ICatalog_get_MajorVersion(This,retval) (This)->lpVtbl->get_MajorVersion(This,retval)
  150. #define ICatalog_get_MinorVersion(This,retval) (This)->lpVtbl->get_MinorVersion(This,retval)
  151. #endif
  152. #endif
  153. HRESULT WINAPI ICatalog_GetCollection_Proxy(ICatalog *This,BSTR bstrCollName,IDispatch **ppCatalogCollection);
  154. void __RPC_STUB ICatalog_GetCollection_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  155. HRESULT WINAPI ICatalog_Connect_Proxy(ICatalog *This,BSTR bstrConnectString,IDispatch **ppCatalogCollection);
  156. void __RPC_STUB ICatalog_Connect_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  157. HRESULT WINAPI ICatalog_get_MajorVersion_Proxy(ICatalog *This,__LONG32 *retval);
  158. void __RPC_STUB ICatalog_get_MajorVersion_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  159. HRESULT WINAPI ICatalog_get_MinorVersion_Proxy(ICatalog *This,__LONG32 *retval);
  160. void __RPC_STUB ICatalog_get_MinorVersion_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  161. #endif
  162. #ifndef __IComponentUtil_INTERFACE_DEFINED__
  163. #define __IComponentUtil_INTERFACE_DEFINED__
  164. EXTERN_C const IID IID_IComponentUtil;
  165. #if defined(__cplusplus) && !defined(CINTERFACE)
  166. struct IComponentUtil : public IDispatch {
  167. public:
  168. virtual HRESULT WINAPI InstallComponent(BSTR bstrDLLFile,BSTR bstrTypelibFile,BSTR bstrProxyStubDLLFile) = 0;
  169. virtual HRESULT WINAPI ImportComponent(BSTR bstrCLSID) = 0;
  170. virtual HRESULT WINAPI ImportComponentByName(BSTR bstrProgID) = 0;
  171. virtual HRESULT WINAPI GetCLSIDs(BSTR bstrDLLFile,BSTR bstrTypelibFile,SAFEARRAY **aCLSIDs) = 0;
  172. };
  173. #else
  174. typedef struct IComponentUtilVtbl {
  175. BEGIN_INTERFACE
  176. HRESULT (WINAPI *QueryInterface)(IComponentUtil *This,REFIID riid,void **ppvObject);
  177. ULONG (WINAPI *AddRef)(IComponentUtil *This);
  178. ULONG (WINAPI *Release)(IComponentUtil *This);
  179. HRESULT (WINAPI *GetTypeInfoCount)(IComponentUtil *This,UINT *pctinfo);
  180. HRESULT (WINAPI *GetTypeInfo)(IComponentUtil *This,UINT iTInfo,LCID lcid,ITypeInfo **ppTInfo);
  181. HRESULT (WINAPI *GetIDsOfNames)(IComponentUtil *This,REFIID riid,LPOLESTR *rgszNames,UINT cNames,LCID lcid,DISPID *rgDispId);
  182. HRESULT (WINAPI *Invoke)(IComponentUtil *This,DISPID dispIdMember,REFIID riid,LCID lcid,WORD wFlags,DISPPARAMS *pDispParams,VARIANT *pVarResult,EXCEPINFO *pExcepInfo,UINT *puArgErr);
  183. HRESULT (WINAPI *InstallComponent)(IComponentUtil *This,BSTR bstrDLLFile,BSTR bstrTypelibFile,BSTR bstrProxyStubDLLFile);
  184. HRESULT (WINAPI *ImportComponent)(IComponentUtil *This,BSTR bstrCLSID);
  185. HRESULT (WINAPI *ImportComponentByName)(IComponentUtil *This,BSTR bstrProgID);
  186. HRESULT (WINAPI *GetCLSIDs)(IComponentUtil *This,BSTR bstrDLLFile,BSTR bstrTypelibFile,SAFEARRAY **aCLSIDs);
  187. END_INTERFACE
  188. } IComponentUtilVtbl;
  189. struct IComponentUtil {
  190. CONST_VTBL struct IComponentUtilVtbl *lpVtbl;
  191. };
  192. #ifdef COBJMACROS
  193. #define IComponentUtil_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
  194. #define IComponentUtil_AddRef(This) (This)->lpVtbl->AddRef(This)
  195. #define IComponentUtil_Release(This) (This)->lpVtbl->Release(This)
  196. #define IComponentUtil_GetTypeInfoCount(This,pctinfo) (This)->lpVtbl->GetTypeInfoCount(This,pctinfo)
  197. #define IComponentUtil_GetTypeInfo(This,iTInfo,lcid,ppTInfo) (This)->lpVtbl->GetTypeInfo(This,iTInfo,lcid,ppTInfo)
  198. #define IComponentUtil_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) (This)->lpVtbl->GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)
  199. #define IComponentUtil_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) (This)->lpVtbl->Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)
  200. #define IComponentUtil_InstallComponent(This,bstrDLLFile,bstrTypelibFile,bstrProxyStubDLLFile) (This)->lpVtbl->InstallComponent(This,bstrDLLFile,bstrTypelibFile,bstrProxyStubDLLFile)
  201. #define IComponentUtil_ImportComponent(This,bstrCLSID) (This)->lpVtbl->ImportComponent(This,bstrCLSID)
  202. #define IComponentUtil_ImportComponentByName(This,bstrProgID) (This)->lpVtbl->ImportComponentByName(This,bstrProgID)
  203. #define IComponentUtil_GetCLSIDs(This,bstrDLLFile,bstrTypelibFile,aCLSIDs) (This)->lpVtbl->GetCLSIDs(This,bstrDLLFile,bstrTypelibFile,aCLSIDs)
  204. #endif
  205. #endif
  206. HRESULT WINAPI IComponentUtil_InstallComponent_Proxy(IComponentUtil *This,BSTR bstrDLLFile,BSTR bstrTypelibFile,BSTR bstrProxyStubDLLFile);
  207. void __RPC_STUB IComponentUtil_InstallComponent_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  208. HRESULT WINAPI IComponentUtil_ImportComponent_Proxy(IComponentUtil *This,BSTR bstrCLSID);
  209. void __RPC_STUB IComponentUtil_ImportComponent_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  210. HRESULT WINAPI IComponentUtil_ImportComponentByName_Proxy(IComponentUtil *This,BSTR bstrProgID);
  211. void __RPC_STUB IComponentUtil_ImportComponentByName_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  212. HRESULT WINAPI IComponentUtil_GetCLSIDs_Proxy(IComponentUtil *This,BSTR bstrDLLFile,BSTR bstrTypelibFile,SAFEARRAY **aCLSIDs);
  213. void __RPC_STUB IComponentUtil_GetCLSIDs_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  214. #endif
  215. #ifndef __IPackageUtil_INTERFACE_DEFINED__
  216. #define __IPackageUtil_INTERFACE_DEFINED__
  217. EXTERN_C const IID IID_IPackageUtil;
  218. #if defined(__cplusplus) && !defined(CINTERFACE)
  219. struct IPackageUtil : public IDispatch {
  220. public:
  221. virtual HRESULT WINAPI InstallPackage(BSTR bstrPackageFile,BSTR bstrInstallPath,__LONG32 lOptions) = 0;
  222. virtual HRESULT WINAPI ExportPackage(BSTR bstrPackageID,BSTR bstrPackageFile,__LONG32 lOptions) = 0;
  223. virtual HRESULT WINAPI ShutdownPackage(BSTR bstrPackageID) = 0;
  224. };
  225. #else
  226. typedef struct IPackageUtilVtbl {
  227. BEGIN_INTERFACE
  228. HRESULT (WINAPI *QueryInterface)(IPackageUtil *This,REFIID riid,void **ppvObject);
  229. ULONG (WINAPI *AddRef)(IPackageUtil *This);
  230. ULONG (WINAPI *Release)(IPackageUtil *This);
  231. HRESULT (WINAPI *GetTypeInfoCount)(IPackageUtil *This,UINT *pctinfo);
  232. HRESULT (WINAPI *GetTypeInfo)(IPackageUtil *This,UINT iTInfo,LCID lcid,ITypeInfo **ppTInfo);
  233. HRESULT (WINAPI *GetIDsOfNames)(IPackageUtil *This,REFIID riid,LPOLESTR *rgszNames,UINT cNames,LCID lcid,DISPID *rgDispId);
  234. HRESULT (WINAPI *Invoke)(IPackageUtil *This,DISPID dispIdMember,REFIID riid,LCID lcid,WORD wFlags,DISPPARAMS *pDispParams,VARIANT *pVarResult,EXCEPINFO *pExcepInfo,UINT *puArgErr);
  235. HRESULT (WINAPI *InstallPackage)(IPackageUtil *This,BSTR bstrPackageFile,BSTR bstrInstallPath,__LONG32 lOptions);
  236. HRESULT (WINAPI *ExportPackage)(IPackageUtil *This,BSTR bstrPackageID,BSTR bstrPackageFile,__LONG32 lOptions);
  237. HRESULT (WINAPI *ShutdownPackage)(IPackageUtil *This,BSTR bstrPackageID);
  238. END_INTERFACE
  239. } IPackageUtilVtbl;
  240. struct IPackageUtil {
  241. CONST_VTBL struct IPackageUtilVtbl *lpVtbl;
  242. };
  243. #ifdef COBJMACROS
  244. #define IPackageUtil_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
  245. #define IPackageUtil_AddRef(This) (This)->lpVtbl->AddRef(This)
  246. #define IPackageUtil_Release(This) (This)->lpVtbl->Release(This)
  247. #define IPackageUtil_GetTypeInfoCount(This,pctinfo) (This)->lpVtbl->GetTypeInfoCount(This,pctinfo)
  248. #define IPackageUtil_GetTypeInfo(This,iTInfo,lcid,ppTInfo) (This)->lpVtbl->GetTypeInfo(This,iTInfo,lcid,ppTInfo)
  249. #define IPackageUtil_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) (This)->lpVtbl->GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)
  250. #define IPackageUtil_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) (This)->lpVtbl->Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)
  251. #define IPackageUtil_InstallPackage(This,bstrPackageFile,bstrInstallPath,lOptions) (This)->lpVtbl->InstallPackage(This,bstrPackageFile,bstrInstallPath,lOptions)
  252. #define IPackageUtil_ExportPackage(This,bstrPackageID,bstrPackageFile,lOptions) (This)->lpVtbl->ExportPackage(This,bstrPackageID,bstrPackageFile,lOptions)
  253. #define IPackageUtil_ShutdownPackage(This,bstrPackageID) (This)->lpVtbl->ShutdownPackage(This,bstrPackageID)
  254. #endif
  255. #endif
  256. HRESULT WINAPI IPackageUtil_InstallPackage_Proxy(IPackageUtil *This,BSTR bstrPackageFile,BSTR bstrInstallPath,__LONG32 lOptions);
  257. void __RPC_STUB IPackageUtil_InstallPackage_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  258. HRESULT WINAPI IPackageUtil_ExportPackage_Proxy(IPackageUtil *This,BSTR bstrPackageID,BSTR bstrPackageFile,__LONG32 lOptions);
  259. void __RPC_STUB IPackageUtil_ExportPackage_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  260. HRESULT WINAPI IPackageUtil_ShutdownPackage_Proxy(IPackageUtil *This,BSTR bstrPackageID);
  261. void __RPC_STUB IPackageUtil_ShutdownPackage_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  262. #endif
  263. #ifndef __IRemoteComponentUtil_INTERFACE_DEFINED__
  264. #define __IRemoteComponentUtil_INTERFACE_DEFINED__
  265. EXTERN_C const IID IID_IRemoteComponentUtil;
  266. #if defined(__cplusplus) && !defined(CINTERFACE)
  267. struct IRemoteComponentUtil : public IDispatch {
  268. public:
  269. virtual HRESULT WINAPI InstallRemoteComponent(BSTR bstrServer,BSTR bstrPackageID,BSTR bstrCLSID) = 0;
  270. virtual HRESULT WINAPI InstallRemoteComponentByName(BSTR bstrServer,BSTR bstrPackageName,BSTR bstrProgID) = 0;
  271. };
  272. #else
  273. typedef struct IRemoteComponentUtilVtbl {
  274. BEGIN_INTERFACE
  275. HRESULT (WINAPI *QueryInterface)(IRemoteComponentUtil *This,REFIID riid,void **ppvObject);
  276. ULONG (WINAPI *AddRef)(IRemoteComponentUtil *This);
  277. ULONG (WINAPI *Release)(IRemoteComponentUtil *This);
  278. HRESULT (WINAPI *GetTypeInfoCount)(IRemoteComponentUtil *This,UINT *pctinfo);
  279. HRESULT (WINAPI *GetTypeInfo)(IRemoteComponentUtil *This,UINT iTInfo,LCID lcid,ITypeInfo **ppTInfo);
  280. HRESULT (WINAPI *GetIDsOfNames)(IRemoteComponentUtil *This,REFIID riid,LPOLESTR *rgszNames,UINT cNames,LCID lcid,DISPID *rgDispId);
  281. HRESULT (WINAPI *Invoke)(IRemoteComponentUtil *This,DISPID dispIdMember,REFIID riid,LCID lcid,WORD wFlags,DISPPARAMS *pDispParams,VARIANT *pVarResult,EXCEPINFO *pExcepInfo,UINT *puArgErr);
  282. HRESULT (WINAPI *InstallRemoteComponent)(IRemoteComponentUtil *This,BSTR bstrServer,BSTR bstrPackageID,BSTR bstrCLSID);
  283. HRESULT (WINAPI *InstallRemoteComponentByName)(IRemoteComponentUtil *This,BSTR bstrServer,BSTR bstrPackageName,BSTR bstrProgID);
  284. END_INTERFACE
  285. } IRemoteComponentUtilVtbl;
  286. struct IRemoteComponentUtil {
  287. CONST_VTBL struct IRemoteComponentUtilVtbl *lpVtbl;
  288. };
  289. #ifdef COBJMACROS
  290. #define IRemoteComponentUtil_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
  291. #define IRemoteComponentUtil_AddRef(This) (This)->lpVtbl->AddRef(This)
  292. #define IRemoteComponentUtil_Release(This) (This)->lpVtbl->Release(This)
  293. #define IRemoteComponentUtil_GetTypeInfoCount(This,pctinfo) (This)->lpVtbl->GetTypeInfoCount(This,pctinfo)
  294. #define IRemoteComponentUtil_GetTypeInfo(This,iTInfo,lcid,ppTInfo) (This)->lpVtbl->GetTypeInfo(This,iTInfo,lcid,ppTInfo)
  295. #define IRemoteComponentUtil_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) (This)->lpVtbl->GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)
  296. #define IRemoteComponentUtil_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) (This)->lpVtbl->Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)
  297. #define IRemoteComponentUtil_InstallRemoteComponent(This,bstrServer,bstrPackageID,bstrCLSID) (This)->lpVtbl->InstallRemoteComponent(This,bstrServer,bstrPackageID,bstrCLSID)
  298. #define IRemoteComponentUtil_InstallRemoteComponentByName(This,bstrServer,bstrPackageName,bstrProgID) (This)->lpVtbl->InstallRemoteComponentByName(This,bstrServer,bstrPackageName,bstrProgID)
  299. #endif
  300. #endif
  301. HRESULT WINAPI IRemoteComponentUtil_InstallRemoteComponent_Proxy(IRemoteComponentUtil *This,BSTR bstrServer,BSTR bstrPackageID,BSTR bstrCLSID);
  302. void __RPC_STUB IRemoteComponentUtil_InstallRemoteComponent_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  303. HRESULT WINAPI IRemoteComponentUtil_InstallRemoteComponentByName_Proxy(IRemoteComponentUtil *This,BSTR bstrServer,BSTR bstrPackageName,BSTR bstrProgID);
  304. void __RPC_STUB IRemoteComponentUtil_InstallRemoteComponentByName_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  305. #endif
  306. #ifndef __IRoleAssociationUtil_INTERFACE_DEFINED__
  307. #define __IRoleAssociationUtil_INTERFACE_DEFINED__
  308. EXTERN_C const IID IID_IRoleAssociationUtil;
  309. #if defined(__cplusplus) && !defined(CINTERFACE)
  310. struct IRoleAssociationUtil : public IDispatch {
  311. public:
  312. virtual HRESULT WINAPI AssociateRole(BSTR bstrRoleID) = 0;
  313. virtual HRESULT WINAPI AssociateRoleByName(BSTR bstrRoleName) = 0;
  314. };
  315. #else
  316. typedef struct IRoleAssociationUtilVtbl {
  317. BEGIN_INTERFACE
  318. HRESULT (WINAPI *QueryInterface)(IRoleAssociationUtil *This,REFIID riid,void **ppvObject);
  319. ULONG (WINAPI *AddRef)(IRoleAssociationUtil *This);
  320. ULONG (WINAPI *Release)(IRoleAssociationUtil *This);
  321. HRESULT (WINAPI *GetTypeInfoCount)(IRoleAssociationUtil *This,UINT *pctinfo);
  322. HRESULT (WINAPI *GetTypeInfo)(IRoleAssociationUtil *This,UINT iTInfo,LCID lcid,ITypeInfo **ppTInfo);
  323. HRESULT (WINAPI *GetIDsOfNames)(IRoleAssociationUtil *This,REFIID riid,LPOLESTR *rgszNames,UINT cNames,LCID lcid,DISPID *rgDispId);
  324. HRESULT (WINAPI *Invoke)(IRoleAssociationUtil *This,DISPID dispIdMember,REFIID riid,LCID lcid,WORD wFlags,DISPPARAMS *pDispParams,VARIANT *pVarResult,EXCEPINFO *pExcepInfo,UINT *puArgErr);
  325. HRESULT (WINAPI *AssociateRole)(IRoleAssociationUtil *This,BSTR bstrRoleID);
  326. HRESULT (WINAPI *AssociateRoleByName)(IRoleAssociationUtil *This,BSTR bstrRoleName);
  327. END_INTERFACE
  328. } IRoleAssociationUtilVtbl;
  329. struct IRoleAssociationUtil {
  330. CONST_VTBL struct IRoleAssociationUtilVtbl *lpVtbl;
  331. };
  332. #ifdef COBJMACROS
  333. #define IRoleAssociationUtil_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
  334. #define IRoleAssociationUtil_AddRef(This) (This)->lpVtbl->AddRef(This)
  335. #define IRoleAssociationUtil_Release(This) (This)->lpVtbl->Release(This)
  336. #define IRoleAssociationUtil_GetTypeInfoCount(This,pctinfo) (This)->lpVtbl->GetTypeInfoCount(This,pctinfo)
  337. #define IRoleAssociationUtil_GetTypeInfo(This,iTInfo,lcid,ppTInfo) (This)->lpVtbl->GetTypeInfo(This,iTInfo,lcid,ppTInfo)
  338. #define IRoleAssociationUtil_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) (This)->lpVtbl->GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)
  339. #define IRoleAssociationUtil_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) (This)->lpVtbl->Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)
  340. #define IRoleAssociationUtil_AssociateRole(This,bstrRoleID) (This)->lpVtbl->AssociateRole(This,bstrRoleID)
  341. #define IRoleAssociationUtil_AssociateRoleByName(This,bstrRoleName) (This)->lpVtbl->AssociateRoleByName(This,bstrRoleName)
  342. #endif
  343. #endif
  344. HRESULT WINAPI IRoleAssociationUtil_AssociateRole_Proxy(IRoleAssociationUtil *This,BSTR bstrRoleID);
  345. void __RPC_STUB IRoleAssociationUtil_AssociateRole_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  346. HRESULT WINAPI IRoleAssociationUtil_AssociateRoleByName_Proxy(IRoleAssociationUtil *This,BSTR bstrRoleName);
  347. void __RPC_STUB IRoleAssociationUtil_AssociateRoleByName_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  348. #endif
  349. #ifndef __MTSAdmin_LIBRARY_DEFINED__
  350. #define __MTSAdmin_LIBRARY_DEFINED__
  351. typedef enum __MIDL___MIDL_itf_mtsadmin_0123_0001 {
  352. mtsInstallUsers = 1
  353. } MTSPackageInstallOptions;
  354. typedef enum __MIDL___MIDL_itf_mtsadmin_0123_0002 {
  355. mtsExportUsers = 1
  356. } MTSPackageExportOptions;
  357. typedef enum __MIDL___MIDL_itf_mtsadmin_0123_0003 {
  358. mtsErrObjectErrors = (HRESULT)0x80110401,mtsErrObjectInvalid = (HRESULT)0x80110402,mtsErrKeyMissing = (HRESULT)0x80110403,
  359. mtsErrAlreadyInstalled = (HRESULT)0x80110404,mtsErrDownloadFailed = 0x80110405,mtsErrPDFWriteFail = (HRESULT)0x80110407,
  360. mtsErrPDFReadFail = (HRESULT)0x80110408,mtsErrPDFVersion = (HRESULT)0x80110409,mtsErrBadPath = (HRESULT)0x8011040a,
  361. mtsErrPackageExists = (HRESULT)0x8011040b,mtsErrRoleExists = (HRESULT)0x8011040c,mtsErrCantCopyFile = (HRESULT)0x8011040d,
  362. mtsErrNoTypeLib = 0x8011040e,mtsErrNoUser = (HRESULT)0x8011040f,mtsErrInvalidUserids = (HRESULT)0x80110410,
  363. mtsErrNoRegistryCLSID = (HRESULT)0x80110411,mtsErrBadRegistryProgID = (HRESULT)0x80110412,mtsErrAuthenticationLevel = (HRESULT)0x80110413,
  364. mtsErrUserPasswdNotValid = (HRESULT)0x80110414,mtsErrNoRegistryRead = 0x80110415,mtsErrNoRegistryWrite = 0x80110416,
  365. mtsErrNoRegistryRepair = 0x80110417,mtsErrCLSIDOrIIDMismatch = (HRESULT)0x80110418,mtsErrRemoteInterface = (HRESULT)0x80110419,
  366. mtsErrDllRegisterServer = (HRESULT)0x8011041a,mtsErrNoServerShare = (HRESULT)0x8011041b,mtsErrNoAccessToUNC = 0x8011041c,
  367. mtsErrDllLoadFailed = (HRESULT)0x8011041d,mtsErrBadRegistryLibID = (HRESULT)0x8011041e,mtsErrPackDirNotFound = (HRESULT)0x8011041f,
  368. mtsErrTreatAs = 0x80110420,mtsErrBadForward = 0x80110421,mtsErrBadIID = 0x80110422,mtsErrRegistrarFailed = (HRESULT)0x80110423,
  369. mtsErrCompFileDoesNotExist = (HRESULT)0x80110424,mtsErrCompFileLoadDLLFail = (HRESULT)0x80110425,mtsErrCompFileGetClassObj = (HRESULT)0x80110426,
  370. mtsErrCompFileClassNotAvail = (HRESULT)0x80110427,mtsErrCompFileBadTLB = (HRESULT)0x80110428,mtsErrCompFileNotInstallable = (HRESULT)0x80110429,
  371. mtsErrNotChangeable = (HRESULT)0x8011042a,mtsErrNotDeletable = (HRESULT)0x8011042b,mtsErrSession = (HRESULT)0x8011042c,
  372. mtsErrCompMoveLocked = (HRESULT)0x8011042d,mtsErrCompMoveBadDest = (HRESULT)0x8011042e,mtsErrRegisterTLB = (HRESULT)0x80110430,
  373. mtsErrSystemPack = (HRESULT)0x80110433,mtsErrCompFileNoRegistrar = (HRESULT)0x80110434,mtsErrCoReqCompInstalled = (HRESULT)0x80110435,
  374. mtsErrPropSaveFailed = (HRESULT)0x80110437,mtsErrObjectExists = (HRESULT)0x80110438,mtsErrRegFileCorrupt = (HRESULT)0x8011043b,
  375. mtsErrPropertyOverflow = (HRESULT)0x8011043c,mtsErrNotInRegistry = (HRESULT)0x8011043e,mtsErrApplidMatchesClsid = (HRESULT)0x80110446,
  376. mtsErrRoleDoesNotExist = (HRESULT)0x80110447,mtsErrObjectParentMissing = (HRESULT)0x80110808,mtsErrObjectDoesNotExist = (HRESULT)0x80110809,
  377. mtsErrCanNotExportAppProxy = 0x8011044a,mtsErrCanNotExportSystemPack = 0x8011044c
  378. };
  379. #define E_MTS_OBJECTERRORS mtsErrObjectErrors
  380. #define E_MTS_OBJECTINVALID mtsErrObjectInvalid
  381. #define E_MTS_KEYMISSING mtsErrKeyMissing
  382. #define E_MTS_ALREADYINSTALLED mtsErrAlreadyInstalled
  383. #define E_MTS_DOWNLOADFAILED mtsErrDownloadFailed
  384. #define E_MTS_PDFWRITEFAIL mtsErrPDFWriteFail
  385. #define E_MTS_PDFREADFAIL mtsErrPDFReadFail
  386. #define E_MTS_PDFVERSION mtsErrPDFVersion
  387. #define E_MTS_BADPATH mtsErrBadPath
  388. #define E_MTS_PACKAGEEXISTS mtsErrPackageExists
  389. #define E_MTS_ROLEEXISTS mtsErrRoleExists
  390. #define E_MTS_CANTCOPYFILE mtsErrCantCopyFile
  391. #define E_MTS_NOTYPELIB mtsErrNoTypeLib
  392. #define E_MTS_NOUSER mtsErrNoUser
  393. #define E_MTS_INVALIDUSERIDS mtsErrInvalidUserids
  394. #define E_MTS_NOREGISTRYCLSID mtsErrNoRegistryCLSID
  395. #define E_MTS_BADREGISTRYPROGID mtsErrBadRegistryProgID
  396. #define E_MTS_AUTHENTICATIONLEVEL mtsErrAuthenticationLevel
  397. #define E_MTS_USERPASSWDNOTVALID mtsErrUserPasswdNotValid
  398. #define E_MTS_NOREGISTRYREAD mtsErrNoRegistryRead
  399. #define E_MTS_NOREGISTRYWRITE mtsErrNoRegistryWrite
  400. #define E_MTS_NOREGISTRYREPAIR mtsErrNoRegistryRepair
  401. #define E_MTS_CLSIDORIIDMISMATCH mtsErrCLSIDOrIIDMismatch
  402. #define E_MTS_REMOTEINTERFACE mtsErrRemoteInterface
  403. #define E_MTS_DLLREGISTERSERVER mtsErrDllRegisterServer
  404. #define E_MTS_NOSERVERSHARE mtsErrNoServerShare
  405. #define E_MTS_NOACCESSTOUNC mtsErrNoAccessToUNC
  406. #define E_MTS_DLLLOADFAILED mtsErrDllLoadFailed
  407. #define E_MTS_BADREGISTRYLIBID mtsErrBadRegistryLibID
  408. #define E_MTS_PACKDIRNOTFOUND mtsErrPackDirNotFound
  409. #define E_MTS_TREATAS mtsErrTreatAs
  410. #define E_MTS_BADFORWARD mtsErrBadForward
  411. #define E_MTS_BADIID mtsErrBadIID
  412. #define E_MTS_REGISTRARFAILED mtsErrRegistrarFailed
  413. #define E_MTS_COMPFILE_DOESNOTEXIST mtsErrCompFileDoesNotExist
  414. #define E_MTS_COMPFILE_LOADDLLFAIL mtsErrCompFileLoadDLLFail
  415. #define E_MTS_COMPFILE_GETCLASSOBJ mtsErrCompFileGetClassObj
  416. #define E_MTS_COMPFILE_CLASSNOTAVAIL mtsErrCompFileClassNotAvail
  417. #define E_MTS_COMPFILE_BADTLB mtsErrCompFileBadTLB
  418. #define E_MTS_COMPFILE_NOTINSTALLABLE mtsErrCompFileNotInstallable
  419. #define E_MTS_NOTCHANGEABLE mtsErrNotChangeable
  420. #define E_MTS_NOTDELETEABLE mtsErrNotDeletable
  421. #define E_MTS_SESSION mtsErrSession
  422. #define E_MTS_COMP_MOVE_LOCKED mtsErrCompMoveLocked
  423. #define E_MTS_COMP_MOVE_BAD_DEST mtsErrCompMoveBadDest
  424. #define E_MTS_REGISTERTLB mtsErrRegisterTLB
  425. #define E_MTS_SYSTEMPACK mtsErrSystemPack
  426. #define E_MTS_COMPFILE_NOREGISTRAR mtsErrCompFileNoRegistrar
  427. #define E_MTS_COREQCOMPINSTALLED mtsErrCoReqCompInstalled
  428. #define E_MTS_PROPERTYSAVEFAILED mtsErrPropSaveFailed
  429. #define E_MTS_OBJECTEXISTS mtsErrObjectExists
  430. #define E_MTS_REGFILE_CORRUPT mtsErrRegFileCorrupt
  431. #define E_MTS_PROPERTY_OVERFLOW mtsErrPropertyOverflow
  432. #define E_MTS_NOTINREGISTRY mtsErrNotInRegistry
  433. #define E_MTS_APPLID_MATCHES_CLSID mtsErrApplidMatchesClsid
  434. #define E_MTS_ROLE_DOES_NOT_EXIST mtsErrRoleDoesNotExist
  435. #define E_MTS_OBJECT_PARENT_MISSING mtsErrObjectParentMissing
  436. #define E_MTS_OBJECT_DOES_NOT_EXIST mtsErrObjectDoesNotExist
  437. #define E_MTS_CAN_NOT_EXPORT_APP_PROXY mtsErrCanNotExportAppProxy
  438. #define E_MTS_CAN_NOT_EXPORT_SYSTEM_PACK mtsErrCanNotExportSystemPack
  439. EXTERN_C const IID LIBID_MTSAdmin;
  440. EXTERN_C const CLSID CLSID_Catalog;
  441. #ifdef __cplusplus
  442. class Catalog;
  443. #endif
  444. EXTERN_C const CLSID CLSID_CatalogObject;
  445. #ifdef __cplusplus
  446. class CatalogObject;
  447. #endif
  448. EXTERN_C const CLSID CLSID_CatalogCollection;
  449. #ifdef __cplusplus
  450. class CatalogCollection;
  451. #endif
  452. EXTERN_C const CLSID CLSID_ComponentUtil;
  453. #ifdef __cplusplus
  454. class ComponentUtil;
  455. #endif
  456. EXTERN_C const CLSID CLSID_PackageUtil;
  457. #ifdef __cplusplus
  458. class PackageUtil;
  459. #endif
  460. EXTERN_C const CLSID CLSID_RemoteComponentUtil;
  461. #ifdef __cplusplus
  462. class RemoteComponentUtil;
  463. #endif
  464. EXTERN_C const CLSID CLSID_RoleAssociationUtil;
  465. #ifdef __cplusplus
  466. class RoleAssociationUtil;
  467. #endif
  468. #endif
  469. ULONG __RPC_API BSTR_UserSize(ULONG *,ULONG,BSTR *);
  470. unsigned char *__RPC_API BSTR_UserMarshal(ULONG *,unsigned char *,BSTR *);
  471. unsigned char *__RPC_API BSTR_UserUnmarshal(ULONG *,unsigned char *,BSTR *);
  472. void __RPC_API BSTR_UserFree(ULONG *,BSTR *);
  473. ULONG __RPC_API LPSAFEARRAY_UserSize(ULONG *,ULONG,LPSAFEARRAY *);
  474. unsigned char *__RPC_API LPSAFEARRAY_UserMarshal(ULONG *,unsigned char *,LPSAFEARRAY *);
  475. unsigned char *__RPC_API LPSAFEARRAY_UserUnmarshal(ULONG *,unsigned char *,LPSAFEARRAY *);
  476. void __RPC_API LPSAFEARRAY_UserFree(ULONG *,LPSAFEARRAY *);
  477. #ifdef __cplusplus
  478. }
  479. #endif
  480. #endif