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

模拟服务器

开发平台:

C/C++

  1.         
  2.         HRESULT ( STDMETHODCALLTYPE *QueryInterface )( 
  3.             IEnumNetSharingEveryConnection * This,
  4.             /* [in] */ REFIID riid,
  5.             /* [iid_is][out] */ void **ppvObject);
  6.         
  7.         ULONG ( STDMETHODCALLTYPE *AddRef )( 
  8.             IEnumNetSharingEveryConnection * This);
  9.         
  10.         ULONG ( STDMETHODCALLTYPE *Release )( 
  11.             IEnumNetSharingEveryConnection * This);
  12.         
  13.         HRESULT ( STDMETHODCALLTYPE *Next )( 
  14.             IEnumNetSharingEveryConnection * This,
  15.             /* [in] */ ULONG celt,
  16.             /* [length_is][size_is][out] */ VARIANT *rgVar,
  17.             /* [out] */ ULONG *pceltFetched);
  18.         
  19.         HRESULT ( STDMETHODCALLTYPE *Skip )( 
  20.             IEnumNetSharingEveryConnection * This,
  21.             /* [in] */ ULONG celt);
  22.         
  23.         HRESULT ( STDMETHODCALLTYPE *Reset )( 
  24.             IEnumNetSharingEveryConnection * This);
  25.         
  26.         HRESULT ( STDMETHODCALLTYPE *Clone )( 
  27.             IEnumNetSharingEveryConnection * This,
  28.             /* [out] */ IEnumNetSharingEveryConnection **ppenum);
  29.         
  30.         END_INTERFACE
  31.     } IEnumNetSharingEveryConnectionVtbl;
  32.     interface IEnumNetSharingEveryConnection
  33.     {
  34.         CONST_VTBL struct IEnumNetSharingEveryConnectionVtbl *lpVtbl;
  35.     };
  36.     
  37. #ifdef COBJMACROS
  38. #define IEnumNetSharingEveryConnection_QueryInterface(This,riid,ppvObject)
  39.     (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  40. #define IEnumNetSharingEveryConnection_AddRef(This)
  41.     (This)->lpVtbl -> AddRef(This)
  42. #define IEnumNetSharingEveryConnection_Release(This)
  43.     (This)->lpVtbl -> Release(This)
  44. #define IEnumNetSharingEveryConnection_Next(This,celt,rgVar,pceltFetched)
  45.     (This)->lpVtbl -> Next(This,celt,rgVar,pceltFetched)
  46. #define IEnumNetSharingEveryConnection_Skip(This,celt)
  47.     (This)->lpVtbl -> Skip(This,celt)
  48. #define IEnumNetSharingEveryConnection_Reset(This)
  49.     (This)->lpVtbl -> Reset(This)
  50. #define IEnumNetSharingEveryConnection_Clone(This,ppenum)
  51.     (This)->lpVtbl -> Clone(This,ppenum)
  52. #endif /* COBJMACROS */
  53. #endif  /* C style interface */
  54. HRESULT STDMETHODCALLTYPE IEnumNetSharingEveryConnection_Next_Proxy( 
  55.     IEnumNetSharingEveryConnection * This,
  56.     /* [in] */ ULONG celt,
  57.     /* [length_is][size_is][out] */ VARIANT *rgVar,
  58.     /* [out] */ ULONG *pceltFetched);
  59. void __RPC_STUB IEnumNetSharingEveryConnection_Next_Stub(
  60.     IRpcStubBuffer *This,
  61.     IRpcChannelBuffer *_pRpcChannelBuffer,
  62.     PRPC_MESSAGE _pRpcMessage,
  63.     DWORD *_pdwStubPhase);
  64. HRESULT STDMETHODCALLTYPE IEnumNetSharingEveryConnection_Skip_Proxy( 
  65.     IEnumNetSharingEveryConnection * This,
  66.     /* [in] */ ULONG celt);
  67. void __RPC_STUB IEnumNetSharingEveryConnection_Skip_Stub(
  68.     IRpcStubBuffer *This,
  69.     IRpcChannelBuffer *_pRpcChannelBuffer,
  70.     PRPC_MESSAGE _pRpcMessage,
  71.     DWORD *_pdwStubPhase);
  72. HRESULT STDMETHODCALLTYPE IEnumNetSharingEveryConnection_Reset_Proxy( 
  73.     IEnumNetSharingEveryConnection * This);
  74. void __RPC_STUB IEnumNetSharingEveryConnection_Reset_Stub(
  75.     IRpcStubBuffer *This,
  76.     IRpcChannelBuffer *_pRpcChannelBuffer,
  77.     PRPC_MESSAGE _pRpcMessage,
  78.     DWORD *_pdwStubPhase);
  79. HRESULT STDMETHODCALLTYPE IEnumNetSharingEveryConnection_Clone_Proxy( 
  80.     IEnumNetSharingEveryConnection * This,
  81.     /* [out] */ IEnumNetSharingEveryConnection **ppenum);
  82. void __RPC_STUB IEnumNetSharingEveryConnection_Clone_Stub(
  83.     IRpcStubBuffer *This,
  84.     IRpcChannelBuffer *_pRpcChannelBuffer,
  85.     PRPC_MESSAGE _pRpcMessage,
  86.     DWORD *_pdwStubPhase);
  87. #endif  /* __IEnumNetSharingEveryConnection_INTERFACE_DEFINED__ */
  88. #ifndef __IEnumNetSharingPublicConnection_INTERFACE_DEFINED__
  89. #define __IEnumNetSharingPublicConnection_INTERFACE_DEFINED__
  90. /* interface IEnumNetSharingPublicConnection */
  91. /* [unique][uuid][object] */ 
  92. EXTERN_C const IID IID_IEnumNetSharingPublicConnection;
  93. #if defined(__cplusplus) && !defined(CINTERFACE)
  94.     
  95.     MIDL_INTERFACE("C08956B4-1CD3-11D1-B1C5-00805FC1270E")
  96.     IEnumNetSharingPublicConnection : public IUnknown
  97.     {
  98.     public:
  99.         virtual HRESULT STDMETHODCALLTYPE Next( 
  100.             /* [in] */ ULONG celt,
  101.             /* [length_is][size_is][out] */ VARIANT *rgVar,
  102.             /* [out] */ ULONG *pceltFetched) = 0;
  103.         
  104.         virtual HRESULT STDMETHODCALLTYPE Skip( 
  105.             /* [in] */ ULONG celt) = 0;
  106.         
  107.         virtual HRESULT STDMETHODCALLTYPE Reset( void) = 0;
  108.         
  109.         virtual HRESULT STDMETHODCALLTYPE Clone( 
  110.             /* [out] */ IEnumNetSharingPublicConnection **ppenum) = 0;
  111.         
  112.     };
  113.     
  114. #else  /* C style interface */
  115.     typedef struct IEnumNetSharingPublicConnectionVtbl
  116.     {
  117.         BEGIN_INTERFACE
  118.         
  119.         HRESULT ( STDMETHODCALLTYPE *QueryInterface )( 
  120.             IEnumNetSharingPublicConnection * This,
  121.             /* [in] */ REFIID riid,
  122.             /* [iid_is][out] */ void **ppvObject);
  123.         
  124.         ULONG ( STDMETHODCALLTYPE *AddRef )( 
  125.             IEnumNetSharingPublicConnection * This);
  126.         
  127.         ULONG ( STDMETHODCALLTYPE *Release )( 
  128.             IEnumNetSharingPublicConnection * This);
  129.         
  130.         HRESULT ( STDMETHODCALLTYPE *Next )( 
  131.             IEnumNetSharingPublicConnection * This,
  132.             /* [in] */ ULONG celt,
  133.             /* [length_is][size_is][out] */ VARIANT *rgVar,
  134.             /* [out] */ ULONG *pceltFetched);
  135.         
  136.         HRESULT ( STDMETHODCALLTYPE *Skip )( 
  137.             IEnumNetSharingPublicConnection * This,
  138.             /* [in] */ ULONG celt);
  139.         
  140.         HRESULT ( STDMETHODCALLTYPE *Reset )( 
  141.             IEnumNetSharingPublicConnection * This);
  142.         
  143.         HRESULT ( STDMETHODCALLTYPE *Clone )( 
  144.             IEnumNetSharingPublicConnection * This,
  145.             /* [out] */ IEnumNetSharingPublicConnection **ppenum);
  146.         
  147.         END_INTERFACE
  148.     } IEnumNetSharingPublicConnectionVtbl;
  149.     interface IEnumNetSharingPublicConnection
  150.     {
  151.         CONST_VTBL struct IEnumNetSharingPublicConnectionVtbl *lpVtbl;
  152.     };
  153.     
  154. #ifdef COBJMACROS
  155. #define IEnumNetSharingPublicConnection_QueryInterface(This,riid,ppvObject)
  156.     (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  157. #define IEnumNetSharingPublicConnection_AddRef(This)
  158.     (This)->lpVtbl -> AddRef(This)
  159. #define IEnumNetSharingPublicConnection_Release(This)
  160.     (This)->lpVtbl -> Release(This)
  161. #define IEnumNetSharingPublicConnection_Next(This,celt,rgVar,pceltFetched)
  162.     (This)->lpVtbl -> Next(This,celt,rgVar,pceltFetched)
  163. #define IEnumNetSharingPublicConnection_Skip(This,celt)
  164.     (This)->lpVtbl -> Skip(This,celt)
  165. #define IEnumNetSharingPublicConnection_Reset(This)
  166.     (This)->lpVtbl -> Reset(This)
  167. #define IEnumNetSharingPublicConnection_Clone(This,ppenum)
  168.     (This)->lpVtbl -> Clone(This,ppenum)
  169. #endif /* COBJMACROS */
  170. #endif  /* C style interface */
  171. HRESULT STDMETHODCALLTYPE IEnumNetSharingPublicConnection_Next_Proxy( 
  172.     IEnumNetSharingPublicConnection * This,
  173.     /* [in] */ ULONG celt,
  174.     /* [length_is][size_is][out] */ VARIANT *rgVar,
  175.     /* [out] */ ULONG *pceltFetched);
  176. void __RPC_STUB IEnumNetSharingPublicConnection_Next_Stub(
  177.     IRpcStubBuffer *This,
  178.     IRpcChannelBuffer *_pRpcChannelBuffer,
  179.     PRPC_MESSAGE _pRpcMessage,
  180.     DWORD *_pdwStubPhase);
  181. HRESULT STDMETHODCALLTYPE IEnumNetSharingPublicConnection_Skip_Proxy( 
  182.     IEnumNetSharingPublicConnection * This,
  183.     /* [in] */ ULONG celt);
  184. void __RPC_STUB IEnumNetSharingPublicConnection_Skip_Stub(
  185.     IRpcStubBuffer *This,
  186.     IRpcChannelBuffer *_pRpcChannelBuffer,
  187.     PRPC_MESSAGE _pRpcMessage,
  188.     DWORD *_pdwStubPhase);
  189. HRESULT STDMETHODCALLTYPE IEnumNetSharingPublicConnection_Reset_Proxy( 
  190.     IEnumNetSharingPublicConnection * This);
  191. void __RPC_STUB IEnumNetSharingPublicConnection_Reset_Stub(
  192.     IRpcStubBuffer *This,
  193.     IRpcChannelBuffer *_pRpcChannelBuffer,
  194.     PRPC_MESSAGE _pRpcMessage,
  195.     DWORD *_pdwStubPhase);
  196. HRESULT STDMETHODCALLTYPE IEnumNetSharingPublicConnection_Clone_Proxy( 
  197.     IEnumNetSharingPublicConnection * This,
  198.     /* [out] */ IEnumNetSharingPublicConnection **ppenum);
  199. void __RPC_STUB IEnumNetSharingPublicConnection_Clone_Stub(
  200.     IRpcStubBuffer *This,
  201.     IRpcChannelBuffer *_pRpcChannelBuffer,
  202.     PRPC_MESSAGE _pRpcMessage,
  203.     DWORD *_pdwStubPhase);
  204. #endif  /* __IEnumNetSharingPublicConnection_INTERFACE_DEFINED__ */
  205. #ifndef __IEnumNetSharingPrivateConnection_INTERFACE_DEFINED__
  206. #define __IEnumNetSharingPrivateConnection_INTERFACE_DEFINED__
  207. /* interface IEnumNetSharingPrivateConnection */
  208. /* [unique][uuid][object] */ 
  209. EXTERN_C const IID IID_IEnumNetSharingPrivateConnection;
  210. #if defined(__cplusplus) && !defined(CINTERFACE)
  211.     
  212.     MIDL_INTERFACE("C08956B5-1CD3-11D1-B1C5-00805FC1270E")
  213.     IEnumNetSharingPrivateConnection : public IUnknown
  214.     {
  215.     public:
  216.         virtual HRESULT STDMETHODCALLTYPE Next( 
  217.             /* [in] */ ULONG celt,
  218.             /* [length_is][size_is][out] */ VARIANT *rgVar,
  219.             /* [out] */ ULONG *pCeltFetched) = 0;
  220.         
  221.         virtual HRESULT STDMETHODCALLTYPE Skip( 
  222.             /* [in] */ ULONG celt) = 0;
  223.         
  224.         virtual HRESULT STDMETHODCALLTYPE Reset( void) = 0;
  225.         
  226.         virtual HRESULT STDMETHODCALLTYPE Clone( 
  227.             /* [out] */ IEnumNetSharingPrivateConnection **ppenum) = 0;
  228.         
  229.     };
  230.     
  231. #else  /* C style interface */
  232.     typedef struct IEnumNetSharingPrivateConnectionVtbl
  233.     {
  234.         BEGIN_INTERFACE
  235.         
  236.         HRESULT ( STDMETHODCALLTYPE *QueryInterface )( 
  237.             IEnumNetSharingPrivateConnection * This,
  238.             /* [in] */ REFIID riid,
  239.             /* [iid_is][out] */ void **ppvObject);
  240.         
  241.         ULONG ( STDMETHODCALLTYPE *AddRef )( 
  242.             IEnumNetSharingPrivateConnection * This);
  243.         
  244.         ULONG ( STDMETHODCALLTYPE *Release )( 
  245.             IEnumNetSharingPrivateConnection * This);
  246.         
  247.         HRESULT ( STDMETHODCALLTYPE *Next )( 
  248.             IEnumNetSharingPrivateConnection * This,
  249.             /* [in] */ ULONG celt,
  250.             /* [length_is][size_is][out] */ VARIANT *rgVar,
  251.             /* [out] */ ULONG *pCeltFetched);
  252.         
  253.         HRESULT ( STDMETHODCALLTYPE *Skip )( 
  254.             IEnumNetSharingPrivateConnection * This,
  255.             /* [in] */ ULONG celt);
  256.         
  257.         HRESULT ( STDMETHODCALLTYPE *Reset )( 
  258.             IEnumNetSharingPrivateConnection * This);
  259.         
  260.         HRESULT ( STDMETHODCALLTYPE *Clone )( 
  261.             IEnumNetSharingPrivateConnection * This,
  262.             /* [out] */ IEnumNetSharingPrivateConnection **ppenum);
  263.         
  264.         END_INTERFACE
  265.     } IEnumNetSharingPrivateConnectionVtbl;
  266.     interface IEnumNetSharingPrivateConnection
  267.     {
  268.         CONST_VTBL struct IEnumNetSharingPrivateConnectionVtbl *lpVtbl;
  269.     };
  270.     
  271. #ifdef COBJMACROS
  272. #define IEnumNetSharingPrivateConnection_QueryInterface(This,riid,ppvObject)
  273.     (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  274. #define IEnumNetSharingPrivateConnection_AddRef(This)
  275.     (This)->lpVtbl -> AddRef(This)
  276. #define IEnumNetSharingPrivateConnection_Release(This)
  277.     (This)->lpVtbl -> Release(This)
  278. #define IEnumNetSharingPrivateConnection_Next(This,celt,rgVar,pCeltFetched)
  279.     (This)->lpVtbl -> Next(This,celt,rgVar,pCeltFetched)
  280. #define IEnumNetSharingPrivateConnection_Skip(This,celt)
  281.     (This)->lpVtbl -> Skip(This,celt)
  282. #define IEnumNetSharingPrivateConnection_Reset(This)
  283.     (This)->lpVtbl -> Reset(This)
  284. #define IEnumNetSharingPrivateConnection_Clone(This,ppenum)
  285.     (This)->lpVtbl -> Clone(This,ppenum)
  286. #endif /* COBJMACROS */
  287. #endif  /* C style interface */
  288. HRESULT STDMETHODCALLTYPE IEnumNetSharingPrivateConnection_Next_Proxy( 
  289.     IEnumNetSharingPrivateConnection * This,
  290.     /* [in] */ ULONG celt,
  291.     /* [length_is][size_is][out] */ VARIANT *rgVar,
  292.     /* [out] */ ULONG *pCeltFetched);
  293. void __RPC_STUB IEnumNetSharingPrivateConnection_Next_Stub(
  294.     IRpcStubBuffer *This,
  295.     IRpcChannelBuffer *_pRpcChannelBuffer,
  296.     PRPC_MESSAGE _pRpcMessage,
  297.     DWORD *_pdwStubPhase);
  298. HRESULT STDMETHODCALLTYPE IEnumNetSharingPrivateConnection_Skip_Proxy( 
  299.     IEnumNetSharingPrivateConnection * This,
  300.     /* [in] */ ULONG celt);
  301. void __RPC_STUB IEnumNetSharingPrivateConnection_Skip_Stub(
  302.     IRpcStubBuffer *This,
  303.     IRpcChannelBuffer *_pRpcChannelBuffer,
  304.     PRPC_MESSAGE _pRpcMessage,
  305.     DWORD *_pdwStubPhase);
  306. HRESULT STDMETHODCALLTYPE IEnumNetSharingPrivateConnection_Reset_Proxy( 
  307.     IEnumNetSharingPrivateConnection * This);
  308. void __RPC_STUB IEnumNetSharingPrivateConnection_Reset_Stub(
  309.     IRpcStubBuffer *This,
  310.     IRpcChannelBuffer *_pRpcChannelBuffer,
  311.     PRPC_MESSAGE _pRpcMessage,
  312.     DWORD *_pdwStubPhase);
  313. HRESULT STDMETHODCALLTYPE IEnumNetSharingPrivateConnection_Clone_Proxy( 
  314.     IEnumNetSharingPrivateConnection * This,
  315.     /* [out] */ IEnumNetSharingPrivateConnection **ppenum);
  316. void __RPC_STUB IEnumNetSharingPrivateConnection_Clone_Stub(
  317.     IRpcStubBuffer *This,
  318.     IRpcChannelBuffer *_pRpcChannelBuffer,
  319.     PRPC_MESSAGE _pRpcMessage,
  320.     DWORD *_pdwStubPhase);
  321. #endif  /* __IEnumNetSharingPrivateConnection_INTERFACE_DEFINED__ */
  322. #ifndef __INetSharingPortMappingCollection_INTERFACE_DEFINED__
  323. #define __INetSharingPortMappingCollection_INTERFACE_DEFINED__
  324. /* interface INetSharingPortMappingCollection */
  325. /* [unique][helpstring][dual][oleautomation][uuid][object] */ 
  326. EXTERN_C const IID IID_INetSharingPortMappingCollection;
  327. #if defined(__cplusplus) && !defined(CINTERFACE)
  328.     
  329.     MIDL_INTERFACE("02E4A2DE-DA20-4E34-89C8-AC22275A010B")
  330.     INetSharingPortMappingCollection : public IDispatch
  331.     {
  332.     public:
  333.         virtual /* [helpstring][restricted][id][propget] */ HRESULT STDMETHODCALLTYPE get__NewEnum( 
  334.             /* [retval][out] */ IUnknown **pVal) = 0;
  335.         
  336.         virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Count( 
  337.             /* [retval][out] */ long *pVal) = 0;
  338.         
  339.     };
  340.     
  341. #else  /* C style interface */
  342.     typedef struct INetSharingPortMappingCollectionVtbl
  343.     {
  344.         BEGIN_INTERFACE
  345.         
  346.         HRESULT ( STDMETHODCALLTYPE *QueryInterface )( 
  347.             INetSharingPortMappingCollection * This,
  348.             /* [in] */ REFIID riid,
  349.             /* [iid_is][out] */ void **ppvObject);
  350.         
  351.         ULONG ( STDMETHODCALLTYPE *AddRef )( 
  352.             INetSharingPortMappingCollection * This);
  353.         
  354.         ULONG ( STDMETHODCALLTYPE *Release )( 
  355.             INetSharingPortMappingCollection * This);
  356.         
  357.         HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( 
  358.             INetSharingPortMappingCollection * This,
  359.             /* [out] */ UINT *pctinfo);
  360.         
  361.         HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( 
  362.             INetSharingPortMappingCollection * This,
  363.             /* [in] */ UINT iTInfo,
  364.             /* [in] */ LCID lcid,
  365.             /* [out] */ ITypeInfo **ppTInfo);
  366.         
  367.         HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( 
  368.             INetSharingPortMappingCollection * This,
  369.             /* [in] */ REFIID riid,
  370.             /* [size_is][in] */ LPOLESTR *rgszNames,
  371.             /* [in] */ UINT cNames,
  372.             /* [in] */ LCID lcid,
  373.             /* [size_is][out] */ DISPID *rgDispId);
  374.         
  375.         /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( 
  376.             INetSharingPortMappingCollection * This,
  377.             /* [in] */ DISPID dispIdMember,
  378.             /* [in] */ REFIID riid,
  379.             /* [in] */ LCID lcid,
  380.             /* [in] */ WORD wFlags,
  381.             /* [out][in] */ DISPPARAMS *pDispParams,
  382.             /* [out] */ VARIANT *pVarResult,
  383.             /* [out] */ EXCEPINFO *pExcepInfo,
  384.             /* [out] */ UINT *puArgErr);
  385.         
  386.         /* [helpstring][restricted][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get__NewEnum )( 
  387.             INetSharingPortMappingCollection * This,
  388.             /* [retval][out] */ IUnknown **pVal);
  389.         
  390.         /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Count )( 
  391.             INetSharingPortMappingCollection * This,
  392.             /* [retval][out] */ long *pVal);
  393.         
  394.         END_INTERFACE
  395.     } INetSharingPortMappingCollectionVtbl;
  396.     interface INetSharingPortMappingCollection
  397.     {
  398.         CONST_VTBL struct INetSharingPortMappingCollectionVtbl *lpVtbl;
  399.     };
  400.     
  401. #ifdef COBJMACROS
  402. #define INetSharingPortMappingCollection_QueryInterface(This,riid,ppvObject)
  403.     (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  404. #define INetSharingPortMappingCollection_AddRef(This)
  405.     (This)->lpVtbl -> AddRef(This)
  406. #define INetSharingPortMappingCollection_Release(This)
  407.     (This)->lpVtbl -> Release(This)
  408. #define INetSharingPortMappingCollection_GetTypeInfoCount(This,pctinfo)
  409.     (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo)
  410. #define INetSharingPortMappingCollection_GetTypeInfo(This,iTInfo,lcid,ppTInfo)
  411.     (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo)
  412. #define INetSharingPortMappingCollection_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)
  413.     (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)
  414. #define INetSharingPortMappingCollection_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)
  415.     (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)
  416. #define INetSharingPortMappingCollection_get__NewEnum(This,pVal)
  417.     (This)->lpVtbl -> get__NewEnum(This,pVal)
  418. #define INetSharingPortMappingCollection_get_Count(This,pVal)
  419.     (This)->lpVtbl -> get_Count(This,pVal)
  420. #endif /* COBJMACROS */
  421. #endif  /* C style interface */
  422. /* [helpstring][restricted][id][propget] */ HRESULT STDMETHODCALLTYPE INetSharingPortMappingCollection_get__NewEnum_Proxy( 
  423.     INetSharingPortMappingCollection * This,
  424.     /* [retval][out] */ IUnknown **pVal);
  425. void __RPC_STUB INetSharingPortMappingCollection_get__NewEnum_Stub(
  426.     IRpcStubBuffer *This,
  427.     IRpcChannelBuffer *_pRpcChannelBuffer,
  428.     PRPC_MESSAGE _pRpcMessage,
  429.     DWORD *_pdwStubPhase);
  430. /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE INetSharingPortMappingCollection_get_Count_Proxy( 
  431.     INetSharingPortMappingCollection * This,
  432.     /* [retval][out] */ long *pVal);
  433. void __RPC_STUB INetSharingPortMappingCollection_get_Count_Stub(
  434.     IRpcStubBuffer *This,
  435.     IRpcChannelBuffer *_pRpcChannelBuffer,
  436.     PRPC_MESSAGE _pRpcMessage,
  437.     DWORD *_pdwStubPhase);
  438. #endif  /* __INetSharingPortMappingCollection_INTERFACE_DEFINED__ */
  439. /* interface __MIDL_itf_netcon_0128 */
  440. /* [local] */ 
  441. // properties for INetConnection (wraps NETCON_PROPERTIES)
  442. extern RPC_IF_HANDLE __MIDL_itf_netcon_0128_v0_0_c_ifspec;
  443. extern RPC_IF_HANDLE __MIDL_itf_netcon_0128_v0_0_s_ifspec;
  444. #ifndef __INetConnectionProps_INTERFACE_DEFINED__
  445. #define __INetConnectionProps_INTERFACE_DEFINED__
  446. /* interface INetConnectionProps */
  447. /* [unique][helpstring][dual][oleautomation][uuid][object] */ 
  448. EXTERN_C const IID IID_INetConnectionProps;
  449. #if defined(__cplusplus) && !defined(CINTERFACE)
  450.     
  451.     MIDL_INTERFACE("F4277C95-CE5B-463D-8167-5662D9BCAA72")
  452.     INetConnectionProps : public IDispatch
  453.     {
  454.     public:
  455.         virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Guid( 
  456.             /* [retval][out] */ BSTR *pbstrGuid) = 0;
  457.         
  458.         virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Name( 
  459.             /* [retval][out] */ BSTR *pbstrName) = 0;
  460.         
  461.         virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_DeviceName( 
  462.             /* [retval][out] */ BSTR *pbstrDeviceName) = 0;
  463.         
  464.         virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Status( 
  465.             /* [retval][out] */ NETCON_STATUS *pStatus) = 0;
  466.         
  467.         virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_MediaType( 
  468.             /* [retval][out] */ NETCON_MEDIATYPE *pMediaType) = 0;
  469.         
  470.         virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Characteristics( 
  471.             /* [retval][out] */ DWORD *pdwFlags) = 0;
  472.         
  473.     };
  474.     
  475. #else  /* C style interface */
  476.     typedef struct INetConnectionPropsVtbl
  477.     {
  478.         BEGIN_INTERFACE
  479.         
  480.         HRESULT ( STDMETHODCALLTYPE *QueryInterface )( 
  481.             INetConnectionProps * This,
  482.             /* [in] */ REFIID riid,
  483.             /* [iid_is][out] */ void **ppvObject);
  484.         
  485.         ULONG ( STDMETHODCALLTYPE *AddRef )( 
  486.             INetConnectionProps * This);
  487.         
  488.         ULONG ( STDMETHODCALLTYPE *Release )( 
  489.             INetConnectionProps * This);
  490.         
  491.         HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( 
  492.             INetConnectionProps * This,
  493.             /* [out] */ UINT *pctinfo);
  494.         
  495.         HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( 
  496.             INetConnectionProps * This,
  497.             /* [in] */ UINT iTInfo,
  498.             /* [in] */ LCID lcid,
  499.             /* [out] */ ITypeInfo **ppTInfo);
  500.         
  501.         HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( 
  502.             INetConnectionProps * This,
  503.             /* [in] */ REFIID riid,
  504.             /* [size_is][in] */ LPOLESTR *rgszNames,
  505.             /* [in] */ UINT cNames,
  506.             /* [in] */ LCID lcid,
  507.             /* [size_is][out] */ DISPID *rgDispId);
  508.         
  509.         /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( 
  510.             INetConnectionProps * This,
  511.             /* [in] */ DISPID dispIdMember,
  512.             /* [in] */ REFIID riid,
  513.             /* [in] */ LCID lcid,
  514.             /* [in] */ WORD wFlags,
  515.             /* [out][in] */ DISPPARAMS *pDispParams,
  516.             /* [out] */ VARIANT *pVarResult,
  517.             /* [out] */ EXCEPINFO *pExcepInfo,
  518.             /* [out] */ UINT *puArgErr);
  519.         
  520.         /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Guid )( 
  521.             INetConnectionProps * This,
  522.             /* [retval][out] */ BSTR *pbstrGuid);
  523.         
  524.         /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Name )( 
  525.             INetConnectionProps * This,
  526.             /* [retval][out] */ BSTR *pbstrName);
  527.         
  528.         /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_DeviceName )( 
  529.             INetConnectionProps * This,
  530.             /* [retval][out] */ BSTR *pbstrDeviceName);
  531.         
  532.         /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Status )( 
  533.             INetConnectionProps * This,
  534.             /* [retval][out] */ NETCON_STATUS *pStatus);
  535.         
  536.         /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_MediaType )( 
  537.             INetConnectionProps * This,
  538.             /* [retval][out] */ NETCON_MEDIATYPE *pMediaType);
  539.         
  540.         /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Characteristics )( 
  541.             INetConnectionProps * This,
  542.             /* [retval][out] */ DWORD *pdwFlags);
  543.         
  544.         END_INTERFACE
  545.     } INetConnectionPropsVtbl;
  546.     interface INetConnectionProps
  547.     {
  548.         CONST_VTBL struct INetConnectionPropsVtbl *lpVtbl;
  549.     };
  550.     
  551. #ifdef COBJMACROS
  552. #define INetConnectionProps_QueryInterface(This,riid,ppvObject)
  553.     (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  554. #define INetConnectionProps_AddRef(This)
  555.     (This)->lpVtbl -> AddRef(This)
  556. #define INetConnectionProps_Release(This)
  557.     (This)->lpVtbl -> Release(This)
  558. #define INetConnectionProps_GetTypeInfoCount(This,pctinfo)
  559.     (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo)
  560. #define INetConnectionProps_GetTypeInfo(This,iTInfo,lcid,ppTInfo)
  561.     (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo)
  562. #define INetConnectionProps_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)
  563.     (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)
  564. #define INetConnectionProps_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)
  565.     (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)
  566. #define INetConnectionProps_get_Guid(This,pbstrGuid)
  567.     (This)->lpVtbl -> get_Guid(This,pbstrGuid)
  568. #define INetConnectionProps_get_Name(This,pbstrName)
  569.     (This)->lpVtbl -> get_Name(This,pbstrName)
  570. #define INetConnectionProps_get_DeviceName(This,pbstrDeviceName)
  571.     (This)->lpVtbl -> get_DeviceName(This,pbstrDeviceName)
  572. #define INetConnectionProps_get_Status(This,pStatus)
  573.     (This)->lpVtbl -> get_Status(This,pStatus)
  574. #define INetConnectionProps_get_MediaType(This,pMediaType)
  575.     (This)->lpVtbl -> get_MediaType(This,pMediaType)
  576. #define INetConnectionProps_get_Characteristics(This,pdwFlags)
  577.     (This)->lpVtbl -> get_Characteristics(This,pdwFlags)
  578. #endif /* COBJMACROS */
  579. #endif  /* C style interface */
  580. /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE INetConnectionProps_get_Guid_Proxy( 
  581.     INetConnectionProps * This,
  582.     /* [retval][out] */ BSTR *pbstrGuid);
  583. void __RPC_STUB INetConnectionProps_get_Guid_Stub(
  584.     IRpcStubBuffer *This,
  585.     IRpcChannelBuffer *_pRpcChannelBuffer,
  586.     PRPC_MESSAGE _pRpcMessage,
  587.     DWORD *_pdwStubPhase);
  588. /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE INetConnectionProps_get_Name_Proxy( 
  589.     INetConnectionProps * This,
  590.     /* [retval][out] */ BSTR *pbstrName);
  591. void __RPC_STUB INetConnectionProps_get_Name_Stub(
  592.     IRpcStubBuffer *This,
  593.     IRpcChannelBuffer *_pRpcChannelBuffer,
  594.     PRPC_MESSAGE _pRpcMessage,
  595.     DWORD *_pdwStubPhase);
  596. /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE INetConnectionProps_get_DeviceName_Proxy( 
  597.     INetConnectionProps * This,
  598.     /* [retval][out] */ BSTR *pbstrDeviceName);
  599. void __RPC_STUB INetConnectionProps_get_DeviceName_Stub(
  600.     IRpcStubBuffer *This,
  601.     IRpcChannelBuffer *_pRpcChannelBuffer,
  602.     PRPC_MESSAGE _pRpcMessage,
  603.     DWORD *_pdwStubPhase);
  604. /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE INetConnectionProps_get_Status_Proxy( 
  605.     INetConnectionProps * This,
  606.     /* [retval][out] */ NETCON_STATUS *pStatus);
  607. void __RPC_STUB INetConnectionProps_get_Status_Stub(
  608.     IRpcStubBuffer *This,
  609.     IRpcChannelBuffer *_pRpcChannelBuffer,
  610.     PRPC_MESSAGE _pRpcMessage,
  611.     DWORD *_pdwStubPhase);
  612. /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE INetConnectionProps_get_MediaType_Proxy( 
  613.     INetConnectionProps * This,
  614.     /* [retval][out] */ NETCON_MEDIATYPE *pMediaType);
  615. void __RPC_STUB INetConnectionProps_get_MediaType_Stub(
  616.     IRpcStubBuffer *This,
  617.     IRpcChannelBuffer *_pRpcChannelBuffer,
  618.     PRPC_MESSAGE _pRpcMessage,
  619.     DWORD *_pdwStubPhase);
  620. /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE INetConnectionProps_get_Characteristics_Proxy( 
  621.     INetConnectionProps * This,
  622.     /* [retval][out] */ DWORD *pdwFlags);
  623. void __RPC_STUB INetConnectionProps_get_Characteristics_Stub(
  624.     IRpcStubBuffer *This,
  625.     IRpcChannelBuffer *_pRpcChannelBuffer,
  626.     PRPC_MESSAGE _pRpcMessage,
  627.     DWORD *_pdwStubPhase);
  628. #endif  /* __INetConnectionProps_INTERFACE_DEFINED__ */
  629. #ifndef __INetSharingConfiguration_INTERFACE_DEFINED__
  630. #define __INetSharingConfiguration_INTERFACE_DEFINED__
  631. /* interface INetSharingConfiguration */
  632. /* [unique][dual][oleautomation][uuid][object] */ 
  633. typedef 
  634. enum tagSHARINGCONNECTIONTYPE
  635.     { ICSSHARINGTYPE_PUBLIC = 0,
  636. ICSSHARINGTYPE_PRIVATE = ICSSHARINGTYPE_PUBLIC + 1
  637.     }  SHARINGCONNECTIONTYPE;
  638. typedef enum tagSHARINGCONNECTIONTYPE *LPSHARINGCONNECTIONTYPE;
  639. typedef 
  640. enum tagSHARINGCONNECTION_ENUM_FLAGS
  641.     { ICSSC_DEFAULT = 0,
  642. ICSSC_ENABLED = ICSSC_DEFAULT + 1
  643.     }  SHARINGCONNECTION_ENUM_FLAGS;
  644. typedef 
  645. enum tagICS_TARGETTYPE
  646.     { ICSTT_NAME = 0,
  647. ICSTT_IPADDRESS = ICSTT_NAME + 1
  648.     }  ICS_TARGETTYPE;
  649. EXTERN_C const IID IID_INetSharingConfiguration;
  650. #if defined(__cplusplus) && !defined(CINTERFACE)
  651.     
  652.     MIDL_INTERFACE("C08956B6-1CD3-11D1-B1C5-00805FC1270E")
  653.     INetSharingConfiguration : public IDispatch
  654.     {
  655.     public:
  656.         virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_SharingEnabled( 
  657.             /* [retval][out] */ VARIANT_BOOL *pbEnabled) = 0;
  658.         
  659.         virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_SharingConnectionType( 
  660.             /* [retval][out] */ SHARINGCONNECTIONTYPE *pType) = 0;
  661.         
  662.         virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE DisableSharing( void) = 0;
  663.         
  664.         virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE EnableSharing( 
  665.             /* [in] */ SHARINGCONNECTIONTYPE Type) = 0;
  666.         
  667.         virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_InternetFirewallEnabled( 
  668.             /* [retval][out] */ VARIANT_BOOL *pbEnabled) = 0;
  669.         
  670.         virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE DisableInternetFirewall( void) = 0;
  671.         
  672.         virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE EnableInternetFirewall( void) = 0;
  673.         
  674.         virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_EnumPortMappings( 
  675.             /* [in] */ SHARINGCONNECTION_ENUM_FLAGS Flags,
  676.             /* [retval][out] */ INetSharingPortMappingCollection **ppColl) = 0;
  677.         
  678.         virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE AddPortMapping( 
  679.             /* [in] */ BSTR bstrName,
  680.             /* [in] */ UCHAR ucIPProtocol,
  681.             /* [in] */ USHORT usExternalPort,
  682.             /* [in] */ USHORT usInternalPort,
  683.             /* [in] */ DWORD dwOptions,
  684.             /* [in] */ BSTR bstrTargetNameOrIPAddress,
  685.             /* [in] */ ICS_TARGETTYPE eTargetType,
  686.             /* [retval][out] */ INetSharingPortMapping **ppMapping) = 0;
  687.         
  688.         virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE RemovePortMapping( 
  689.             /* [in] */ INetSharingPortMapping *pMapping) = 0;
  690.         
  691.     };
  692.     
  693. #else  /* C style interface */
  694.     typedef struct INetSharingConfigurationVtbl
  695.     {
  696.         BEGIN_INTERFACE
  697.         
  698.         HRESULT ( STDMETHODCALLTYPE *QueryInterface )( 
  699.             INetSharingConfiguration * This,
  700.             /* [in] */ REFIID riid,
  701.             /* [iid_is][out] */ void **ppvObject);
  702.         
  703.         ULONG ( STDMETHODCALLTYPE *AddRef )( 
  704.             INetSharingConfiguration * This);
  705.         
  706.         ULONG ( STDMETHODCALLTYPE *Release )( 
  707.             INetSharingConfiguration * This);
  708.         
  709.         HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( 
  710.             INetSharingConfiguration * This,
  711.             /* [out] */ UINT *pctinfo);
  712.         
  713.         HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( 
  714.             INetSharingConfiguration * This,
  715.             /* [in] */ UINT iTInfo,
  716.             /* [in] */ LCID lcid,
  717.             /* [out] */ ITypeInfo **ppTInfo);
  718.         
  719.         HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( 
  720.             INetSharingConfiguration * This,
  721.             /* [in] */ REFIID riid,
  722.             /* [size_is][in] */ LPOLESTR *rgszNames,
  723.             /* [in] */ UINT cNames,
  724.             /* [in] */ LCID lcid,
  725.             /* [size_is][out] */ DISPID *rgDispId);
  726.         
  727.         /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( 
  728.             INetSharingConfiguration * This,
  729.             /* [in] */ DISPID dispIdMember,
  730.             /* [in] */ REFIID riid,
  731.             /* [in] */ LCID lcid,
  732.             /* [in] */ WORD wFlags,
  733.             /* [out][in] */ DISPPARAMS *pDispParams,
  734.             /* [out] */ VARIANT *pVarResult,
  735.             /* [out] */ EXCEPINFO *pExcepInfo,
  736.             /* [out] */ UINT *puArgErr);
  737.         
  738.         /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_SharingEnabled )( 
  739.             INetSharingConfiguration * This,
  740.             /* [retval][out] */ VARIANT_BOOL *pbEnabled);
  741.         
  742.         /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_SharingConnectionType )( 
  743.             INetSharingConfiguration * This,
  744.             /* [retval][out] */ SHARINGCONNECTIONTYPE *pType);
  745.         
  746.         /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *DisableSharing )( 
  747.             INetSharingConfiguration * This);
  748.         
  749.         /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *EnableSharing )( 
  750.             INetSharingConfiguration * This,
  751.             /* [in] */ SHARINGCONNECTIONTYPE Type);
  752.         
  753.         /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_InternetFirewallEnabled )( 
  754.             INetSharingConfiguration * This,
  755.             /* [retval][out] */ VARIANT_BOOL *pbEnabled);
  756.         
  757.         /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *DisableInternetFirewall )( 
  758.             INetSharingConfiguration * This);
  759.         
  760.         /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *EnableInternetFirewall )( 
  761.             INetSharingConfiguration * This);
  762.         
  763.         /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_EnumPortMappings )( 
  764.             INetSharingConfiguration * This,
  765.             /* [in] */ SHARINGCONNECTION_ENUM_FLAGS Flags,
  766.             /* [retval][out] */ INetSharingPortMappingCollection **ppColl);
  767.         
  768.         /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *AddPortMapping )( 
  769.             INetSharingConfiguration * This,
  770.             /* [in] */ BSTR bstrName,
  771.             /* [in] */ UCHAR ucIPProtocol,
  772.             /* [in] */ USHORT usExternalPort,
  773.             /* [in] */ USHORT usInternalPort,
  774.             /* [in] */ DWORD dwOptions,
  775.             /* [in] */ BSTR bstrTargetNameOrIPAddress,
  776.             /* [in] */ ICS_TARGETTYPE eTargetType,
  777.             /* [retval][out] */ INetSharingPortMapping **ppMapping);
  778.         
  779.         /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *RemovePortMapping )( 
  780.             INetSharingConfiguration * This,
  781.             /* [in] */ INetSharingPortMapping *pMapping);
  782.         
  783.         END_INTERFACE
  784.     } INetSharingConfigurationVtbl;
  785.     interface INetSharingConfiguration
  786.     {
  787.         CONST_VTBL struct INetSharingConfigurationVtbl *lpVtbl;
  788.     };
  789.     
  790. #ifdef COBJMACROS
  791. #define INetSharingConfiguration_QueryInterface(This,riid,ppvObject)
  792.     (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  793. #define INetSharingConfiguration_AddRef(This)
  794.     (This)->lpVtbl -> AddRef(This)
  795. #define INetSharingConfiguration_Release(This)
  796.     (This)->lpVtbl -> Release(This)
  797. #define INetSharingConfiguration_GetTypeInfoCount(This,pctinfo)
  798.     (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo)
  799. #define INetSharingConfiguration_GetTypeInfo(This,iTInfo,lcid,ppTInfo)
  800.     (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo)
  801. #define INetSharingConfiguration_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)
  802.     (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)
  803. #define INetSharingConfiguration_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)
  804.     (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)
  805. #define INetSharingConfiguration_get_SharingEnabled(This,pbEnabled)
  806.     (This)->lpVtbl -> get_SharingEnabled(This,pbEnabled)
  807. #define INetSharingConfiguration_get_SharingConnectionType(This,pType)
  808.     (This)->lpVtbl -> get_SharingConnectionType(This,pType)
  809. #define INetSharingConfiguration_DisableSharing(This)
  810.     (This)->lpVtbl -> DisableSharing(This)
  811. #define INetSharingConfiguration_EnableSharing(This,Type)
  812.     (This)->lpVtbl -> EnableSharing(This,Type)
  813. #define INetSharingConfiguration_get_InternetFirewallEnabled(This,pbEnabled)
  814.     (This)->lpVtbl -> get_InternetFirewallEnabled(This,pbEnabled)
  815. #define INetSharingConfiguration_DisableInternetFirewall(This)
  816.     (This)->lpVtbl -> DisableInternetFirewall(This)
  817. #define INetSharingConfiguration_EnableInternetFirewall(This)
  818.     (This)->lpVtbl -> EnableInternetFirewall(This)
  819. #define INetSharingConfiguration_get_EnumPortMappings(This,Flags,ppColl)
  820.     (This)->lpVtbl -> get_EnumPortMappings(This,Flags,ppColl)
  821. #define INetSharingConfiguration_AddPortMapping(This,bstrName,ucIPProtocol,usExternalPort,usInternalPort,dwOptions,bstrTargetNameOrIPAddress,eTargetType,ppMapping)
  822.     (This)->lpVtbl -> AddPortMapping(This,bstrName,ucIPProtocol,usExternalPort,usInternalPort,dwOptions,bstrTargetNameOrIPAddress,eTargetType,ppMapping)
  823. #define INetSharingConfiguration_RemovePortMapping(This,pMapping)
  824.     (This)->lpVtbl -> RemovePortMapping(This,pMapping)
  825. #endif /* COBJMACROS */
  826. #endif  /* C style interface */
  827. /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE INetSharingConfiguration_get_SharingEnabled_Proxy( 
  828.     INetSharingConfiguration * This,
  829.     /* [retval][out] */ VARIANT_BOOL *pbEnabled);
  830. void __RPC_STUB INetSharingConfiguration_get_SharingEnabled_Stub(
  831.     IRpcStubBuffer *This,
  832.     IRpcChannelBuffer *_pRpcChannelBuffer,
  833.     PRPC_MESSAGE _pRpcMessage,
  834.     DWORD *_pdwStubPhase);
  835. /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE INetSharingConfiguration_get_SharingConnectionType_Proxy( 
  836.     INetSharingConfiguration * This,
  837.     /* [retval][out] */ SHARINGCONNECTIONTYPE *pType);
  838. void __RPC_STUB INetSharingConfiguration_get_SharingConnectionType_Stub(
  839.     IRpcStubBuffer *This,
  840.     IRpcChannelBuffer *_pRpcChannelBuffer,
  841.     PRPC_MESSAGE _pRpcMessage,
  842.     DWORD *_pdwStubPhase);
  843. /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE INetSharingConfiguration_DisableSharing_Proxy( 
  844.     INetSharingConfiguration * This);
  845. void __RPC_STUB INetSharingConfiguration_DisableSharing_Stub(
  846.     IRpcStubBuffer *This,
  847.     IRpcChannelBuffer *_pRpcChannelBuffer,
  848.     PRPC_MESSAGE _pRpcMessage,
  849.     DWORD *_pdwStubPhase);
  850. /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE INetSharingConfiguration_EnableSharing_Proxy( 
  851.     INetSharingConfiguration * This,
  852.     /* [in] */ SHARINGCONNECTIONTYPE Type);
  853. void __RPC_STUB INetSharingConfiguration_EnableSharing_Stub(
  854.     IRpcStubBuffer *This,
  855.     IRpcChannelBuffer *_pRpcChannelBuffer,
  856.     PRPC_MESSAGE _pRpcMessage,
  857.     DWORD *_pdwStubPhase);
  858. /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE INetSharingConfiguration_get_InternetFirewallEnabled_Proxy( 
  859.     INetSharingConfiguration * This,
  860.     /* [retval][out] */ VARIANT_BOOL *pbEnabled);
  861. void __RPC_STUB INetSharingConfiguration_get_InternetFirewallEnabled_Stub(
  862.     IRpcStubBuffer *This,
  863.     IRpcChannelBuffer *_pRpcChannelBuffer,
  864.     PRPC_MESSAGE _pRpcMessage,
  865.     DWORD *_pdwStubPhase);
  866. /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE INetSharingConfiguration_DisableInternetFirewall_Proxy( 
  867.     INetSharingConfiguration * This);
  868. void __RPC_STUB INetSharingConfiguration_DisableInternetFirewall_Stub(
  869.     IRpcStubBuffer *This,
  870.     IRpcChannelBuffer *_pRpcChannelBuffer,
  871.     PRPC_MESSAGE _pRpcMessage,
  872.     DWORD *_pdwStubPhase);
  873. /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE INetSharingConfiguration_EnableInternetFirewall_Proxy( 
  874.     INetSharingConfiguration * This);
  875. void __RPC_STUB INetSharingConfiguration_EnableInternetFirewall_Stub(
  876.     IRpcStubBuffer *This,
  877.     IRpcChannelBuffer *_pRpcChannelBuffer,
  878.     PRPC_MESSAGE _pRpcMessage,
  879.     DWORD *_pdwStubPhase);
  880. /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE INetSharingConfiguration_get_EnumPortMappings_Proxy( 
  881.     INetSharingConfiguration * This,
  882.     /* [in] */ SHARINGCONNECTION_ENUM_FLAGS Flags,
  883.     /* [retval][out] */ INetSharingPortMappingCollection **ppColl);
  884. void __RPC_STUB INetSharingConfiguration_get_EnumPortMappings_Stub(
  885.     IRpcStubBuffer *This,
  886.     IRpcChannelBuffer *_pRpcChannelBuffer,
  887.     PRPC_MESSAGE _pRpcMessage,
  888.     DWORD *_pdwStubPhase);
  889. /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE INetSharingConfiguration_AddPortMapping_Proxy( 
  890.     INetSharingConfiguration * This,
  891.     /* [in] */ BSTR bstrName,
  892.     /* [in] */ UCHAR ucIPProtocol,
  893.     /* [in] */ USHORT usExternalPort,
  894.     /* [in] */ USHORT usInternalPort,
  895.     /* [in] */ DWORD dwOptions,
  896.     /* [in] */ BSTR bstrTargetNameOrIPAddress,
  897.     /* [in] */ ICS_TARGETTYPE eTargetType,
  898.     /* [retval][out] */ INetSharingPortMapping **ppMapping);
  899. void __RPC_STUB INetSharingConfiguration_AddPortMapping_Stub(
  900.     IRpcStubBuffer *This,
  901.     IRpcChannelBuffer *_pRpcChannelBuffer,
  902.     PRPC_MESSAGE _pRpcMessage,
  903.     DWORD *_pdwStubPhase);
  904. /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE INetSharingConfiguration_RemovePortMapping_Proxy( 
  905.     INetSharingConfiguration * This,
  906.     /* [in] */ INetSharingPortMapping *pMapping);
  907. void __RPC_STUB INetSharingConfiguration_RemovePortMapping_Stub(
  908.     IRpcStubBuffer *This,
  909.     IRpcChannelBuffer *_pRpcChannelBuffer,
  910.     PRPC_MESSAGE _pRpcMessage,
  911.     DWORD *_pdwStubPhase);
  912. #endif  /* __INetSharingConfiguration_INTERFACE_DEFINED__ */
  913. #ifndef __INetSharingEveryConnectionCollection_INTERFACE_DEFINED__
  914. #define __INetSharingEveryConnectionCollection_INTERFACE_DEFINED__
  915. /* interface INetSharingEveryConnectionCollection */
  916. /* [unique][helpstring][dual][oleautomation][uuid][object] */ 
  917. EXTERN_C const IID IID_INetSharingEveryConnectionCollection;
  918. #if defined(__cplusplus) && !defined(CINTERFACE)
  919.     
  920.     MIDL_INTERFACE("33C4643C-7811-46FA-A89A-768597BD7223")
  921.     INetSharingEveryConnectionCollection : public IDispatch
  922.     {
  923.     public:
  924.         virtual /* [helpstring][restricted][id][propget] */ HRESULT STDMETHODCALLTYPE get__NewEnum( 
  925.             /* [retval][out] */ IUnknown **pVal) = 0;
  926.         
  927.         virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Count( 
  928.             /* [retval][out] */ long *pVal) = 0;
  929.         
  930.     };
  931.     
  932. #else  /* C style interface */
  933.     typedef struct INetSharingEveryConnectionCollectionVtbl
  934.     {
  935.         BEGIN_INTERFACE
  936.         
  937.         HRESULT ( STDMETHODCALLTYPE *QueryInterface )( 
  938.             INetSharingEveryConnectionCollection * This,
  939.             /* [in] */ REFIID riid,
  940.             /* [iid_is][out] */ void **ppvObject);
  941.         
  942.         ULONG ( STDMETHODCALLTYPE *AddRef )( 
  943.             INetSharingEveryConnectionCollection * This);
  944.         
  945.         ULONG ( STDMETHODCALLTYPE *Release )( 
  946.             INetSharingEveryConnectionCollection * This);
  947.         
  948.         HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( 
  949.             INetSharingEveryConnectionCollection * This,
  950.             /* [out] */ UINT *pctinfo);
  951.         
  952.         HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( 
  953.             INetSharingEveryConnectionCollection * This,
  954.             /* [in] */ UINT iTInfo,
  955.             /* [in] */ LCID lcid,
  956.             /* [out] */ ITypeInfo **ppTInfo);
  957.         
  958.         HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( 
  959.             INetSharingEveryConnectionCollection * This,
  960.             /* [in] */ REFIID riid,
  961.             /* [size_is][in] */ LPOLESTR *rgszNames,
  962.             /* [in] */ UINT cNames,
  963.             /* [in] */ LCID lcid,
  964.             /* [size_is][out] */ DISPID *rgDispId);
  965.         
  966.         /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( 
  967.             INetSharingEveryConnectionCollection * This,
  968.             /* [in] */ DISPID dispIdMember,
  969.             /* [in] */ REFIID riid,
  970.             /* [in] */ LCID lcid,
  971.             /* [in] */ WORD wFlags,
  972.             /* [out][in] */ DISPPARAMS *pDispParams,
  973.             /* [out] */ VARIANT *pVarResult,
  974.             /* [out] */ EXCEPINFO *pExcepInfo,
  975.             /* [out] */ UINT *puArgErr);
  976.         
  977.         /* [helpstring][restricted][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get__NewEnum )( 
  978.             INetSharingEveryConnectionCollection * This,
  979.             /* [retval][out] */ IUnknown **pVal);
  980.         
  981.         /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Count )( 
  982.             INetSharingEveryConnectionCollection * This,
  983.             /* [retval][out] */ long *pVal);
  984.         
  985.         END_INTERFACE
  986.     } INetSharingEveryConnectionCollectionVtbl;
  987.     interface INetSharingEveryConnectionCollection
  988.     {
  989.         CONST_VTBL struct INetSharingEveryConnectionCollectionVtbl *lpVtbl;
  990.     };
  991.     
  992. #ifdef COBJMACROS
  993. #define INetSharingEveryConnectionCollection_QueryInterface(This,riid,ppvObject)
  994.     (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  995. #define INetSharingEveryConnectionCollection_AddRef(This)
  996.     (This)->lpVtbl -> AddRef(This)
  997. #define INetSharingEveryConnectionCollection_Release(This)
  998.     (This)->lpVtbl -> Release(This)
  999. #define INetSharingEveryConnectionCollection_GetTypeInfoCount(This,pctinfo)
  1000.     (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo)
  1001. #define INetSharingEveryConnectionCollection_GetTypeInfo(This,iTInfo,lcid,ppTInfo)
  1002.     (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo)
  1003. #define INetSharingEveryConnectionCollection_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)
  1004.     (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)
  1005. #define INetSharingEveryConnectionCollection_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)
  1006.     (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)
  1007. #define INetSharingEveryConnectionCollection_get__NewEnum(This,pVal)
  1008.     (This)->lpVtbl -> get__NewEnum(This,pVal)
  1009. #define INetSharingEveryConnectionCollection_get_Count(This,pVal)
  1010.     (This)->lpVtbl -> get_Count(This,pVal)
  1011. #endif /* COBJMACROS */
  1012. #endif  /* C style interface */
  1013. /* [helpstring][restricted][id][propget] */ HRESULT STDMETHODCALLTYPE INetSharingEveryConnectionCollection_get__NewEnum_Proxy( 
  1014.     INetSharingEveryConnectionCollection * This,
  1015.     /* [retval][out] */ IUnknown **pVal);
  1016. void __RPC_STUB INetSharingEveryConnectionCollection_get__NewEnum_Stub(
  1017.     IRpcStubBuffer *This,
  1018.     IRpcChannelBuffer *_pRpcChannelBuffer,
  1019.     PRPC_MESSAGE _pRpcMessage,
  1020.     DWORD *_pdwStubPhase);
  1021. /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE INetSharingEveryConnectionCollection_get_Count_Proxy( 
  1022.     INetSharingEveryConnectionCollection * This,
  1023.     /* [retval][out] */ long *pVal);
  1024. void __RPC_STUB INetSharingEveryConnectionCollection_get_Count_Stub(
  1025.     IRpcStubBuffer *This,
  1026.     IRpcChannelBuffer *_pRpcChannelBuffer,
  1027.     PRPC_MESSAGE _pRpcMessage,
  1028.     DWORD *_pdwStubPhase);
  1029. #endif  /* __INetSharingEveryConnectionCollection_INTERFACE_DEFINED__ */
  1030. #ifndef __INetSharingPublicConnectionCollection_INTERFACE_DEFINED__
  1031. #define __INetSharingPublicConnectionCollection_INTERFACE_DEFINED__
  1032. /* interface INetSharingPublicConnectionCollection */
  1033. /* [unique][helpstring][dual][oleautomation][uuid][object] */ 
  1034. EXTERN_C const IID IID_INetSharingPublicConnectionCollection;
  1035. #if defined(__cplusplus) && !defined(CINTERFACE)
  1036.     
  1037.     MIDL_INTERFACE("7D7A6355-F372-4971-A149-BFC927BE762A")
  1038.     INetSharingPublicConnectionCollection : public IDispatch
  1039.     {
  1040.     public:
  1041.         virtual /* [helpstring][restricted][id][propget] */ HRESULT STDMETHODCALLTYPE get__NewEnum( 
  1042.             /* [retval][out] */ IUnknown **pVal) = 0;
  1043.         
  1044.         virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Count( 
  1045.             /* [retval][out] */ long *pVal) = 0;
  1046.         
  1047.     };
  1048.     
  1049. #else  /* C style interface */
  1050.     typedef struct INetSharingPublicConnectionCollectionVtbl
  1051.     {
  1052.         BEGIN_INTERFACE
  1053.         
  1054.         HRESULT ( STDMETHODCALLTYPE *QueryInterface )( 
  1055.             INetSharingPublicConnectionCollection * This,
  1056.             /* [in] */ REFIID riid,
  1057.             /* [iid_is][out] */ void **ppvObject);
  1058.         
  1059.         ULONG ( STDMETHODCALLTYPE *AddRef )( 
  1060.             INetSharingPublicConnectionCollection * This);
  1061.         
  1062.         ULONG ( STDMETHODCALLTYPE *Release )( 
  1063.             INetSharingPublicConnectionCollection * This);
  1064.         
  1065.         HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( 
  1066.             INetSharingPublicConnectionCollection * This,
  1067.             /* [out] */ UINT *pctinfo);
  1068.         
  1069.         HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( 
  1070.             INetSharingPublicConnectionCollection * This,
  1071.             /* [in] */ UINT iTInfo,
  1072.             /* [in] */ LCID lcid,
  1073.             /* [out] */ ITypeInfo **ppTInfo);
  1074.         
  1075.         HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( 
  1076.             INetSharingPublicConnectionCollection * This,
  1077.             /* [in] */ REFIID riid,
  1078.             /* [size_is][in] */ LPOLESTR *rgszNames,
  1079.             /* [in] */ UINT cNames,
  1080.             /* [in] */ LCID lcid,
  1081.             /* [size_is][out] */ DISPID *rgDispId);
  1082.         
  1083.         /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( 
  1084.             INetSharingPublicConnectionCollection * This,
  1085.             /* [in] */ DISPID dispIdMember,
  1086.             /* [in] */ REFIID riid,
  1087.             /* [in] */ LCID lcid,
  1088.             /* [in] */ WORD wFlags,
  1089.             /* [out][in] */ DISPPARAMS *pDispParams,
  1090.             /* [out] */ VARIANT *pVarResult,
  1091.             /* [out] */ EXCEPINFO *pExcepInfo,
  1092.             /* [out] */ UINT *puArgErr);
  1093.         
  1094.         /* [helpstring][restricted][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get__NewEnum )( 
  1095.             INetSharingPublicConnectionCollection * This,
  1096.             /* [retval][out] */ IUnknown **pVal);
  1097.         
  1098.         /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Count )( 
  1099.             INetSharingPublicConnectionCollection * This,
  1100.             /* [retval][out] */ long *pVal);
  1101.         
  1102.         END_INTERFACE
  1103.     } INetSharingPublicConnectionCollectionVtbl;
  1104.     interface INetSharingPublicConnectionCollection
  1105.     {
  1106.         CONST_VTBL struct INetSharingPublicConnectionCollectionVtbl *lpVtbl;
  1107.     };
  1108.     
  1109. #ifdef COBJMACROS
  1110. #define INetSharingPublicConnectionCollection_QueryInterface(This,riid,ppvObject)
  1111.     (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  1112. #define INetSharingPublicConnectionCollection_AddRef(This)
  1113.     (This)->lpVtbl -> AddRef(This)
  1114. #define INetSharingPublicConnectionCollection_Release(This)
  1115.     (This)->lpVtbl -> Release(This)
  1116. #define INetSharingPublicConnectionCollection_GetTypeInfoCount(This,pctinfo)
  1117.     (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo)
  1118. #define INetSharingPublicConnectionCollection_GetTypeInfo(This,iTInfo,lcid,ppTInfo)
  1119.     (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo)
  1120. #define INetSharingPublicConnectionCollection_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)
  1121.     (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)
  1122. #define INetSharingPublicConnectionCollection_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)
  1123.     (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)
  1124. #define INetSharingPublicConnectionCollection_get__NewEnum(This,pVal)
  1125.     (This)->lpVtbl -> get__NewEnum(This,pVal)
  1126. #define INetSharingPublicConnectionCollection_get_Count(This,pVal)
  1127.     (This)->lpVtbl -> get_Count(This,pVal)
  1128. #endif /* COBJMACROS */
  1129. #endif  /* C style interface */
  1130. /* [helpstring][restricted][id][propget] */ HRESULT STDMETHODCALLTYPE INetSharingPublicConnectionCollection_get__NewEnum_Proxy( 
  1131.     INetSharingPublicConnectionCollection * This,
  1132.     /* [retval][out] */ IUnknown **pVal);
  1133. void __RPC_STUB INetSharingPublicConnectionCollection_get__NewEnum_Stub(
  1134.     IRpcStubBuffer *This,
  1135.     IRpcChannelBuffer *_pRpcChannelBuffer,
  1136.     PRPC_MESSAGE _pRpcMessage,
  1137.     DWORD *_pdwStubPhase);
  1138. /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE INetSharingPublicConnectionCollection_get_Count_Proxy( 
  1139.     INetSharingPublicConnectionCollection * This,
  1140.     /* [retval][out] */ long *pVal);
  1141. void __RPC_STUB INetSharingPublicConnectionCollection_get_Count_Stub(
  1142.     IRpcStubBuffer *This,
  1143.     IRpcChannelBuffer *_pRpcChannelBuffer,
  1144.     PRPC_MESSAGE _pRpcMessage,
  1145.     DWORD *_pdwStubPhase);
  1146. #endif  /* __INetSharingPublicConnectionCollection_INTERFACE_DEFINED__ */
  1147. #ifndef __INetSharingPrivateConnectionCollection_INTERFACE_DEFINED__
  1148. #define __INetSharingPrivateConnectionCollection_INTERFACE_DEFINED__
  1149. /* interface INetSharingPrivateConnectionCollection */
  1150. /* [unique][helpstring][dual][oleautomation][uuid][object] */ 
  1151. EXTERN_C const IID IID_INetSharingPrivateConnectionCollection;
  1152. #if defined(__cplusplus) && !defined(CINTERFACE)
  1153.     
  1154.     MIDL_INTERFACE("38AE69E0-4409-402A-A2CB-E965C727F840")
  1155.     INetSharingPrivateConnectionCollection : public IDispatch
  1156.     {
  1157.     public:
  1158.         virtual /* [helpstring][restricted][id][propget] */ HRESULT STDMETHODCALLTYPE get__NewEnum( 
  1159.             /* [retval][out] */ IUnknown **pVal) = 0;
  1160.         
  1161.         virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Count( 
  1162.             /* [retval][out] */ long *pVal) = 0;
  1163.         
  1164.     };
  1165.     
  1166. #else  /* C style interface */
  1167.     typedef struct INetSharingPrivateConnectionCollectionVtbl
  1168.     {
  1169.         BEGIN_INTERFACE
  1170.         
  1171.         HRESULT ( STDMETHODCALLTYPE *QueryInterface )( 
  1172.             INetSharingPrivateConnectionCollection * This,
  1173.             /* [in] */ REFIID riid,
  1174.             /* [iid_is][out] */ void **ppvObject);
  1175.         
  1176.         ULONG ( STDMETHODCALLTYPE *AddRef )( 
  1177.             INetSharingPrivateConnectionCollection * This);
  1178.         
  1179.         ULONG ( STDMETHODCALLTYPE *Release )( 
  1180.             INetSharingPrivateConnectionCollection * This);
  1181.         
  1182.         HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( 
  1183.             INetSharingPrivateConnectionCollection * This,
  1184.             /* [out] */ UINT *pctinfo);
  1185.         
  1186.         HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( 
  1187.             INetSharingPrivateConnectionCollection * This,
  1188.             /* [in] */ UINT iTInfo,
  1189.             /* [in] */ LCID lcid,
  1190.             /* [out] */ ITypeInfo **ppTInfo);
  1191.         
  1192.         HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( 
  1193.             INetSharingPrivateConnectionCollection * This,
  1194.             /* [in] */ REFIID riid,
  1195.             /* [size_is][in] */ LPOLESTR *rgszNames,
  1196.             /* [in] */ UINT cNames,
  1197.             /* [in] */ LCID lcid,
  1198.             /* [size_is][out] */ DISPID *rgDispId);
  1199.         
  1200.         /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( 
  1201.             INetSharingPrivateConnectionCollection * This,
  1202.             /* [in] */ DISPID dispIdMember,
  1203.             /* [in] */ REFIID riid,
  1204.             /* [in] */ LCID lcid,
  1205.             /* [in] */ WORD wFlags,
  1206.             /* [out][in] */ DISPPARAMS *pDispParams,
  1207.             /* [out] */ VARIANT *pVarResult,
  1208.             /* [out] */ EXCEPINFO *pExcepInfo,
  1209.             /* [out] */ UINT *puArgErr);
  1210.         
  1211.         /* [helpstring][restricted][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get__NewEnum )( 
  1212.             INetSharingPrivateConnectionCollection * This,
  1213.             /* [retval][out] */ IUnknown **pVal);
  1214.         
  1215.         /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Count )( 
  1216.             INetSharingPrivateConnectionCollection * This,
  1217.             /* [retval][out] */ long *pVal);
  1218.         
  1219.         END_INTERFACE
  1220.     } INetSharingPrivateConnectionCollectionVtbl;
  1221.     interface INetSharingPrivateConnectionCollection
  1222.     {
  1223.         CONST_VTBL struct INetSharingPrivateConnectionCollectionVtbl *lpVtbl;
  1224.     };
  1225.     
  1226. #ifdef COBJMACROS
  1227. #define INetSharingPrivateConnectionCollection_QueryInterface(This,riid,ppvObject)
  1228.     (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  1229. #define INetSharingPrivateConnectionCollection_AddRef(This)
  1230.     (This)->lpVtbl -> AddRef(This)
  1231. #define INetSharingPrivateConnectionCollection_Release(This)
  1232.     (This)->lpVtbl -> Release(This)
  1233. #define INetSharingPrivateConnectionCollection_GetTypeInfoCount(This,pctinfo)
  1234.     (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo)
  1235. #define INetSharingPrivateConnectionCollection_GetTypeInfo(This,iTInfo,lcid,ppTInfo)
  1236.     (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo)
  1237. #define INetSharingPrivateConnectionCollection_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)
  1238.     (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)
  1239. #define INetSharingPrivateConnectionCollection_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)
  1240.     (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)
  1241. #define INetSharingPrivateConnectionCollection_get__NewEnum(This,pVal)
  1242.     (This)->lpVtbl -> get__NewEnum(This,pVal)
  1243. #define INetSharingPrivateConnectionCollection_get_Count(This,pVal)
  1244.     (This)->lpVtbl -> get_Count(This,pVal)
  1245. #endif /* COBJMACROS */
  1246. #endif  /* C style interface */
  1247. /* [helpstring][restricted][id][propget] */ HRESULT STDMETHODCALLTYPE INetSharingPrivateConnectionCollection_get__NewEnum_Proxy( 
  1248.     INetSharingPrivateConnectionCollection * This,
  1249.     /* [retval][out] */ IUnknown **pVal);
  1250. void __RPC_STUB INetSharingPrivateConnectionCollection_get__NewEnum_Stub(
  1251.     IRpcStubBuffer *This,
  1252.     IRpcChannelBuffer *_pRpcChannelBuffer,
  1253.     PRPC_MESSAGE _pRpcMessage,
  1254.     DWORD *_pdwStubPhase);
  1255. /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE INetSharingPrivateConnectionCollection_get_Count_Proxy( 
  1256.     INetSharingPrivateConnectionCollection * This,
  1257.     /* [retval][out] */ long *pVal);
  1258. void __RPC_STUB INetSharingPrivateConnectionCollection_get_Count_Stub(
  1259.     IRpcStubBuffer *This,
  1260.     IRpcChannelBuffer *_pRpcChannelBuffer,
  1261.     PRPC_MESSAGE _pRpcMessage,
  1262.     DWORD *_pdwStubPhase);
  1263. #endif  /* __INetSharingPrivateConnectionCollection_INTERFACE_DEFINED__ */
  1264. #ifndef __INetSharingManager_INTERFACE_DEFINED__
  1265. #define __INetSharingManager_INTERFACE_DEFINED__
  1266. /* interface INetSharingManager */
  1267. /* [unique][dual][oleautomation][uuid][object] */ 
  1268. EXTERN_C const IID IID_INetSharingManager;
  1269. #if defined(__cplusplus) && !defined(CINTERFACE)
  1270.     
  1271.     MIDL_INTERFACE("C08956B7-1CD3-11D1-B1C5-00805FC1270E")
  1272.     INetSharingManager : public IDispatch
  1273.     {
  1274.     public:
  1275.         virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_SharingInstalled( 
  1276.             /* [retval][out] */ VARIANT_BOOL *pbInstalled) = 0;
  1277.         
  1278.         virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_EnumPublicConnections( 
  1279.             /* [in] */ SHARINGCONNECTION_ENUM_FLAGS Flags,
  1280.             /* [retval][out] */ INetSharingPublicConnectionCollection **ppColl) = 0;
  1281.         
  1282.         virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_EnumPrivateConnections( 
  1283.             /* [in] */ SHARINGCONNECTION_ENUM_FLAGS Flags,
  1284.             /* [retval][out] */ INetSharingPrivateConnectionCollection **ppColl) = 0;
  1285.         
  1286.         virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_INetSharingConfigurationForINetConnection( 
  1287.             /* [in] */ INetConnection *pNetConnection,
  1288.             /* [retval][out] */ INetSharingConfiguration **ppNetSharingConfiguration) = 0;
  1289.         
  1290.         virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_EnumEveryConnection( 
  1291.             /* [retval][out] */ INetSharingEveryConnectionCollection **ppColl) = 0;
  1292.         
  1293.         virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_NetConnectionProps( 
  1294.             /* [in] */ INetConnection *pNetConnection,
  1295.             /* [retval][out] */ INetConnectionProps **ppProps) = 0;
  1296.         
  1297.     };
  1298.     
  1299. #else  /* C style interface */
  1300.     typedef struct INetSharingManagerVtbl
  1301.     {
  1302.         BEGIN_INTERFACE
  1303.         
  1304.         HRESULT ( STDMETHODCALLTYPE *QueryInterface )( 
  1305.             INetSharingManager * This,
  1306.             /* [in] */ REFIID riid,
  1307.             /* [iid_is][out] */ void **ppvObject);
  1308.         
  1309.         ULONG ( STDMETHODCALLTYPE *AddRef )( 
  1310.             INetSharingManager * This);
  1311.         
  1312.         ULONG ( STDMETHODCALLTYPE *Release )( 
  1313.             INetSharingManager * This);
  1314.         
  1315.         HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( 
  1316.             INetSharingManager * This,
  1317.             /* [out] */ UINT *pctinfo);
  1318.         
  1319.         HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( 
  1320.             INetSharingManager * This,
  1321.             /* [in] */ UINT iTInfo,
  1322.             /* [in] */ LCID lcid,
  1323.             /* [out] */ ITypeInfo **ppTInfo);
  1324.         
  1325.         HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( 
  1326.             INetSharingManager * This,
  1327.             /* [in] */ REFIID riid,
  1328.             /* [size_is][in] */ LPOLESTR *rgszNames,
  1329.             /* [in] */ UINT cNames,
  1330.             /* [in] */ LCID lcid,
  1331.             /* [size_is][out] */ DISPID *rgDispId);
  1332.         
  1333.         /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( 
  1334.             INetSharingManager * This,
  1335.             /* [in] */ DISPID dispIdMember,
  1336.             /* [in] */ REFIID riid,
  1337.             /* [in] */ LCID lcid,
  1338.             /* [in] */ WORD wFlags,
  1339.             /* [out][in] */ DISPPARAMS *pDispParams,
  1340.             /* [out] */ VARIANT *pVarResult,
  1341.             /* [out] */ EXCEPINFO *pExcepInfo,
  1342.             /* [out] */ UINT *puArgErr);
  1343.         
  1344.         /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_SharingInstalled )( 
  1345.             INetSharingManager * This,
  1346.             /* [retval][out] */ VARIANT_BOOL *pbInstalled);
  1347.         
  1348.         /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_EnumPublicConnections )( 
  1349.             INetSharingManager * This,
  1350.             /* [in] */ SHARINGCONNECTION_ENUM_FLAGS Flags,
  1351.             /* [retval][out] */ INetSharingPublicConnectionCollection **ppColl);
  1352.         
  1353.         /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_EnumPrivateConnections )( 
  1354.             INetSharingManager * This,
  1355.             /* [in] */ SHARINGCONNECTION_ENUM_FLAGS Flags,
  1356.             /* [retval][out] */ INetSharingPrivateConnectionCollection **ppColl);
  1357.         
  1358.         /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_INetSharingConfigurationForINetConnection )( 
  1359.             INetSharingManager * This,
  1360.             /* [in] */ INetConnection *pNetConnection,
  1361.             /* [retval][out] */ INetSharingConfiguration **ppNetSharingConfiguration);
  1362.         
  1363.         /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_EnumEveryConnection )( 
  1364.             INetSharingManager * This,
  1365.             /* [retval][out] */ INetSharingEveryConnectionCollection **ppColl);
  1366.         
  1367.         /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_NetConnectionProps )( 
  1368.             INetSharingManager * This,
  1369.             /* [in] */ INetConnection *pNetConnection,
  1370.             /* [retval][out] */ INetConnectionProps **ppProps);
  1371.         
  1372.         END_INTERFACE
  1373.     } INetSharingManagerVtbl;
  1374.     interface INetSharingManager
  1375.     {
  1376.         CONST_VTBL struct INetSharingManagerVtbl *lpVtbl;
  1377.     };
  1378.     
  1379. #ifdef COBJMACROS
  1380. #define INetSharingManager_QueryInterface(This,riid,ppvObject)
  1381.     (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  1382. #define INetSharingManager_AddRef(This)
  1383.     (This)->lpVtbl -> AddRef(This)
  1384. #define INetSharingManager_Release(This)
  1385.     (This)->lpVtbl -> Release(This)
  1386. #define INetSharingManager_GetTypeInfoCount(This,pctinfo)
  1387.     (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo)
  1388. #define INetSharingManager_GetTypeInfo(This,iTInfo,lcid,ppTInfo)
  1389.     (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo)
  1390. #define INetSharingManager_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)
  1391.     (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)
  1392. #define INetSharingManager_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)
  1393.     (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)
  1394. #define INetSharingManager_get_SharingInstalled(This,pbInstalled)
  1395.     (This)->lpVtbl -> get_SharingInstalled(This,pbInstalled)
  1396. #define INetSharingManager_get_EnumPublicConnections(This,Flags,ppColl)
  1397.     (This)->lpVtbl -> get_EnumPublicConnections(This,Flags,ppColl)
  1398. #define INetSharingManager_get_EnumPrivateConnections(This,Flags,ppColl)
  1399.     (This)->lpVtbl -> get_EnumPrivateConnections(This,Flags,ppColl)
  1400. #define INetSharingManager_get_INetSharingConfigurationForINetConnection(This,pNetConnection,ppNetSharingConfiguration)
  1401.     (This)->lpVtbl -> get_INetSharingConfigurationForINetConnection(This,pNetConnection,ppNetSharingConfiguration)
  1402. #define INetSharingManager_get_EnumEveryConnection(This,ppColl)
  1403.     (This)->lpVtbl -> get_EnumEveryConnection(This,ppColl)
  1404. #define INetSharingManager_get_NetConnectionProps(This,pNetConnection,ppProps)
  1405.     (This)->lpVtbl -> get_NetConnectionProps(This,pNetConnection,ppProps)
  1406. #endif /* COBJMACROS */
  1407. #endif  /* C style interface */
  1408. /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE INetSharingManager_get_SharingInstalled_Proxy( 
  1409.     INetSharingManager * This,
  1410.     /* [retval][out] */ VARIANT_BOOL *pbInstalled);
  1411. void __RPC_STUB INetSharingManager_get_SharingInstalled_Stub(
  1412.     IRpcStubBuffer *This,
  1413.     IRpcChannelBuffer *_pRpcChannelBuffer,
  1414.     PRPC_MESSAGE _pRpcMessage,
  1415.     DWORD *_pdwStubPhase);
  1416. /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE INetSharingManager_get_EnumPublicConnections_Proxy( 
  1417.     INetSharingManager * This,
  1418.     /* [in] */ SHARINGCONNECTION_ENUM_FLAGS Flags,
  1419.     /* [retval][out] */ INetSharingPublicConnectionCollection **ppColl);
  1420. void __RPC_STUB INetSharingManager_get_EnumPublicConnections_Stub(
  1421.     IRpcStubBuffer *This,
  1422.     IRpcChannelBuffer *_pRpcChannelBuffer,
  1423.     PRPC_MESSAGE _pRpcMessage,
  1424.     DWORD *_pdwStubPhase);
  1425. /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE INetSharingManager_get_EnumPrivateConnections_Proxy( 
  1426.     INetSharingManager * This,
  1427.     /* [in] */ SHARINGCONNECTION_ENUM_FLAGS Flags,
  1428.     /* [retval][out] */ INetSharingPrivateConnectionCollection **ppColl);
  1429. void __RPC_STUB INetSharingManager_get_EnumPrivateConnections_Stub(
  1430.     IRpcStubBuffer *This,
  1431.     IRpcChannelBuffer *_pRpcChannelBuffer,
  1432.     PRPC_MESSAGE _pRpcMessage,
  1433.     DWORD *_pdwStubPhase);
  1434. /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE INetSharingManager_get_INetSharingConfigurationForINetConnection_Proxy( 
  1435.     INetSharingManager * This,
  1436.     /* [in] */ INetConnection *pNetConnection,
  1437.     /* [retval][out] */ INetSharingConfiguration **ppNetSharingConfiguration);
  1438. void __RPC_STUB INetSharingManager_get_INetSharingConfigurationForINetConnection_Stub(
  1439.     IRpcStubBuffer *This,
  1440.     IRpcChannelBuffer *_pRpcChannelBuffer,
  1441.     PRPC_MESSAGE _pRpcMessage,
  1442.     DWORD *_pdwStubPhase);
  1443. /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE INetSharingManager_get_EnumEveryConnection_Proxy( 
  1444.     INetSharingManager * This,
  1445.     /* [retval][out] */ INetSharingEveryConnectionCollection **ppColl);
  1446. void __RPC_STUB INetSharingManager_get_EnumEveryConnection_Stub(
  1447.     IRpcStubBuffer *This,
  1448.     IRpcChannelBuffer *_pRpcChannelBuffer,
  1449.     PRPC_MESSAGE _pRpcMessage,
  1450.     DWORD *_pdwStubPhase);
  1451. /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE INetSharingManager_get_NetConnectionProps_Proxy( 
  1452.     INetSharingManager * This,
  1453.     /* [in] */ INetConnection *pNetConnection,
  1454.     /* [retval][out] */ INetConnectionProps **ppProps);
  1455. void __RPC_STUB INetSharingManager_get_NetConnectionProps_Stub(
  1456.     IRpcStubBuffer *This,
  1457.     IRpcChannelBuffer *_pRpcChannelBuffer,
  1458.     PRPC_MESSAGE _pRpcMessage,
  1459.     DWORD *_pdwStubPhase);
  1460. #endif  /* __INetSharingManager_INTERFACE_DEFINED__ */
  1461. /* interface __MIDL_itf_netcon_0134 */
  1462. /* [local] */ 
  1463. #define ALG_SETUP_PORTS_LIST_BYTE_SIZE ( 2048 )
  1464. extern RPC_IF_HANDLE __MIDL_itf_netcon_0134_v0_0_c_ifspec;
  1465. extern RPC_IF_HANDLE __MIDL_itf_netcon_0134_v0_0_s_ifspec;
  1466. #ifndef __IAlgSetup_INTERFACE_DEFINED__
  1467. #define __IAlgSetup_INTERFACE_DEFINED__
  1468. /* interface IAlgSetup */
  1469. /* [unique][helpstring][dual][uuid][object] */ 
  1470. EXTERN_C const IID IID_IAlgSetup;
  1471. #if defined(__cplusplus) && !defined(CINTERFACE)
  1472.     
  1473.     MIDL_INTERFACE("A779AF1A-009A-4C44-B9F0-8F0F4CF2AE49")
  1474.     IAlgSetup : public IDispatch
  1475.     {
  1476.     public:
  1477.         virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Add( 
  1478.             /* [in] */ BSTR pszProgID,
  1479.             /* [in] */ BSTR pszPublisher,
  1480.             /* [in] */ BSTR pszProduct,
  1481.             /* [in] */ BSTR pszVersion,
  1482.             /* [in] */ short nProtocol,
  1483.             /* [in] */ BSTR pszPorts) = 0;
  1484.         
  1485.         virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Remove( 
  1486.             /* [in] */ BSTR pszProgID) = 0;
  1487.         
  1488.     };
  1489.     
  1490. #else  /* C style interface */
  1491.     typedef struct IAlgSetupVtbl
  1492.     {
  1493.         BEGIN_INTERFACE
  1494.         
  1495.         HRESULT ( STDMETHODCALLTYPE *QueryInterface )( 
  1496.             IAlgSetup * This,
  1497.             /* [in] */ REFIID riid,
  1498.             /* [iid_is][out] */ void **ppvObject);
  1499.         
  1500.         ULONG ( STDMETHODCALLTYPE *AddRef )( 
  1501.             IAlgSetup * This);
  1502.         
  1503.         ULONG ( STDMETHODCALLTYPE *Release )( 
  1504.             IAlgSetup * This);
  1505.         
  1506.         HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( 
  1507.             IAlgSetup * This,
  1508.             /* [out] */ UINT *pctinfo);
  1509.         
  1510.         HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( 
  1511.             IAlgSetup * This,
  1512.             /* [in] */ UINT iTInfo,
  1513.             /* [in] */ LCID lcid,
  1514.             /* [out] */ ITypeInfo **ppTInfo);
  1515.         
  1516.         HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( 
  1517.             IAlgSetup * This,
  1518.             /* [in] */ REFIID riid,
  1519.             /* [size_is][in] */ LPOLESTR *rgszNames,
  1520.             /* [in] */ UINT cNames,
  1521.             /* [in] */ LCID lcid,
  1522.             /* [size_is][out] */ DISPID *rgDispId);
  1523.         
  1524.         /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( 
  1525.             IAlgSetup * This,
  1526.             /* [in] */ DISPID dispIdMember,
  1527.             /* [in] */ REFIID riid,
  1528.             /* [in] */ LCID lcid,
  1529.             /* [in] */ WORD wFlags,
  1530.             /* [out][in] */ DISPPARAMS *pDispParams,
  1531.             /* [out] */ VARIANT *pVarResult,
  1532.             /* [out] */ EXCEPINFO *pExcepInfo,
  1533.             /* [out] */ UINT *puArgErr);
  1534.         
  1535.         /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Add )( 
  1536.             IAlgSetup * This,
  1537.             /* [in] */ BSTR pszProgID,
  1538.             /* [in] */ BSTR pszPublisher,
  1539.             /* [in] */ BSTR pszProduct,
  1540.             /* [in] */ BSTR pszVersion,
  1541.             /* [in] */ short nProtocol,
  1542.             /* [in] */ BSTR pszPorts);
  1543.         
  1544.         /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Remove )( 
  1545.             IAlgSetup * This,
  1546.             /* [in] */ BSTR pszProgID);
  1547.         
  1548.         END_INTERFACE
  1549.     } IAlgSetupVtbl;
  1550.     interface IAlgSetup
  1551.     {
  1552.         CONST_VTBL struct IAlgSetupVtbl *lpVtbl;
  1553.     };
  1554.     
  1555. #ifdef COBJMACROS
  1556. #define IAlgSetup_QueryInterface(This,riid,ppvObject)
  1557.     (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  1558. #define IAlgSetup_AddRef(This)
  1559.     (This)->lpVtbl -> AddRef(This)
  1560. #define IAlgSetup_Release(This)
  1561.     (This)->lpVtbl -> Release(This)
  1562. #define IAlgSetup_GetTypeInfoCount(This,pctinfo)
  1563.     (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo)
  1564. #define IAlgSetup_GetTypeInfo(This,iTInfo,lcid,ppTInfo)
  1565.     (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo)
  1566. #define IAlgSetup_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)
  1567.     (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)
  1568. #define IAlgSetup_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)
  1569.     (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)
  1570. #define IAlgSetup_Add(This,pszProgID,pszPublisher,pszProduct,pszVersion,nProtocol,pszPorts)
  1571.     (This)->lpVtbl -> Add(This,pszProgID,pszPublisher,pszProduct,pszVersion,nProtocol,pszPorts)
  1572. #define IAlgSetup_Remove(This,pszProgID)
  1573.     (This)->lpVtbl -> Remove(This,pszProgID)
  1574. #endif /* COBJMACROS */
  1575. #endif  /* C style interface */
  1576. /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE IAlgSetup_Add_Proxy( 
  1577.     IAlgSetup * This,
  1578.     /* [in] */ BSTR pszProgID,
  1579.     /* [in] */ BSTR pszPublisher,
  1580.     /* [in] */ BSTR pszProduct,
  1581.     /* [in] */ BSTR pszVersion,
  1582.     /* [in] */ short nProtocol,
  1583.     /* [in] */ BSTR pszPorts);
  1584. void __RPC_STUB IAlgSetup_Add_Stub(
  1585.     IRpcStubBuffer *This,
  1586.     IRpcChannelBuffer *_pRpcChannelBuffer,
  1587.     PRPC_MESSAGE _pRpcMessage,
  1588.     DWORD *_pdwStubPhase);
  1589. /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE IAlgSetup_Remove_Proxy( 
  1590.     IAlgSetup * This,
  1591.     /* [in] */ BSTR pszProgID);
  1592. void __RPC_STUB IAlgSetup_Remove_Stub(
  1593.     IRpcStubBuffer *This,
  1594.     IRpcChannelBuffer *_pRpcChannelBuffer,
  1595.     PRPC_MESSAGE _pRpcMessage,
  1596.     DWORD *_pdwStubPhase);
  1597. #endif  /* __IAlgSetup_INTERFACE_DEFINED__ */
  1598. #ifndef __NETCONLib_LIBRARY_DEFINED__
  1599. #define __NETCONLib_LIBRARY_DEFINED__
  1600. /* library NETCONLib */
  1601. /* [helpstring][version][uuid] */ 
  1602. EXTERN_C const IID LIBID_NETCONLib;
  1603. EXTERN_C const CLSID CLSID_NetSharingManager;
  1604. #ifdef __cplusplus
  1605. class DECLSPEC_UUID("5C63C1AD-3956-4FF8-8486-40034758315B")
  1606. NetSharingManager;
  1607. #endif
  1608. EXTERN_C const CLSID CLSID_AlgSetup;
  1609. #ifdef __cplusplus
  1610. class DECLSPEC_UUID("27D0BCCC-344D-4287-AF37-0C72C161C14C")
  1611. AlgSetup;
  1612. #endif
  1613. #endif /* __NETCONLib_LIBRARY_DEFINED__ */
  1614. /* Additional Prototypes for ALL interfaces */
  1615. unsigned long             __RPC_USER  BSTR_UserSize(     unsigned long *, unsigned long            , BSTR * ); 
  1616. unsigned char * __RPC_USER  BSTR_UserMarshal(  unsigned long *, unsigned char *, BSTR * ); 
  1617. unsigned char * __RPC_USER  BSTR_UserUnmarshal(unsigned long *, unsigned char *, BSTR * ); 
  1618. void                      __RPC_USER  BSTR_UserFree(     unsigned long *, BSTR * ); 
  1619. unsigned long             __RPC_USER  VARIANT_UserSize(     unsigned long *, unsigned long            , VARIANT * ); 
  1620. unsigned char * __RPC_USER  VARIANT_UserMarshal(  unsigned long *, unsigned char *, VARIANT * ); 
  1621. unsigned char * __RPC_USER  VARIANT_UserUnmarshal(unsigned long *, unsigned char *, VARIANT * ); 
  1622. void                      __RPC_USER  VARIANT_UserFree(     unsigned long *, VARIANT * ); 
  1623. /* end of Additional Prototypes */
  1624. #ifdef __cplusplus
  1625. }
  1626. #endif
  1627. #endif