MtsAdmin.h
上传用户:dzyhzl
上传日期:2019-04-29
资源大小:56270k
文件大小:45k
源码类别:

模拟服务器

开发平台:

C/C++

  1. /* this ALWAYS GENERATED file contains the definitions for the interfaces */
  2. /* File created by MIDL compiler version 5.01.0158 */
  3. /* at Thu Mar 11 18:35:18 1999
  4.  */
  5. /* Compiler settings for mtsadmin.idl:
  6.     Oicf (OptLev=i2), W1, Zp8, env=Win32, ms_ext, c_ext
  7.     error checks: allocation ref bounds_check enum stub_data 
  8. */
  9. //@@MIDL_FILE_HEADING(  )
  10. /* verify that the <rpcndr.h> version is high enough to compile this file*/
  11. #ifndef __REQUIRED_RPCNDR_H_VERSION__
  12. #define __REQUIRED_RPCNDR_H_VERSION__ 440
  13. #endif
  14. #include "rpc.h"
  15. #include "rpcndr.h"
  16. #ifndef __RPCNDR_H_VERSION__
  17. #error this stub requires an updated version of <rpcndr.h>
  18. #endif // __RPCNDR_H_VERSION__
  19. #ifndef COM_NO_WINDOWS_H
  20. #include "windows.h"
  21. #include "ole2.h"
  22. #endif /*COM_NO_WINDOWS_H*/
  23. #ifndef __mtsadmin_h__
  24. #define __mtsadmin_h__
  25. #ifdef __cplusplus
  26. extern "C"{
  27. #endif 
  28. /* Forward Declarations */ 
  29. #ifndef __ICatalog_FWD_DEFINED__
  30. #define __ICatalog_FWD_DEFINED__
  31. typedef interface ICatalog ICatalog;
  32. #endif  /* __ICatalog_FWD_DEFINED__ */
  33. #ifndef __IComponentUtil_FWD_DEFINED__
  34. #define __IComponentUtil_FWD_DEFINED__
  35. typedef interface IComponentUtil IComponentUtil;
  36. #endif  /* __IComponentUtil_FWD_DEFINED__ */
  37. #ifndef __IPackageUtil_FWD_DEFINED__
  38. #define __IPackageUtil_FWD_DEFINED__
  39. typedef interface IPackageUtil IPackageUtil;
  40. #endif  /* __IPackageUtil_FWD_DEFINED__ */
  41. #ifndef __IRemoteComponentUtil_FWD_DEFINED__
  42. #define __IRemoteComponentUtil_FWD_DEFINED__
  43. typedef interface IRemoteComponentUtil IRemoteComponentUtil;
  44. #endif  /* __IRemoteComponentUtil_FWD_DEFINED__ */
  45. #ifndef __IRoleAssociationUtil_FWD_DEFINED__
  46. #define __IRoleAssociationUtil_FWD_DEFINED__
  47. typedef interface IRoleAssociationUtil IRoleAssociationUtil;
  48. #endif  /* __IRoleAssociationUtil_FWD_DEFINED__ */
  49. #ifndef __Catalog_FWD_DEFINED__
  50. #define __Catalog_FWD_DEFINED__
  51. #ifdef __cplusplus
  52. typedef class Catalog Catalog;
  53. #else
  54. typedef struct Catalog Catalog;
  55. #endif /* __cplusplus */
  56. #endif  /* __Catalog_FWD_DEFINED__ */
  57. #ifndef __CatalogObject_FWD_DEFINED__
  58. #define __CatalogObject_FWD_DEFINED__
  59. #ifdef __cplusplus
  60. typedef class CatalogObject CatalogObject;
  61. #else
  62. typedef struct CatalogObject CatalogObject;
  63. #endif /* __cplusplus */
  64. #endif  /* __CatalogObject_FWD_DEFINED__ */
  65. #ifndef __CatalogCollection_FWD_DEFINED__
  66. #define __CatalogCollection_FWD_DEFINED__
  67. #ifdef __cplusplus
  68. typedef class CatalogCollection CatalogCollection;
  69. #else
  70. typedef struct CatalogCollection CatalogCollection;
  71. #endif /* __cplusplus */
  72. #endif  /* __CatalogCollection_FWD_DEFINED__ */
  73. #ifndef __ComponentUtil_FWD_DEFINED__
  74. #define __ComponentUtil_FWD_DEFINED__
  75. #ifdef __cplusplus
  76. typedef class ComponentUtil ComponentUtil;
  77. #else
  78. typedef struct ComponentUtil ComponentUtil;
  79. #endif /* __cplusplus */
  80. #endif  /* __ComponentUtil_FWD_DEFINED__ */
  81. #ifndef __PackageUtil_FWD_DEFINED__
  82. #define __PackageUtil_FWD_DEFINED__
  83. #ifdef __cplusplus
  84. typedef class PackageUtil PackageUtil;
  85. #else
  86. typedef struct PackageUtil PackageUtil;
  87. #endif /* __cplusplus */
  88. #endif  /* __PackageUtil_FWD_DEFINED__ */
  89. #ifndef __RemoteComponentUtil_FWD_DEFINED__
  90. #define __RemoteComponentUtil_FWD_DEFINED__
  91. #ifdef __cplusplus
  92. typedef class RemoteComponentUtil RemoteComponentUtil;
  93. #else
  94. typedef struct RemoteComponentUtil RemoteComponentUtil;
  95. #endif /* __cplusplus */
  96. #endif  /* __RemoteComponentUtil_FWD_DEFINED__ */
  97. #ifndef __RoleAssociationUtil_FWD_DEFINED__
  98. #define __RoleAssociationUtil_FWD_DEFINED__
  99. #ifdef __cplusplus
  100. typedef class RoleAssociationUtil RoleAssociationUtil;
  101. #else
  102. typedef struct RoleAssociationUtil RoleAssociationUtil;
  103. #endif /* __cplusplus */
  104. #endif  /* __RoleAssociationUtil_FWD_DEFINED__ */
  105. /* header files for imported files */
  106. #include "unknwn.h"
  107. #include "comadmin.h"
  108. void __RPC_FAR * __RPC_USER MIDL_user_allocate(size_t);
  109. void __RPC_USER MIDL_user_free( void __RPC_FAR * ); 
  110. /* interface __MIDL_itf_mtsadmin_0000 */
  111. /* [local] */ 
  112. // -----------------------------------------------------------------------
  113. // mtsadmin.h  -- COM (MTS Compatible) Administration Programming Interfaces 
  114. //
  115. // This file provides the prototypes for the APIs and COM interfaces
  116. // used by Microsoft Transaction Server applications.
  117. //
  118. // Copyright (c) Microsoft Corporation. All rights reserved.
  119. // -----------------------------------------------------------------------
  120. #include <objbase.h>
  121. #ifndef DECLSPEC_UUID
  122. #if _MSC_VER >= 1100
  123. #define DECLSPEC_UUID(x)    __declspec(uuid(x))
  124. #else
  125. #define DECLSPEC_UUID(x)
  126. #endif
  127. #endif
  128. extern RPC_IF_HANDLE __MIDL_itf_mtsadmin_0000_v0_0_c_ifspec;
  129. extern RPC_IF_HANDLE __MIDL_itf_mtsadmin_0000_v0_0_s_ifspec;
  130. #ifndef __ICatalog_INTERFACE_DEFINED__
  131. #define __ICatalog_INTERFACE_DEFINED__
  132. /* interface ICatalog */
  133. /* [unique][helpstring][dual][uuid][object] */ 
  134. EXTERN_C const IID IID_ICatalog;
  135. #if defined(__cplusplus) && !defined(CINTERFACE)
  136.     
  137.     MIDL_INTERFACE("6eb22870-8a19-11d0-81b6-00a0c9231c29")
  138.     ICatalog : public IDispatch
  139.     {
  140.     public:
  141.         virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE GetCollection( 
  142.             /* [in] */ BSTR bstrCollName,
  143.             /* [retval][out] */ IDispatch __RPC_FAR *__RPC_FAR *ppCatalogCollection) = 0;
  144.         
  145.         virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Connect( 
  146.             /* [in] */ BSTR bstrConnectString,
  147.             /* [retval][out] */ IDispatch __RPC_FAR *__RPC_FAR *ppCatalogCollection) = 0;
  148.         
  149.         virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_MajorVersion( 
  150.             /* [retval][out] */ long __RPC_FAR *retval) = 0;
  151.         
  152.         virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_MinorVersion( 
  153.             /* [retval][out] */ long __RPC_FAR *retval) = 0;
  154.         
  155.     };
  156.     
  157. #else  /* C style interface */
  158.     typedef struct ICatalogVtbl
  159.     {
  160.         BEGIN_INTERFACE
  161.         
  162.         HRESULT ( STDMETHODCALLTYPE __RPC_FAR *QueryInterface )( 
  163.             ICatalog __RPC_FAR * This,
  164.             /* [in] */ REFIID riid,
  165.             /* [iid_is][out] */ void __RPC_FAR *__RPC_FAR *ppvObject);
  166.         
  167.         ULONG ( STDMETHODCALLTYPE __RPC_FAR *AddRef )( 
  168.             ICatalog __RPC_FAR * This);
  169.         
  170.         ULONG ( STDMETHODCALLTYPE __RPC_FAR *Release )( 
  171.             ICatalog __RPC_FAR * This);
  172.         
  173.         HRESULT ( STDMETHODCALLTYPE __RPC_FAR *GetTypeInfoCount )( 
  174.             ICatalog __RPC_FAR * This,
  175.             /* [out] */ UINT __RPC_FAR *pctinfo);
  176.         
  177.         HRESULT ( STDMETHODCALLTYPE __RPC_FAR *GetTypeInfo )( 
  178.             ICatalog __RPC_FAR * This,
  179.             /* [in] */ UINT iTInfo,
  180.             /* [in] */ LCID lcid,
  181.             /* [out] */ ITypeInfo __RPC_FAR *__RPC_FAR *ppTInfo);
  182.         
  183.         HRESULT ( STDMETHODCALLTYPE __RPC_FAR *GetIDsOfNames )( 
  184.             ICatalog __RPC_FAR * This,
  185.             /* [in] */ REFIID riid,
  186.             /* [size_is][in] */ LPOLESTR __RPC_FAR *rgszNames,
  187.             /* [in] */ UINT cNames,
  188.             /* [in] */ LCID lcid,
  189.             /* [size_is][out] */ DISPID __RPC_FAR *rgDispId);
  190.         
  191.         /* [local] */ HRESULT ( STDMETHODCALLTYPE __RPC_FAR *Invoke )( 
  192.             ICatalog __RPC_FAR * This,
  193.             /* [in] */ DISPID dispIdMember,
  194.             /* [in] */ REFIID riid,
  195.             /* [in] */ LCID lcid,
  196.             /* [in] */ WORD wFlags,
  197.             /* [out][in] */ DISPPARAMS __RPC_FAR *pDispParams,
  198.             /* [out] */ VARIANT __RPC_FAR *pVarResult,
  199.             /* [out] */ EXCEPINFO __RPC_FAR *pExcepInfo,
  200.             /* [out] */ UINT __RPC_FAR *puArgErr);
  201.         
  202.         /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE __RPC_FAR *GetCollection )( 
  203.             ICatalog __RPC_FAR * This,
  204.             /* [in] */ BSTR bstrCollName,
  205.             /* [retval][out] */ IDispatch __RPC_FAR *__RPC_FAR *ppCatalogCollection);
  206.         
  207.         /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE __RPC_FAR *Connect )( 
  208.             ICatalog __RPC_FAR * This,
  209.             /* [in] */ BSTR bstrConnectString,
  210.             /* [retval][out] */ IDispatch __RPC_FAR *__RPC_FAR *ppCatalogCollection);
  211.         
  212.         /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE __RPC_FAR *get_MajorVersion )( 
  213.             ICatalog __RPC_FAR * This,
  214.             /* [retval][out] */ long __RPC_FAR *retval);
  215.         
  216.         /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE __RPC_FAR *get_MinorVersion )( 
  217.             ICatalog __RPC_FAR * This,
  218.             /* [retval][out] */ long __RPC_FAR *retval);
  219.         
  220.         END_INTERFACE
  221.     } ICatalogVtbl;
  222.     interface ICatalog
  223.     {
  224.         CONST_VTBL struct ICatalogVtbl __RPC_FAR *lpVtbl;
  225.     };
  226.     
  227. #ifdef COBJMACROS
  228. #define ICatalog_QueryInterface(This,riid,ppvObject)
  229.     (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  230. #define ICatalog_AddRef(This)
  231.     (This)->lpVtbl -> AddRef(This)
  232. #define ICatalog_Release(This)
  233.     (This)->lpVtbl -> Release(This)
  234. #define ICatalog_GetTypeInfoCount(This,pctinfo)
  235.     (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo)
  236. #define ICatalog_GetTypeInfo(This,iTInfo,lcid,ppTInfo)
  237.     (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo)
  238. #define ICatalog_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)
  239.     (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)
  240. #define ICatalog_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)
  241.     (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)
  242. #define ICatalog_GetCollection(This,bstrCollName,ppCatalogCollection)
  243.     (This)->lpVtbl -> GetCollection(This,bstrCollName,ppCatalogCollection)
  244. #define ICatalog_Connect(This,bstrConnectString,ppCatalogCollection)
  245.     (This)->lpVtbl -> Connect(This,bstrConnectString,ppCatalogCollection)
  246. #define ICatalog_get_MajorVersion(This,retval)
  247.     (This)->lpVtbl -> get_MajorVersion(This,retval)
  248. #define ICatalog_get_MinorVersion(This,retval)
  249.     (This)->lpVtbl -> get_MinorVersion(This,retval)
  250. #endif /* COBJMACROS */
  251. #endif  /* C style interface */
  252. /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ICatalog_GetCollection_Proxy( 
  253.     ICatalog __RPC_FAR * This,
  254.     /* [in] */ BSTR bstrCollName,
  255.     /* [retval][out] */ IDispatch __RPC_FAR *__RPC_FAR *ppCatalogCollection);
  256. void __RPC_STUB ICatalog_GetCollection_Stub(
  257.     IRpcStubBuffer *This,
  258.     IRpcChannelBuffer *_pRpcChannelBuffer,
  259.     PRPC_MESSAGE _pRpcMessage,
  260.     DWORD *_pdwStubPhase);
  261. /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ICatalog_Connect_Proxy( 
  262.     ICatalog __RPC_FAR * This,
  263.     /* [in] */ BSTR bstrConnectString,
  264.     /* [retval][out] */ IDispatch __RPC_FAR *__RPC_FAR *ppCatalogCollection);
  265. void __RPC_STUB ICatalog_Connect_Stub(
  266.     IRpcStubBuffer *This,
  267.     IRpcChannelBuffer *_pRpcChannelBuffer,
  268.     PRPC_MESSAGE _pRpcMessage,
  269.     DWORD *_pdwStubPhase);
  270. /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE ICatalog_get_MajorVersion_Proxy( 
  271.     ICatalog __RPC_FAR * This,
  272.     /* [retval][out] */ long __RPC_FAR *retval);
  273. void __RPC_STUB ICatalog_get_MajorVersion_Stub(
  274.     IRpcStubBuffer *This,
  275.     IRpcChannelBuffer *_pRpcChannelBuffer,
  276.     PRPC_MESSAGE _pRpcMessage,
  277.     DWORD *_pdwStubPhase);
  278. /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE ICatalog_get_MinorVersion_Proxy( 
  279.     ICatalog __RPC_FAR * This,
  280.     /* [retval][out] */ long __RPC_FAR *retval);
  281. void __RPC_STUB ICatalog_get_MinorVersion_Stub(
  282.     IRpcStubBuffer *This,
  283.     IRpcChannelBuffer *_pRpcChannelBuffer,
  284.     PRPC_MESSAGE _pRpcMessage,
  285.     DWORD *_pdwStubPhase);
  286. #endif  /* __ICatalog_INTERFACE_DEFINED__ */
  287. #ifndef __IComponentUtil_INTERFACE_DEFINED__
  288. #define __IComponentUtil_INTERFACE_DEFINED__
  289. /* interface IComponentUtil */
  290. /* [unique][helpstring][dual][uuid][object] */ 
  291. EXTERN_C const IID IID_IComponentUtil;
  292. #if defined(__cplusplus) && !defined(CINTERFACE)
  293.     
  294.     MIDL_INTERFACE("6eb22873-8a19-11d0-81b6-00a0c9231c29")
  295.     IComponentUtil : public IDispatch
  296.     {
  297.     public:
  298.         virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE InstallComponent( 
  299.             /* [in] */ BSTR bstrDLLFile,
  300.             /* [in] */ BSTR bstrTypelibFile,
  301.             /* [in] */ BSTR bstrProxyStubDLLFile) = 0;
  302.         
  303.         virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ImportComponent( 
  304.             /* [in] */ BSTR bstrCLSID) = 0;
  305.         
  306.         virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ImportComponentByName( 
  307.             /* [in] */ BSTR bstrProgID) = 0;
  308.         
  309.         virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE GetCLSIDs( 
  310.             /* [in] */ BSTR bstrDLLFile,
  311.             /* [in] */ BSTR bstrTypelibFile,
  312.             /* [out] */ SAFEARRAY __RPC_FAR * __RPC_FAR *aCLSIDs) = 0;
  313.         
  314.     };
  315.     
  316. #else  /* C style interface */
  317.     typedef struct IComponentUtilVtbl
  318.     {
  319.         BEGIN_INTERFACE
  320.         
  321.         HRESULT ( STDMETHODCALLTYPE __RPC_FAR *QueryInterface )( 
  322.             IComponentUtil __RPC_FAR * This,
  323.             /* [in] */ REFIID riid,
  324.             /* [iid_is][out] */ void __RPC_FAR *__RPC_FAR *ppvObject);
  325.         
  326.         ULONG ( STDMETHODCALLTYPE __RPC_FAR *AddRef )( 
  327.             IComponentUtil __RPC_FAR * This);
  328.         
  329.         ULONG ( STDMETHODCALLTYPE __RPC_FAR *Release )( 
  330.             IComponentUtil __RPC_FAR * This);
  331.         
  332.         HRESULT ( STDMETHODCALLTYPE __RPC_FAR *GetTypeInfoCount )( 
  333.             IComponentUtil __RPC_FAR * This,
  334.             /* [out] */ UINT __RPC_FAR *pctinfo);
  335.         
  336.         HRESULT ( STDMETHODCALLTYPE __RPC_FAR *GetTypeInfo )( 
  337.             IComponentUtil __RPC_FAR * This,
  338.             /* [in] */ UINT iTInfo,
  339.             /* [in] */ LCID lcid,
  340.             /* [out] */ ITypeInfo __RPC_FAR *__RPC_FAR *ppTInfo);
  341.         
  342.         HRESULT ( STDMETHODCALLTYPE __RPC_FAR *GetIDsOfNames )( 
  343.             IComponentUtil __RPC_FAR * This,
  344.             /* [in] */ REFIID riid,
  345.             /* [size_is][in] */ LPOLESTR __RPC_FAR *rgszNames,
  346.             /* [in] */ UINT cNames,
  347.             /* [in] */ LCID lcid,
  348.             /* [size_is][out] */ DISPID __RPC_FAR *rgDispId);
  349.         
  350.         /* [local] */ HRESULT ( STDMETHODCALLTYPE __RPC_FAR *Invoke )( 
  351.             IComponentUtil __RPC_FAR * This,
  352.             /* [in] */ DISPID dispIdMember,
  353.             /* [in] */ REFIID riid,
  354.             /* [in] */ LCID lcid,
  355.             /* [in] */ WORD wFlags,
  356.             /* [out][in] */ DISPPARAMS __RPC_FAR *pDispParams,
  357.             /* [out] */ VARIANT __RPC_FAR *pVarResult,
  358.             /* [out] */ EXCEPINFO __RPC_FAR *pExcepInfo,
  359.             /* [out] */ UINT __RPC_FAR *puArgErr);
  360.         
  361.         /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE __RPC_FAR *InstallComponent )( 
  362.             IComponentUtil __RPC_FAR * This,
  363.             /* [in] */ BSTR bstrDLLFile,
  364.             /* [in] */ BSTR bstrTypelibFile,
  365.             /* [in] */ BSTR bstrProxyStubDLLFile);
  366.         
  367.         /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE __RPC_FAR *ImportComponent )( 
  368.             IComponentUtil __RPC_FAR * This,
  369.             /* [in] */ BSTR bstrCLSID);
  370.         
  371.         /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE __RPC_FAR *ImportComponentByName )( 
  372.             IComponentUtil __RPC_FAR * This,
  373.             /* [in] */ BSTR bstrProgID);
  374.         
  375.         /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE __RPC_FAR *GetCLSIDs )( 
  376.             IComponentUtil __RPC_FAR * This,
  377.             /* [in] */ BSTR bstrDLLFile,
  378.             /* [in] */ BSTR bstrTypelibFile,
  379.             /* [out] */ SAFEARRAY __RPC_FAR * __RPC_FAR *aCLSIDs);
  380.         
  381.         END_INTERFACE
  382.     } IComponentUtilVtbl;
  383.     interface IComponentUtil
  384.     {
  385.         CONST_VTBL struct IComponentUtilVtbl __RPC_FAR *lpVtbl;
  386.     };
  387.     
  388. #ifdef COBJMACROS
  389. #define IComponentUtil_QueryInterface(This,riid,ppvObject)
  390.     (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  391. #define IComponentUtil_AddRef(This)
  392.     (This)->lpVtbl -> AddRef(This)
  393. #define IComponentUtil_Release(This)
  394.     (This)->lpVtbl -> Release(This)
  395. #define IComponentUtil_GetTypeInfoCount(This,pctinfo)
  396.     (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo)
  397. #define IComponentUtil_GetTypeInfo(This,iTInfo,lcid,ppTInfo)
  398.     (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo)
  399. #define IComponentUtil_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)
  400.     (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)
  401. #define IComponentUtil_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)
  402.     (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)
  403. #define IComponentUtil_InstallComponent(This,bstrDLLFile,bstrTypelibFile,bstrProxyStubDLLFile)
  404.     (This)->lpVtbl -> InstallComponent(This,bstrDLLFile,bstrTypelibFile,bstrProxyStubDLLFile)
  405. #define IComponentUtil_ImportComponent(This,bstrCLSID)
  406.     (This)->lpVtbl -> ImportComponent(This,bstrCLSID)
  407. #define IComponentUtil_ImportComponentByName(This,bstrProgID)
  408.     (This)->lpVtbl -> ImportComponentByName(This,bstrProgID)
  409. #define IComponentUtil_GetCLSIDs(This,bstrDLLFile,bstrTypelibFile,aCLSIDs)
  410.     (This)->lpVtbl -> GetCLSIDs(This,bstrDLLFile,bstrTypelibFile,aCLSIDs)
  411. #endif /* COBJMACROS */
  412. #endif  /* C style interface */
  413. /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE IComponentUtil_InstallComponent_Proxy( 
  414.     IComponentUtil __RPC_FAR * This,
  415.     /* [in] */ BSTR bstrDLLFile,
  416.     /* [in] */ BSTR bstrTypelibFile,
  417.     /* [in] */ BSTR bstrProxyStubDLLFile);
  418. void __RPC_STUB IComponentUtil_InstallComponent_Stub(
  419.     IRpcStubBuffer *This,
  420.     IRpcChannelBuffer *_pRpcChannelBuffer,
  421.     PRPC_MESSAGE _pRpcMessage,
  422.     DWORD *_pdwStubPhase);
  423. /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE IComponentUtil_ImportComponent_Proxy( 
  424.     IComponentUtil __RPC_FAR * This,
  425.     /* [in] */ BSTR bstrCLSID);
  426. void __RPC_STUB IComponentUtil_ImportComponent_Stub(
  427.     IRpcStubBuffer *This,
  428.     IRpcChannelBuffer *_pRpcChannelBuffer,
  429.     PRPC_MESSAGE _pRpcMessage,
  430.     DWORD *_pdwStubPhase);
  431. /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE IComponentUtil_ImportComponentByName_Proxy( 
  432.     IComponentUtil __RPC_FAR * This,
  433.     /* [in] */ BSTR bstrProgID);
  434. void __RPC_STUB IComponentUtil_ImportComponentByName_Stub(
  435.     IRpcStubBuffer *This,
  436.     IRpcChannelBuffer *_pRpcChannelBuffer,
  437.     PRPC_MESSAGE _pRpcMessage,
  438.     DWORD *_pdwStubPhase);
  439. /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE IComponentUtil_GetCLSIDs_Proxy( 
  440.     IComponentUtil __RPC_FAR * This,
  441.     /* [in] */ BSTR bstrDLLFile,
  442.     /* [in] */ BSTR bstrTypelibFile,
  443.     /* [out] */ SAFEARRAY __RPC_FAR * __RPC_FAR *aCLSIDs);
  444. void __RPC_STUB IComponentUtil_GetCLSIDs_Stub(
  445.     IRpcStubBuffer *This,
  446.     IRpcChannelBuffer *_pRpcChannelBuffer,
  447.     PRPC_MESSAGE _pRpcMessage,
  448.     DWORD *_pdwStubPhase);
  449. #endif  /* __IComponentUtil_INTERFACE_DEFINED__ */
  450. #ifndef __IPackageUtil_INTERFACE_DEFINED__
  451. #define __IPackageUtil_INTERFACE_DEFINED__
  452. /* interface IPackageUtil */
  453. /* [unique][helpstring][dual][uuid][object] */ 
  454. EXTERN_C const IID IID_IPackageUtil;
  455. #if defined(__cplusplus) && !defined(CINTERFACE)
  456.     
  457.     MIDL_INTERFACE("6eb22874-8a19-11d0-81b6-00a0c9231c29")
  458.     IPackageUtil : public IDispatch
  459.     {
  460.     public:
  461.         virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE InstallPackage( 
  462.             /* [in] */ BSTR bstrPackageFile,
  463.             /* [in] */ BSTR bstrInstallPath,
  464.             /* [in] */ long lOptions) = 0;
  465.         
  466.         virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ExportPackage( 
  467.             /* [in] */ BSTR bstrPackageID,
  468.             /* [in] */ BSTR bstrPackageFile,
  469.             /* [in] */ long lOptions) = 0;
  470.         
  471.         virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ShutdownPackage( 
  472.             /* [in] */ BSTR bstrPackageID) = 0;
  473.         
  474.     };
  475.     
  476. #else  /* C style interface */
  477.     typedef struct IPackageUtilVtbl
  478.     {
  479.         BEGIN_INTERFACE
  480.         
  481.         HRESULT ( STDMETHODCALLTYPE __RPC_FAR *QueryInterface )( 
  482.             IPackageUtil __RPC_FAR * This,
  483.             /* [in] */ REFIID riid,
  484.             /* [iid_is][out] */ void __RPC_FAR *__RPC_FAR *ppvObject);
  485.         
  486.         ULONG ( STDMETHODCALLTYPE __RPC_FAR *AddRef )( 
  487.             IPackageUtil __RPC_FAR * This);
  488.         
  489.         ULONG ( STDMETHODCALLTYPE __RPC_FAR *Release )( 
  490.             IPackageUtil __RPC_FAR * This);
  491.         
  492.         HRESULT ( STDMETHODCALLTYPE __RPC_FAR *GetTypeInfoCount )( 
  493.             IPackageUtil __RPC_FAR * This,
  494.             /* [out] */ UINT __RPC_FAR *pctinfo);
  495.         
  496.         HRESULT ( STDMETHODCALLTYPE __RPC_FAR *GetTypeInfo )( 
  497.             IPackageUtil __RPC_FAR * This,
  498.             /* [in] */ UINT iTInfo,
  499.             /* [in] */ LCID lcid,
  500.             /* [out] */ ITypeInfo __RPC_FAR *__RPC_FAR *ppTInfo);
  501.         
  502.         HRESULT ( STDMETHODCALLTYPE __RPC_FAR *GetIDsOfNames )( 
  503.             IPackageUtil __RPC_FAR * This,
  504.             /* [in] */ REFIID riid,
  505.             /* [size_is][in] */ LPOLESTR __RPC_FAR *rgszNames,
  506.             /* [in] */ UINT cNames,
  507.             /* [in] */ LCID lcid,
  508.             /* [size_is][out] */ DISPID __RPC_FAR *rgDispId);
  509.         
  510.         /* [local] */ HRESULT ( STDMETHODCALLTYPE __RPC_FAR *Invoke )( 
  511.             IPackageUtil __RPC_FAR * This,
  512.             /* [in] */ DISPID dispIdMember,
  513.             /* [in] */ REFIID riid,
  514.             /* [in] */ LCID lcid,
  515.             /* [in] */ WORD wFlags,
  516.             /* [out][in] */ DISPPARAMS __RPC_FAR *pDispParams,
  517.             /* [out] */ VARIANT __RPC_FAR *pVarResult,
  518.             /* [out] */ EXCEPINFO __RPC_FAR *pExcepInfo,
  519.             /* [out] */ UINT __RPC_FAR *puArgErr);
  520.         
  521.         /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE __RPC_FAR *InstallPackage )( 
  522.             IPackageUtil __RPC_FAR * This,
  523.             /* [in] */ BSTR bstrPackageFile,
  524.             /* [in] */ BSTR bstrInstallPath,
  525.             /* [in] */ long lOptions);
  526.         
  527.         /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE __RPC_FAR *ExportPackage )( 
  528.             IPackageUtil __RPC_FAR * This,
  529.             /* [in] */ BSTR bstrPackageID,
  530.             /* [in] */ BSTR bstrPackageFile,
  531.             /* [in] */ long lOptions);
  532.         
  533.         /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE __RPC_FAR *ShutdownPackage )( 
  534.             IPackageUtil __RPC_FAR * This,
  535.             /* [in] */ BSTR bstrPackageID);
  536.         
  537.         END_INTERFACE
  538.     } IPackageUtilVtbl;
  539.     interface IPackageUtil
  540.     {
  541.         CONST_VTBL struct IPackageUtilVtbl __RPC_FAR *lpVtbl;
  542.     };
  543.     
  544. #ifdef COBJMACROS
  545. #define IPackageUtil_QueryInterface(This,riid,ppvObject)
  546.     (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  547. #define IPackageUtil_AddRef(This)
  548.     (This)->lpVtbl -> AddRef(This)
  549. #define IPackageUtil_Release(This)
  550.     (This)->lpVtbl -> Release(This)
  551. #define IPackageUtil_GetTypeInfoCount(This,pctinfo)
  552.     (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo)
  553. #define IPackageUtil_GetTypeInfo(This,iTInfo,lcid,ppTInfo)
  554.     (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo)
  555. #define IPackageUtil_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)
  556.     (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)
  557. #define IPackageUtil_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)
  558.     (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)
  559. #define IPackageUtil_InstallPackage(This,bstrPackageFile,bstrInstallPath,lOptions)
  560.     (This)->lpVtbl -> InstallPackage(This,bstrPackageFile,bstrInstallPath,lOptions)
  561. #define IPackageUtil_ExportPackage(This,bstrPackageID,bstrPackageFile,lOptions)
  562.     (This)->lpVtbl -> ExportPackage(This,bstrPackageID,bstrPackageFile,lOptions)
  563. #define IPackageUtil_ShutdownPackage(This,bstrPackageID)
  564.     (This)->lpVtbl -> ShutdownPackage(This,bstrPackageID)
  565. #endif /* COBJMACROS */
  566. #endif  /* C style interface */
  567. /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE IPackageUtil_InstallPackage_Proxy( 
  568.     IPackageUtil __RPC_FAR * This,
  569.     /* [in] */ BSTR bstrPackageFile,
  570.     /* [in] */ BSTR bstrInstallPath,
  571.     /* [in] */ long lOptions);
  572. void __RPC_STUB IPackageUtil_InstallPackage_Stub(
  573.     IRpcStubBuffer *This,
  574.     IRpcChannelBuffer *_pRpcChannelBuffer,
  575.     PRPC_MESSAGE _pRpcMessage,
  576.     DWORD *_pdwStubPhase);
  577. /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE IPackageUtil_ExportPackage_Proxy( 
  578.     IPackageUtil __RPC_FAR * This,
  579.     /* [in] */ BSTR bstrPackageID,
  580.     /* [in] */ BSTR bstrPackageFile,
  581.     /* [in] */ long lOptions);
  582. void __RPC_STUB IPackageUtil_ExportPackage_Stub(
  583.     IRpcStubBuffer *This,
  584.     IRpcChannelBuffer *_pRpcChannelBuffer,
  585.     PRPC_MESSAGE _pRpcMessage,
  586.     DWORD *_pdwStubPhase);
  587. /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE IPackageUtil_ShutdownPackage_Proxy( 
  588.     IPackageUtil __RPC_FAR * This,
  589.     /* [in] */ BSTR bstrPackageID);
  590. void __RPC_STUB IPackageUtil_ShutdownPackage_Stub(
  591.     IRpcStubBuffer *This,
  592.     IRpcChannelBuffer *_pRpcChannelBuffer,
  593.     PRPC_MESSAGE _pRpcMessage,
  594.     DWORD *_pdwStubPhase);
  595. #endif  /* __IPackageUtil_INTERFACE_DEFINED__ */
  596. #ifndef __IRemoteComponentUtil_INTERFACE_DEFINED__
  597. #define __IRemoteComponentUtil_INTERFACE_DEFINED__
  598. /* interface IRemoteComponentUtil */
  599. /* [unique][helpstring][dual][uuid][object] */ 
  600. EXTERN_C const IID IID_IRemoteComponentUtil;
  601. #if defined(__cplusplus) && !defined(CINTERFACE)
  602.     
  603.     MIDL_INTERFACE("6eb22875-8a19-11d0-81b6-00a0c9231c29")
  604.     IRemoteComponentUtil : public IDispatch
  605.     {
  606.     public:
  607.         virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE InstallRemoteComponent( 
  608.             /* [in] */ BSTR bstrServer,
  609.             /* [in] */ BSTR bstrPackageID,
  610.             /* [in] */ BSTR bstrCLSID) = 0;
  611.         
  612.         virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE InstallRemoteComponentByName( 
  613.             /* [in] */ BSTR bstrServer,
  614.             /* [in] */ BSTR bstrPackageName,
  615.             /* [in] */ BSTR bstrProgID) = 0;
  616.         
  617.     };
  618.     
  619. #else  /* C style interface */
  620.     typedef struct IRemoteComponentUtilVtbl
  621.     {
  622.         BEGIN_INTERFACE
  623.         
  624.         HRESULT ( STDMETHODCALLTYPE __RPC_FAR *QueryInterface )( 
  625.             IRemoteComponentUtil __RPC_FAR * This,
  626.             /* [in] */ REFIID riid,
  627.             /* [iid_is][out] */ void __RPC_FAR *__RPC_FAR *ppvObject);
  628.         
  629.         ULONG ( STDMETHODCALLTYPE __RPC_FAR *AddRef )( 
  630.             IRemoteComponentUtil __RPC_FAR * This);
  631.         
  632.         ULONG ( STDMETHODCALLTYPE __RPC_FAR *Release )( 
  633.             IRemoteComponentUtil __RPC_FAR * This);
  634.         
  635.         HRESULT ( STDMETHODCALLTYPE __RPC_FAR *GetTypeInfoCount )( 
  636.             IRemoteComponentUtil __RPC_FAR * This,
  637.             /* [out] */ UINT __RPC_FAR *pctinfo);
  638.         
  639.         HRESULT ( STDMETHODCALLTYPE __RPC_FAR *GetTypeInfo )( 
  640.             IRemoteComponentUtil __RPC_FAR * This,
  641.             /* [in] */ UINT iTInfo,
  642.             /* [in] */ LCID lcid,
  643.             /* [out] */ ITypeInfo __RPC_FAR *__RPC_FAR *ppTInfo);
  644.         
  645.         HRESULT ( STDMETHODCALLTYPE __RPC_FAR *GetIDsOfNames )( 
  646.             IRemoteComponentUtil __RPC_FAR * This,
  647.             /* [in] */ REFIID riid,
  648.             /* [size_is][in] */ LPOLESTR __RPC_FAR *rgszNames,
  649.             /* [in] */ UINT cNames,
  650.             /* [in] */ LCID lcid,
  651.             /* [size_is][out] */ DISPID __RPC_FAR *rgDispId);
  652.         
  653.         /* [local] */ HRESULT ( STDMETHODCALLTYPE __RPC_FAR *Invoke )( 
  654.             IRemoteComponentUtil __RPC_FAR * This,
  655.             /* [in] */ DISPID dispIdMember,
  656.             /* [in] */ REFIID riid,
  657.             /* [in] */ LCID lcid,
  658.             /* [in] */ WORD wFlags,
  659.             /* [out][in] */ DISPPARAMS __RPC_FAR *pDispParams,
  660.             /* [out] */ VARIANT __RPC_FAR *pVarResult,
  661.             /* [out] */ EXCEPINFO __RPC_FAR *pExcepInfo,
  662.             /* [out] */ UINT __RPC_FAR *puArgErr);
  663.         
  664.         /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE __RPC_FAR *InstallRemoteComponent )( 
  665.             IRemoteComponentUtil __RPC_FAR * This,
  666.             /* [in] */ BSTR bstrServer,
  667.             /* [in] */ BSTR bstrPackageID,
  668.             /* [in] */ BSTR bstrCLSID);
  669.         
  670.         /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE __RPC_FAR *InstallRemoteComponentByName )( 
  671.             IRemoteComponentUtil __RPC_FAR * This,
  672.             /* [in] */ BSTR bstrServer,
  673.             /* [in] */ BSTR bstrPackageName,
  674.             /* [in] */ BSTR bstrProgID);
  675.         
  676.         END_INTERFACE
  677.     } IRemoteComponentUtilVtbl;
  678.     interface IRemoteComponentUtil
  679.     {
  680.         CONST_VTBL struct IRemoteComponentUtilVtbl __RPC_FAR *lpVtbl;
  681.     };
  682.     
  683. #ifdef COBJMACROS
  684. #define IRemoteComponentUtil_QueryInterface(This,riid,ppvObject)
  685.     (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  686. #define IRemoteComponentUtil_AddRef(This)
  687.     (This)->lpVtbl -> AddRef(This)
  688. #define IRemoteComponentUtil_Release(This)
  689.     (This)->lpVtbl -> Release(This)
  690. #define IRemoteComponentUtil_GetTypeInfoCount(This,pctinfo)
  691.     (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo)
  692. #define IRemoteComponentUtil_GetTypeInfo(This,iTInfo,lcid,ppTInfo)
  693.     (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo)
  694. #define IRemoteComponentUtil_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)
  695.     (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)
  696. #define IRemoteComponentUtil_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)
  697.     (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)
  698. #define IRemoteComponentUtil_InstallRemoteComponent(This,bstrServer,bstrPackageID,bstrCLSID)
  699.     (This)->lpVtbl -> InstallRemoteComponent(This,bstrServer,bstrPackageID,bstrCLSID)
  700. #define IRemoteComponentUtil_InstallRemoteComponentByName(This,bstrServer,bstrPackageName,bstrProgID)
  701.     (This)->lpVtbl -> InstallRemoteComponentByName(This,bstrServer,bstrPackageName,bstrProgID)
  702. #endif /* COBJMACROS */
  703. #endif  /* C style interface */
  704. /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE IRemoteComponentUtil_InstallRemoteComponent_Proxy( 
  705.     IRemoteComponentUtil __RPC_FAR * This,
  706.     /* [in] */ BSTR bstrServer,
  707.     /* [in] */ BSTR bstrPackageID,
  708.     /* [in] */ BSTR bstrCLSID);
  709. void __RPC_STUB IRemoteComponentUtil_InstallRemoteComponent_Stub(
  710.     IRpcStubBuffer *This,
  711.     IRpcChannelBuffer *_pRpcChannelBuffer,
  712.     PRPC_MESSAGE _pRpcMessage,
  713.     DWORD *_pdwStubPhase);
  714. /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE IRemoteComponentUtil_InstallRemoteComponentByName_Proxy( 
  715.     IRemoteComponentUtil __RPC_FAR * This,
  716.     /* [in] */ BSTR bstrServer,
  717.     /* [in] */ BSTR bstrPackageName,
  718.     /* [in] */ BSTR bstrProgID);
  719. void __RPC_STUB IRemoteComponentUtil_InstallRemoteComponentByName_Stub(
  720.     IRpcStubBuffer *This,
  721.     IRpcChannelBuffer *_pRpcChannelBuffer,
  722.     PRPC_MESSAGE _pRpcMessage,
  723.     DWORD *_pdwStubPhase);
  724. #endif  /* __IRemoteComponentUtil_INTERFACE_DEFINED__ */
  725. #ifndef __IRoleAssociationUtil_INTERFACE_DEFINED__
  726. #define __IRoleAssociationUtil_INTERFACE_DEFINED__
  727. /* interface IRoleAssociationUtil */
  728. /* [unique][helpstring][dual][uuid][object] */ 
  729. EXTERN_C const IID IID_IRoleAssociationUtil;
  730. #if defined(__cplusplus) && !defined(CINTERFACE)
  731.     
  732.     MIDL_INTERFACE("6eb22876-8a19-11d0-81b6-00a0c9231c29")
  733.     IRoleAssociationUtil : public IDispatch
  734.     {
  735.     public:
  736.         virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE AssociateRole( 
  737.             /* [in] */ BSTR bstrRoleID) = 0;
  738.         
  739.         virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE AssociateRoleByName( 
  740.             /* [in] */ BSTR bstrRoleName) = 0;
  741.         
  742.     };
  743.     
  744. #else  /* C style interface */
  745.     typedef struct IRoleAssociationUtilVtbl
  746.     {
  747.         BEGIN_INTERFACE
  748.         
  749.         HRESULT ( STDMETHODCALLTYPE __RPC_FAR *QueryInterface )( 
  750.             IRoleAssociationUtil __RPC_FAR * This,
  751.             /* [in] */ REFIID riid,
  752.             /* [iid_is][out] */ void __RPC_FAR *__RPC_FAR *ppvObject);
  753.         
  754.         ULONG ( STDMETHODCALLTYPE __RPC_FAR *AddRef )( 
  755.             IRoleAssociationUtil __RPC_FAR * This);
  756.         
  757.         ULONG ( STDMETHODCALLTYPE __RPC_FAR *Release )( 
  758.             IRoleAssociationUtil __RPC_FAR * This);
  759.         
  760.         HRESULT ( STDMETHODCALLTYPE __RPC_FAR *GetTypeInfoCount )( 
  761.             IRoleAssociationUtil __RPC_FAR * This,
  762.             /* [out] */ UINT __RPC_FAR *pctinfo);
  763.         
  764.         HRESULT ( STDMETHODCALLTYPE __RPC_FAR *GetTypeInfo )( 
  765.             IRoleAssociationUtil __RPC_FAR * This,
  766.             /* [in] */ UINT iTInfo,
  767.             /* [in] */ LCID lcid,
  768.             /* [out] */ ITypeInfo __RPC_FAR *__RPC_FAR *ppTInfo);
  769.         
  770.         HRESULT ( STDMETHODCALLTYPE __RPC_FAR *GetIDsOfNames )( 
  771.             IRoleAssociationUtil __RPC_FAR * This,
  772.             /* [in] */ REFIID riid,
  773.             /* [size_is][in] */ LPOLESTR __RPC_FAR *rgszNames,
  774.             /* [in] */ UINT cNames,
  775.             /* [in] */ LCID lcid,
  776.             /* [size_is][out] */ DISPID __RPC_FAR *rgDispId);
  777.         
  778.         /* [local] */ HRESULT ( STDMETHODCALLTYPE __RPC_FAR *Invoke )( 
  779.             IRoleAssociationUtil __RPC_FAR * This,
  780.             /* [in] */ DISPID dispIdMember,
  781.             /* [in] */ REFIID riid,
  782.             /* [in] */ LCID lcid,
  783.             /* [in] */ WORD wFlags,
  784.             /* [out][in] */ DISPPARAMS __RPC_FAR *pDispParams,
  785.             /* [out] */ VARIANT __RPC_FAR *pVarResult,
  786.             /* [out] */ EXCEPINFO __RPC_FAR *pExcepInfo,
  787.             /* [out] */ UINT __RPC_FAR *puArgErr);
  788.         
  789.         /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE __RPC_FAR *AssociateRole )( 
  790.             IRoleAssociationUtil __RPC_FAR * This,
  791.             /* [in] */ BSTR bstrRoleID);
  792.         
  793.         /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE __RPC_FAR *AssociateRoleByName )( 
  794.             IRoleAssociationUtil __RPC_FAR * This,
  795.             /* [in] */ BSTR bstrRoleName);
  796.         
  797.         END_INTERFACE
  798.     } IRoleAssociationUtilVtbl;
  799.     interface IRoleAssociationUtil
  800.     {
  801.         CONST_VTBL struct IRoleAssociationUtilVtbl __RPC_FAR *lpVtbl;
  802.     };
  803.     
  804. #ifdef COBJMACROS
  805. #define IRoleAssociationUtil_QueryInterface(This,riid,ppvObject)
  806.     (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  807. #define IRoleAssociationUtil_AddRef(This)
  808.     (This)->lpVtbl -> AddRef(This)
  809. #define IRoleAssociationUtil_Release(This)
  810.     (This)->lpVtbl -> Release(This)
  811. #define IRoleAssociationUtil_GetTypeInfoCount(This,pctinfo)
  812.     (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo)
  813. #define IRoleAssociationUtil_GetTypeInfo(This,iTInfo,lcid,ppTInfo)
  814.     (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo)
  815. #define IRoleAssociationUtil_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)
  816.     (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)
  817. #define IRoleAssociationUtil_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)
  818.     (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)
  819. #define IRoleAssociationUtil_AssociateRole(This,bstrRoleID)
  820.     (This)->lpVtbl -> AssociateRole(This,bstrRoleID)
  821. #define IRoleAssociationUtil_AssociateRoleByName(This,bstrRoleName)
  822.     (This)->lpVtbl -> AssociateRoleByName(This,bstrRoleName)
  823. #endif /* COBJMACROS */
  824. #endif  /* C style interface */
  825. /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE IRoleAssociationUtil_AssociateRole_Proxy( 
  826.     IRoleAssociationUtil __RPC_FAR * This,
  827.     /* [in] */ BSTR bstrRoleID);
  828. void __RPC_STUB IRoleAssociationUtil_AssociateRole_Stub(
  829.     IRpcStubBuffer *This,
  830.     IRpcChannelBuffer *_pRpcChannelBuffer,
  831.     PRPC_MESSAGE _pRpcMessage,
  832.     DWORD *_pdwStubPhase);
  833. /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE IRoleAssociationUtil_AssociateRoleByName_Proxy( 
  834.     IRoleAssociationUtil __RPC_FAR * This,
  835.     /* [in] */ BSTR bstrRoleName);
  836. void __RPC_STUB IRoleAssociationUtil_AssociateRoleByName_Stub(
  837.     IRpcStubBuffer *This,
  838.     IRpcChannelBuffer *_pRpcChannelBuffer,
  839.     PRPC_MESSAGE _pRpcMessage,
  840.     DWORD *_pdwStubPhase);
  841. #endif  /* __IRoleAssociationUtil_INTERFACE_DEFINED__ */
  842. #ifndef __MTSAdmin_LIBRARY_DEFINED__
  843. #define __MTSAdmin_LIBRARY_DEFINED__
  844. /* library MTSAdmin */
  845. /* [helpstring][version][uuid] */ 
  846. typedef /* [public][helpstring] */ 
  847. enum __MIDL___MIDL_itf_mtsadmin_0123_0001
  848.     { mtsInstallUsers = 1
  849.     } MTSPackageInstallOptions;
  850. typedef /* [public][helpstring] */ 
  851. enum __MIDL___MIDL_itf_mtsadmin_0123_0002
  852.     { mtsExportUsers = 1
  853.     } MTSPackageExportOptions;
  854. typedef /* [public][helpstring] */ 
  855. enum __MIDL___MIDL_itf_mtsadmin_0123_0003
  856.     { mtsErrObjectErrors = ( HRESULT  )0x80110401L,
  857. mtsErrObjectInvalid = ( HRESULT  )0x80110402L,
  858. mtsErrKeyMissing = ( HRESULT  )0x80110403L,
  859. mtsErrAlreadyInstalled = ( HRESULT  )0x80110404L,
  860. mtsErrDownloadFailed = 0x80110405,
  861. mtsErrPDFWriteFail = ( HRESULT  )0x80110407L,
  862. mtsErrPDFReadFail = ( HRESULT  )0x80110408L,
  863. mtsErrPDFVersion = ( HRESULT  )0x80110409L,
  864. mtsErrBadPath = ( HRESULT  )0x8011040aL,
  865. mtsErrPackageExists = ( HRESULT  )0x8011040bL,
  866. mtsErrRoleExists = ( HRESULT  )0x8011040cL,
  867. mtsErrCantCopyFile = ( HRESULT  )0x8011040dL,
  868. mtsErrNoTypeLib = 0x8011040e,
  869. mtsErrNoUser = ( HRESULT  )0x8011040fL,
  870. mtsErrInvalidUserids = ( HRESULT  )0x80110410L,
  871. mtsErrNoRegistryCLSID = ( HRESULT  )0x80110411L,
  872. mtsErrBadRegistryProgID = ( HRESULT  )0x80110412L,
  873. mtsErrAuthenticationLevel = ( HRESULT  )0x80110413L,
  874. mtsErrUserPasswdNotValid = ( HRESULT  )0x80110414L,
  875. mtsErrNoRegistryRead = 0x80110415,
  876. mtsErrNoRegistryWrite = 0x80110416,
  877. mtsErrNoRegistryRepair = 0x80110417,
  878. mtsErrCLSIDOrIIDMismatch = ( HRESULT  )0x80110418L,
  879. mtsErrRemoteInterface = ( HRESULT  )0x80110419L,
  880. mtsErrDllRegisterServer = ( HRESULT  )0x8011041aL,
  881. mtsErrNoServerShare = ( HRESULT  )0x8011041bL,
  882. mtsErrNoAccessToUNC = 0x8011041c,
  883. mtsErrDllLoadFailed = ( HRESULT  )0x8011041dL,
  884. mtsErrBadRegistryLibID = ( HRESULT  )0x8011041eL,
  885. mtsErrPackDirNotFound = ( HRESULT  )0x8011041fL,
  886. mtsErrTreatAs = 0x80110420,
  887. mtsErrBadForward = 0x80110421,
  888. mtsErrBadIID = 0x80110422,
  889. mtsErrRegistrarFailed = ( HRESULT  )0x80110423L,
  890. mtsErrCompFileDoesNotExist = ( HRESULT  )0x80110424L,
  891. mtsErrCompFileLoadDLLFail = ( HRESULT  )0x80110425L,
  892. mtsErrCompFileGetClassObj = ( HRESULT  )0x80110426L,
  893. mtsErrCompFileClassNotAvail = ( HRESULT  )0x80110427L,
  894. mtsErrCompFileBadTLB = ( HRESULT  )0x80110428L,
  895. mtsErrCompFileNotInstallable = ( HRESULT  )0x80110429L,
  896. mtsErrNotChangeable = ( HRESULT  )0x8011042aL,
  897. mtsErrNotDeletable = ( HRESULT  )0x8011042bL,
  898. mtsErrSession = ( HRESULT  )0x8011042cL,
  899. mtsErrCompMoveLocked = ( HRESULT  )0x8011042dL,
  900. mtsErrCompMoveBadDest = ( HRESULT  )0x8011042eL,
  901. mtsErrRegisterTLB = ( HRESULT  )0x80110430L,
  902. mtsErrSystemPack = ( HRESULT  )0x80110433L,
  903. mtsErrCompFileNoRegistrar = ( HRESULT  )0x80110434L,
  904. mtsErrCoReqCompInstalled = ( HRESULT  )0x80110435L,
  905. mtsErrPropSaveFailed = ( HRESULT  )0x80110437L,
  906. mtsErrObjectExists = ( HRESULT  )0x80110438L,
  907. mtsErrRegFileCorrupt = ( HRESULT  )0x8011043bL,
  908. mtsErrPropertyOverflow = ( HRESULT  )0x8011043cL,
  909. mtsErrNotInRegistry = ( HRESULT  )0x8011043eL,
  910. mtsErrApplidMatchesClsid = ( HRESULT  )0x80110446L,
  911. mtsErrRoleDoesNotExist = ( HRESULT  )0x80110447L,
  912. mtsErrObjectParentMissing = ( HRESULT  )0x80110808L,
  913. mtsErrObjectDoesNotExist = ( HRESULT  )0x80110809L,
  914. mtsErrCanNotExportAppProxy = 0x8011044a,
  915. mtsErrCanNotExportSystemPack = 0x8011044c
  916.     } ;
  917. #define E_MTS_OBJECTERRORS  mtsErrObjectErrors 
  918. #define E_MTS_OBJECTINVALID  mtsErrObjectInvalid 
  919. #define E_MTS_KEYMISSING  mtsErrKeyMissing 
  920. #define E_MTS_ALREADYINSTALLED  mtsErrAlreadyInstalled 
  921. #define E_MTS_DOWNLOADFAILED  mtsErrDownloadFailed 
  922. #define E_MTS_PDFWRITEFAIL  mtsErrPDFWriteFail 
  923. #define E_MTS_PDFREADFAIL  mtsErrPDFReadFail 
  924. #define E_MTS_PDFVERSION  mtsErrPDFVersion 
  925. #define E_MTS_BADPATH  mtsErrBadPath 
  926. #define E_MTS_PACKAGEEXISTS  mtsErrPackageExists 
  927. #define E_MTS_ROLEEXISTS  mtsErrRoleExists 
  928. #define E_MTS_CANTCOPYFILE  mtsErrCantCopyFile 
  929. #define E_MTS_NOTYPELIB  mtsErrNoTypeLib 
  930. #define E_MTS_NOUSER  mtsErrNoUser 
  931. #define E_MTS_INVALIDUSERIDS  mtsErrInvalidUserids 
  932. #define E_MTS_NOREGISTRYCLSID  mtsErrNoRegistryCLSID 
  933. #define E_MTS_BADREGISTRYPROGID  mtsErrBadRegistryProgID 
  934. #define E_MTS_AUTHENTICATIONLEVEL  mtsErrAuthenticationLevel 
  935. #define E_MTS_USERPASSWDNOTVALID  mtsErrUserPasswdNotValid 
  936. #define E_MTS_NOREGISTRYREAD  mtsErrNoRegistryRead 
  937. #define E_MTS_NOREGISTRYWRITE  mtsErrNoRegistryWrite 
  938. #define E_MTS_NOREGISTRYREPAIR  mtsErrNoRegistryRepair 
  939. #define E_MTS_CLSIDORIIDMISMATCH  mtsErrCLSIDOrIIDMismatch 
  940. #define E_MTS_REMOTEINTERFACE  mtsErrRemoteInterface 
  941. #define E_MTS_DLLREGISTERSERVER  mtsErrDllRegisterServer 
  942. #define E_MTS_NOSERVERSHARE  mtsErrNoServerShare 
  943. #define E_MTS_NOACCESSTOUNC  mtsErrNoAccessToUNC 
  944. #define E_MTS_DLLLOADFAILED  mtsErrDllLoadFailed 
  945. #define E_MTS_BADREGISTRYLIBID  mtsErrBadRegistryLibID 
  946. #define E_MTS_PACKDIRNOTFOUND  mtsErrPackDirNotFound 
  947. #define E_MTS_TREATAS  mtsErrTreatAs 
  948. #define E_MTS_BADFORWARD  mtsErrBadForward 
  949. #define E_MTS_BADIID  mtsErrBadIID 
  950. #define E_MTS_REGISTRARFAILED  mtsErrRegistrarFailed 
  951. #define E_MTS_COMPFILE_DOESNOTEXIST  mtsErrCompFileDoesNotExist 
  952. #define E_MTS_COMPFILE_LOADDLLFAIL  mtsErrCompFileLoadDLLFail 
  953. #define E_MTS_COMPFILE_GETCLASSOBJ  mtsErrCompFileGetClassObj 
  954. #define E_MTS_COMPFILE_CLASSNOTAVAIL  mtsErrCompFileClassNotAvail 
  955. #define E_MTS_COMPFILE_BADTLB  mtsErrCompFileBadTLB 
  956. #define E_MTS_COMPFILE_NOTINSTALLABLE  mtsErrCompFileNotInstallable 
  957. #define E_MTS_NOTCHANGEABLE  mtsErrNotChangeable 
  958. #define E_MTS_NOTDELETEABLE  mtsErrNotDeletable 
  959. #define E_MTS_SESSION  mtsErrSession 
  960. #define E_MTS_COMP_MOVE_LOCKED  mtsErrCompMoveLocked 
  961. #define E_MTS_COMP_MOVE_BAD_DEST  mtsErrCompMoveBadDest 
  962. #define E_MTS_REGISTERTLB  mtsErrRegisterTLB 
  963. #define E_MTS_SYSTEMPACK  mtsErrSystemPack 
  964. #define E_MTS_COMPFILE_NOREGISTRAR  mtsErrCompFileNoRegistrar 
  965. #define E_MTS_COREQCOMPINSTALLED  mtsErrCoReqCompInstalled 
  966. #define E_MTS_PROPERTYSAVEFAILED  mtsErrPropSaveFailed 
  967. #define E_MTS_OBJECTEXISTS  mtsErrObjectExists 
  968. #define E_MTS_REGFILE_CORRUPT  mtsErrRegFileCorrupt 
  969. #define E_MTS_PROPERTY_OVERFLOW  mtsErrPropertyOverflow 
  970. #define E_MTS_NOTINREGISTRY  mtsErrNotInRegistry 
  971. #define E_MTS_APPLID_MATCHES_CLSID  mtsErrApplidMatchesClsid 
  972. #define E_MTS_ROLE_DOES_NOT_EXIST  mtsErrRoleDoesNotExist 
  973. #define E_MTS_OBJECT_PARENT_MISSING  mtsErrObjectParentMissing 
  974. #define E_MTS_OBJECT_DOES_NOT_EXIST  mtsErrObjectDoesNotExist 
  975. #define E_MTS_CAN_NOT_EXPORT_APP_PROXY   mtsErrCanNotExportAppProxy
  976. #define E_MTS_CAN_NOT_EXPORT_SYSTEM_PACK   mtsErrCanNotExportSystemPack
  977. EXTERN_C const IID LIBID_MTSAdmin;
  978. EXTERN_C const CLSID CLSID_Catalog;
  979. #ifdef __cplusplus
  980. class DECLSPEC_UUID("6eb22881-8a19-11d0-81b6-00a0c9231c29")
  981. Catalog;
  982. #endif
  983. EXTERN_C const CLSID CLSID_CatalogObject;
  984. #ifdef __cplusplus
  985. class DECLSPEC_UUID("6eb22882-8a19-11d0-81b6-00a0c9231c29")
  986. CatalogObject;
  987. #endif
  988. EXTERN_C const CLSID CLSID_CatalogCollection;
  989. #ifdef __cplusplus
  990. class DECLSPEC_UUID("6eb22883-8a19-11d0-81b6-00a0c9231c29")
  991. CatalogCollection;
  992. #endif
  993. EXTERN_C const CLSID CLSID_ComponentUtil;
  994. #ifdef __cplusplus
  995. class DECLSPEC_UUID("6eb22884-8a19-11d0-81b6-00a0c9231c29")
  996. ComponentUtil;
  997. #endif
  998. EXTERN_C const CLSID CLSID_PackageUtil;
  999. #ifdef __cplusplus
  1000. class DECLSPEC_UUID("6eb22885-8a19-11d0-81b6-00a0c9231c29")
  1001. PackageUtil;
  1002. #endif
  1003. EXTERN_C const CLSID CLSID_RemoteComponentUtil;
  1004. #ifdef __cplusplus
  1005. class DECLSPEC_UUID("6eb22886-8a19-11d0-81b6-00a0c9231c29")
  1006. RemoteComponentUtil;
  1007. #endif
  1008. EXTERN_C const CLSID CLSID_RoleAssociationUtil;
  1009. #ifdef __cplusplus
  1010. class DECLSPEC_UUID("6eb22887-8a19-11d0-81b6-00a0c9231c29")
  1011. RoleAssociationUtil;
  1012. #endif
  1013. #endif /* __MTSAdmin_LIBRARY_DEFINED__ */
  1014. /* Additional Prototypes for ALL interfaces */
  1015. unsigned long             __RPC_USER  BSTR_UserSize(     unsigned long __RPC_FAR *, unsigned long            , BSTR __RPC_FAR * ); 
  1016. unsigned char __RPC_FAR * __RPC_USER  BSTR_UserMarshal(  unsigned long __RPC_FAR *, unsigned char __RPC_FAR *, BSTR __RPC_FAR * ); 
  1017. unsigned char __RPC_FAR * __RPC_USER  BSTR_UserUnmarshal(unsigned long __RPC_FAR *, unsigned char __RPC_FAR *, BSTR __RPC_FAR * ); 
  1018. void                      __RPC_USER  BSTR_UserFree(     unsigned long __RPC_FAR *, BSTR __RPC_FAR * ); 
  1019. unsigned long             __RPC_USER  LPSAFEARRAY_UserSize(     unsigned long __RPC_FAR *, unsigned long            , LPSAFEARRAY __RPC_FAR * ); 
  1020. unsigned char __RPC_FAR * __RPC_USER  LPSAFEARRAY_UserMarshal(  unsigned long __RPC_FAR *, unsigned char __RPC_FAR *, LPSAFEARRAY __RPC_FAR * ); 
  1021. unsigned char __RPC_FAR * __RPC_USER  LPSAFEARRAY_UserUnmarshal(unsigned long __RPC_FAR *, unsigned char __RPC_FAR *, LPSAFEARRAY __RPC_FAR * ); 
  1022. void                      __RPC_USER  LPSAFEARRAY_UserFree(     unsigned long __RPC_FAR *, LPSAFEARRAY __RPC_FAR * ); 
  1023. /* end of Additional Prototypes */
  1024. #ifdef __cplusplus
  1025. }
  1026. #endif
  1027. #endif