Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1962 lines
66 KiB

  1. /* this ALWAYS GENERATED file contains the definitions for the interfaces */
  2. /* File created by MIDL compiler version 6.00.0361 */
  3. /* Compiler settings for natupnp.idl:
  4. Oicf, W1, Zp8, env=Win32 (32b run)
  5. protocol : dce , ms_ext, c_ext, robust
  6. error checks: allocation ref bounds_check enum stub_data
  7. VC __declspec() decoration level:
  8. __declspec(uuid()), __declspec(selectany), __declspec(novtable)
  9. DECLSPEC_UUID(), MIDL_INTERFACE()
  10. */
  11. //@@MIDL_FILE_HEADING( )
  12. #pragma warning( disable: 4049 ) /* more than 64k source lines */
  13. /* verify that the <rpcndr.h> version is high enough to compile this file*/
  14. #ifndef __REQUIRED_RPCNDR_H_VERSION__
  15. #define __REQUIRED_RPCNDR_H_VERSION__ 475
  16. #endif
  17. #include "rpc.h"
  18. #include "rpcndr.h"
  19. #ifndef __RPCNDR_H_VERSION__
  20. #error this stub requires an updated version of <rpcndr.h>
  21. #endif // __RPCNDR_H_VERSION__
  22. #ifndef COM_NO_WINDOWS_H
  23. #include "windows.h"
  24. #include "ole2.h"
  25. #endif /*COM_NO_WINDOWS_H*/
  26. #ifndef __natupnp_h__
  27. #define __natupnp_h__
  28. #if defined(_MSC_VER) && (_MSC_VER >= 1020)
  29. #pragma once
  30. #endif
  31. /* Forward Declarations */
  32. #ifndef __IUPnPNAT_FWD_DEFINED__
  33. #define __IUPnPNAT_FWD_DEFINED__
  34. typedef interface IUPnPNAT IUPnPNAT;
  35. #endif /* __IUPnPNAT_FWD_DEFINED__ */
  36. #ifndef __INATEventManager_FWD_DEFINED__
  37. #define __INATEventManager_FWD_DEFINED__
  38. typedef interface INATEventManager INATEventManager;
  39. #endif /* __INATEventManager_FWD_DEFINED__ */
  40. #ifndef __INATExternalIPAddressCallback_FWD_DEFINED__
  41. #define __INATExternalIPAddressCallback_FWD_DEFINED__
  42. typedef interface INATExternalIPAddressCallback INATExternalIPAddressCallback;
  43. #endif /* __INATExternalIPAddressCallback_FWD_DEFINED__ */
  44. #ifndef __INATNumberOfEntriesCallback_FWD_DEFINED__
  45. #define __INATNumberOfEntriesCallback_FWD_DEFINED__
  46. typedef interface INATNumberOfEntriesCallback INATNumberOfEntriesCallback;
  47. #endif /* __INATNumberOfEntriesCallback_FWD_DEFINED__ */
  48. #ifndef __IDynamicPortMappingCollection_FWD_DEFINED__
  49. #define __IDynamicPortMappingCollection_FWD_DEFINED__
  50. typedef interface IDynamicPortMappingCollection IDynamicPortMappingCollection;
  51. #endif /* __IDynamicPortMappingCollection_FWD_DEFINED__ */
  52. #ifndef __IDynamicPortMapping_FWD_DEFINED__
  53. #define __IDynamicPortMapping_FWD_DEFINED__
  54. typedef interface IDynamicPortMapping IDynamicPortMapping;
  55. #endif /* __IDynamicPortMapping_FWD_DEFINED__ */
  56. #ifndef __IStaticPortMappingCollection_FWD_DEFINED__
  57. #define __IStaticPortMappingCollection_FWD_DEFINED__
  58. typedef interface IStaticPortMappingCollection IStaticPortMappingCollection;
  59. #endif /* __IStaticPortMappingCollection_FWD_DEFINED__ */
  60. #ifndef __IStaticPortMapping_FWD_DEFINED__
  61. #define __IStaticPortMapping_FWD_DEFINED__
  62. typedef interface IStaticPortMapping IStaticPortMapping;
  63. #endif /* __IStaticPortMapping_FWD_DEFINED__ */
  64. #ifndef __UPnPNAT_FWD_DEFINED__
  65. #define __UPnPNAT_FWD_DEFINED__
  66. #ifdef __cplusplus
  67. typedef class UPnPNAT UPnPNAT;
  68. #else
  69. typedef struct UPnPNAT UPnPNAT;
  70. #endif /* __cplusplus */
  71. #endif /* __UPnPNAT_FWD_DEFINED__ */
  72. /* header files for imported files */
  73. #include "oaidl.h"
  74. #include "ocidl.h"
  75. #ifdef __cplusplus
  76. extern "C"{
  77. #endif
  78. void * __RPC_USER MIDL_user_allocate(size_t);
  79. void __RPC_USER MIDL_user_free( void * );
  80. /* interface __MIDL_itf_natupnp_0000 */
  81. /* [local] */
  82. //+-------------------------------------------------------------------------
  83. //
  84. // Microsoft Windows
  85. // Copyright (C) Microsoft Corporation, 1992-2001.
  86. //
  87. //--------------------------------------------------------------------------
  88. // MODULE: natupnp.h
  89. //
  90. extern RPC_IF_HANDLE __MIDL_itf_natupnp_0000_v0_0_c_ifspec;
  91. extern RPC_IF_HANDLE __MIDL_itf_natupnp_0000_v0_0_s_ifspec;
  92. #ifndef __IUPnPNAT_INTERFACE_DEFINED__
  93. #define __IUPnPNAT_INTERFACE_DEFINED__
  94. /* interface IUPnPNAT */
  95. /* [unique][helpstring][dual][uuid][object] */
  96. EXTERN_C const IID IID_IUPnPNAT;
  97. #if defined(__cplusplus) && !defined(CINTERFACE)
  98. MIDL_INTERFACE("B171C812-CC76-485A-94D8-B6B3A2794E99")
  99. IUPnPNAT : public IDispatch
  100. {
  101. public:
  102. virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_StaticPortMappingCollection(
  103. /* [retval][out] */ IStaticPortMappingCollection **ppSPMs) = 0;
  104. virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_DynamicPortMappingCollection(
  105. /* [retval][out] */ IDynamicPortMappingCollection **ppDPMs) = 0;
  106. virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_NATEventManager(
  107. /* [retval][out] */ INATEventManager **ppNEM) = 0;
  108. };
  109. #else /* C style interface */
  110. typedef struct IUPnPNATVtbl
  111. {
  112. BEGIN_INTERFACE
  113. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  114. IUPnPNAT * This,
  115. /* [in] */ REFIID riid,
  116. /* [iid_is][out] */ void **ppvObject);
  117. ULONG ( STDMETHODCALLTYPE *AddRef )(
  118. IUPnPNAT * This);
  119. ULONG ( STDMETHODCALLTYPE *Release )(
  120. IUPnPNAT * This);
  121. HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )(
  122. IUPnPNAT * This,
  123. /* [out] */ UINT *pctinfo);
  124. HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )(
  125. IUPnPNAT * This,
  126. /* [in] */ UINT iTInfo,
  127. /* [in] */ LCID lcid,
  128. /* [out] */ ITypeInfo **ppTInfo);
  129. HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )(
  130. IUPnPNAT * This,
  131. /* [in] */ REFIID riid,
  132. /* [size_is][in] */ LPOLESTR *rgszNames,
  133. /* [in] */ UINT cNames,
  134. /* [in] */ LCID lcid,
  135. /* [size_is][out] */ DISPID *rgDispId);
  136. /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )(
  137. IUPnPNAT * This,
  138. /* [in] */ DISPID dispIdMember,
  139. /* [in] */ REFIID riid,
  140. /* [in] */ LCID lcid,
  141. /* [in] */ WORD wFlags,
  142. /* [out][in] */ DISPPARAMS *pDispParams,
  143. /* [out] */ VARIANT *pVarResult,
  144. /* [out] */ EXCEPINFO *pExcepInfo,
  145. /* [out] */ UINT *puArgErr);
  146. /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_StaticPortMappingCollection )(
  147. IUPnPNAT * This,
  148. /* [retval][out] */ IStaticPortMappingCollection **ppSPMs);
  149. /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_DynamicPortMappingCollection )(
  150. IUPnPNAT * This,
  151. /* [retval][out] */ IDynamicPortMappingCollection **ppDPMs);
  152. /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_NATEventManager )(
  153. IUPnPNAT * This,
  154. /* [retval][out] */ INATEventManager **ppNEM);
  155. END_INTERFACE
  156. } IUPnPNATVtbl;
  157. interface IUPnPNAT
  158. {
  159. CONST_VTBL struct IUPnPNATVtbl *lpVtbl;
  160. };
  161. #ifdef COBJMACROS
  162. #define IUPnPNAT_QueryInterface(This,riid,ppvObject) \
  163. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  164. #define IUPnPNAT_AddRef(This) \
  165. (This)->lpVtbl -> AddRef(This)
  166. #define IUPnPNAT_Release(This) \
  167. (This)->lpVtbl -> Release(This)
  168. #define IUPnPNAT_GetTypeInfoCount(This,pctinfo) \
  169. (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo)
  170. #define IUPnPNAT_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \
  171. (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo)
  172. #define IUPnPNAT_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \
  173. (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)
  174. #define IUPnPNAT_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \
  175. (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)
  176. #define IUPnPNAT_get_StaticPortMappingCollection(This,ppSPMs) \
  177. (This)->lpVtbl -> get_StaticPortMappingCollection(This,ppSPMs)
  178. #define IUPnPNAT_get_DynamicPortMappingCollection(This,ppDPMs) \
  179. (This)->lpVtbl -> get_DynamicPortMappingCollection(This,ppDPMs)
  180. #define IUPnPNAT_get_NATEventManager(This,ppNEM) \
  181. (This)->lpVtbl -> get_NATEventManager(This,ppNEM)
  182. #endif /* COBJMACROS */
  183. #endif /* C style interface */
  184. /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE IUPnPNAT_get_StaticPortMappingCollection_Proxy(
  185. IUPnPNAT * This,
  186. /* [retval][out] */ IStaticPortMappingCollection **ppSPMs);
  187. void __RPC_STUB IUPnPNAT_get_StaticPortMappingCollection_Stub(
  188. IRpcStubBuffer *This,
  189. IRpcChannelBuffer *_pRpcChannelBuffer,
  190. PRPC_MESSAGE _pRpcMessage,
  191. DWORD *_pdwStubPhase);
  192. /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE IUPnPNAT_get_DynamicPortMappingCollection_Proxy(
  193. IUPnPNAT * This,
  194. /* [retval][out] */ IDynamicPortMappingCollection **ppDPMs);
  195. void __RPC_STUB IUPnPNAT_get_DynamicPortMappingCollection_Stub(
  196. IRpcStubBuffer *This,
  197. IRpcChannelBuffer *_pRpcChannelBuffer,
  198. PRPC_MESSAGE _pRpcMessage,
  199. DWORD *_pdwStubPhase);
  200. /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE IUPnPNAT_get_NATEventManager_Proxy(
  201. IUPnPNAT * This,
  202. /* [retval][out] */ INATEventManager **ppNEM);
  203. void __RPC_STUB IUPnPNAT_get_NATEventManager_Stub(
  204. IRpcStubBuffer *This,
  205. IRpcChannelBuffer *_pRpcChannelBuffer,
  206. PRPC_MESSAGE _pRpcMessage,
  207. DWORD *_pdwStubPhase);
  208. #endif /* __IUPnPNAT_INTERFACE_DEFINED__ */
  209. #ifndef __INATEventManager_INTERFACE_DEFINED__
  210. #define __INATEventManager_INTERFACE_DEFINED__
  211. /* interface INATEventManager */
  212. /* [unique][helpstring][dual][uuid][object] */
  213. EXTERN_C const IID IID_INATEventManager;
  214. #if defined(__cplusplus) && !defined(CINTERFACE)
  215. MIDL_INTERFACE("624BD588-9060-4109-B0B0-1ADBBCAC32DF")
  216. INATEventManager : public IDispatch
  217. {
  218. public:
  219. virtual /* [helpstring][propput][id] */ HRESULT STDMETHODCALLTYPE put_ExternalIPAddressCallback(
  220. /* [in] */ IUnknown *pUnk) = 0;
  221. virtual /* [helpstring][propput][id] */ HRESULT STDMETHODCALLTYPE put_NumberOfEntriesCallback(
  222. /* [in] */ IUnknown *pUnk) = 0;
  223. };
  224. #else /* C style interface */
  225. typedef struct INATEventManagerVtbl
  226. {
  227. BEGIN_INTERFACE
  228. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  229. INATEventManager * This,
  230. /* [in] */ REFIID riid,
  231. /* [iid_is][out] */ void **ppvObject);
  232. ULONG ( STDMETHODCALLTYPE *AddRef )(
  233. INATEventManager * This);
  234. ULONG ( STDMETHODCALLTYPE *Release )(
  235. INATEventManager * This);
  236. HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )(
  237. INATEventManager * This,
  238. /* [out] */ UINT *pctinfo);
  239. HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )(
  240. INATEventManager * This,
  241. /* [in] */ UINT iTInfo,
  242. /* [in] */ LCID lcid,
  243. /* [out] */ ITypeInfo **ppTInfo);
  244. HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )(
  245. INATEventManager * This,
  246. /* [in] */ REFIID riid,
  247. /* [size_is][in] */ LPOLESTR *rgszNames,
  248. /* [in] */ UINT cNames,
  249. /* [in] */ LCID lcid,
  250. /* [size_is][out] */ DISPID *rgDispId);
  251. /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )(
  252. INATEventManager * This,
  253. /* [in] */ DISPID dispIdMember,
  254. /* [in] */ REFIID riid,
  255. /* [in] */ LCID lcid,
  256. /* [in] */ WORD wFlags,
  257. /* [out][in] */ DISPPARAMS *pDispParams,
  258. /* [out] */ VARIANT *pVarResult,
  259. /* [out] */ EXCEPINFO *pExcepInfo,
  260. /* [out] */ UINT *puArgErr);
  261. /* [helpstring][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_ExternalIPAddressCallback )(
  262. INATEventManager * This,
  263. /* [in] */ IUnknown *pUnk);
  264. /* [helpstring][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_NumberOfEntriesCallback )(
  265. INATEventManager * This,
  266. /* [in] */ IUnknown *pUnk);
  267. END_INTERFACE
  268. } INATEventManagerVtbl;
  269. interface INATEventManager
  270. {
  271. CONST_VTBL struct INATEventManagerVtbl *lpVtbl;
  272. };
  273. #ifdef COBJMACROS
  274. #define INATEventManager_QueryInterface(This,riid,ppvObject) \
  275. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  276. #define INATEventManager_AddRef(This) \
  277. (This)->lpVtbl -> AddRef(This)
  278. #define INATEventManager_Release(This) \
  279. (This)->lpVtbl -> Release(This)
  280. #define INATEventManager_GetTypeInfoCount(This,pctinfo) \
  281. (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo)
  282. #define INATEventManager_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \
  283. (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo)
  284. #define INATEventManager_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \
  285. (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)
  286. #define INATEventManager_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \
  287. (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)
  288. #define INATEventManager_put_ExternalIPAddressCallback(This,pUnk) \
  289. (This)->lpVtbl -> put_ExternalIPAddressCallback(This,pUnk)
  290. #define INATEventManager_put_NumberOfEntriesCallback(This,pUnk) \
  291. (This)->lpVtbl -> put_NumberOfEntriesCallback(This,pUnk)
  292. #endif /* COBJMACROS */
  293. #endif /* C style interface */
  294. /* [helpstring][propput][id] */ HRESULT STDMETHODCALLTYPE INATEventManager_put_ExternalIPAddressCallback_Proxy(
  295. INATEventManager * This,
  296. /* [in] */ IUnknown *pUnk);
  297. void __RPC_STUB INATEventManager_put_ExternalIPAddressCallback_Stub(
  298. IRpcStubBuffer *This,
  299. IRpcChannelBuffer *_pRpcChannelBuffer,
  300. PRPC_MESSAGE _pRpcMessage,
  301. DWORD *_pdwStubPhase);
  302. /* [helpstring][propput][id] */ HRESULT STDMETHODCALLTYPE INATEventManager_put_NumberOfEntriesCallback_Proxy(
  303. INATEventManager * This,
  304. /* [in] */ IUnknown *pUnk);
  305. void __RPC_STUB INATEventManager_put_NumberOfEntriesCallback_Stub(
  306. IRpcStubBuffer *This,
  307. IRpcChannelBuffer *_pRpcChannelBuffer,
  308. PRPC_MESSAGE _pRpcMessage,
  309. DWORD *_pdwStubPhase);
  310. #endif /* __INATEventManager_INTERFACE_DEFINED__ */
  311. #ifndef __INATExternalIPAddressCallback_INTERFACE_DEFINED__
  312. #define __INATExternalIPAddressCallback_INTERFACE_DEFINED__
  313. /* interface INATExternalIPAddressCallback */
  314. /* [unique][helpstring][uuid][object] */
  315. EXTERN_C const IID IID_INATExternalIPAddressCallback;
  316. #if defined(__cplusplus) && !defined(CINTERFACE)
  317. MIDL_INTERFACE("9C416740-A34E-446F-BA06-ABD04C3149AE")
  318. INATExternalIPAddressCallback : public IUnknown
  319. {
  320. public:
  321. virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE NewExternalIPAddress(
  322. /* [in] */ BSTR bstrNewExternalIPAddress) = 0;
  323. };
  324. #else /* C style interface */
  325. typedef struct INATExternalIPAddressCallbackVtbl
  326. {
  327. BEGIN_INTERFACE
  328. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  329. INATExternalIPAddressCallback * This,
  330. /* [in] */ REFIID riid,
  331. /* [iid_is][out] */ void **ppvObject);
  332. ULONG ( STDMETHODCALLTYPE *AddRef )(
  333. INATExternalIPAddressCallback * This);
  334. ULONG ( STDMETHODCALLTYPE *Release )(
  335. INATExternalIPAddressCallback * This);
  336. /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *NewExternalIPAddress )(
  337. INATExternalIPAddressCallback * This,
  338. /* [in] */ BSTR bstrNewExternalIPAddress);
  339. END_INTERFACE
  340. } INATExternalIPAddressCallbackVtbl;
  341. interface INATExternalIPAddressCallback
  342. {
  343. CONST_VTBL struct INATExternalIPAddressCallbackVtbl *lpVtbl;
  344. };
  345. #ifdef COBJMACROS
  346. #define INATExternalIPAddressCallback_QueryInterface(This,riid,ppvObject) \
  347. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  348. #define INATExternalIPAddressCallback_AddRef(This) \
  349. (This)->lpVtbl -> AddRef(This)
  350. #define INATExternalIPAddressCallback_Release(This) \
  351. (This)->lpVtbl -> Release(This)
  352. #define INATExternalIPAddressCallback_NewExternalIPAddress(This,bstrNewExternalIPAddress) \
  353. (This)->lpVtbl -> NewExternalIPAddress(This,bstrNewExternalIPAddress)
  354. #endif /* COBJMACROS */
  355. #endif /* C style interface */
  356. /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE INATExternalIPAddressCallback_NewExternalIPAddress_Proxy(
  357. INATExternalIPAddressCallback * This,
  358. /* [in] */ BSTR bstrNewExternalIPAddress);
  359. void __RPC_STUB INATExternalIPAddressCallback_NewExternalIPAddress_Stub(
  360. IRpcStubBuffer *This,
  361. IRpcChannelBuffer *_pRpcChannelBuffer,
  362. PRPC_MESSAGE _pRpcMessage,
  363. DWORD *_pdwStubPhase);
  364. #endif /* __INATExternalIPAddressCallback_INTERFACE_DEFINED__ */
  365. #ifndef __INATNumberOfEntriesCallback_INTERFACE_DEFINED__
  366. #define __INATNumberOfEntriesCallback_INTERFACE_DEFINED__
  367. /* interface INATNumberOfEntriesCallback */
  368. /* [unique][helpstring][uuid][object] */
  369. EXTERN_C const IID IID_INATNumberOfEntriesCallback;
  370. #if defined(__cplusplus) && !defined(CINTERFACE)
  371. MIDL_INTERFACE("C83A0A74-91EE-41B6-B67A-67E0F00BBD78")
  372. INATNumberOfEntriesCallback : public IUnknown
  373. {
  374. public:
  375. virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE NewNumberOfEntries(
  376. /* [in] */ long lNewNumberOfEntries) = 0;
  377. };
  378. #else /* C style interface */
  379. typedef struct INATNumberOfEntriesCallbackVtbl
  380. {
  381. BEGIN_INTERFACE
  382. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  383. INATNumberOfEntriesCallback * This,
  384. /* [in] */ REFIID riid,
  385. /* [iid_is][out] */ void **ppvObject);
  386. ULONG ( STDMETHODCALLTYPE *AddRef )(
  387. INATNumberOfEntriesCallback * This);
  388. ULONG ( STDMETHODCALLTYPE *Release )(
  389. INATNumberOfEntriesCallback * This);
  390. /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *NewNumberOfEntries )(
  391. INATNumberOfEntriesCallback * This,
  392. /* [in] */ long lNewNumberOfEntries);
  393. END_INTERFACE
  394. } INATNumberOfEntriesCallbackVtbl;
  395. interface INATNumberOfEntriesCallback
  396. {
  397. CONST_VTBL struct INATNumberOfEntriesCallbackVtbl *lpVtbl;
  398. };
  399. #ifdef COBJMACROS
  400. #define INATNumberOfEntriesCallback_QueryInterface(This,riid,ppvObject) \
  401. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  402. #define INATNumberOfEntriesCallback_AddRef(This) \
  403. (This)->lpVtbl -> AddRef(This)
  404. #define INATNumberOfEntriesCallback_Release(This) \
  405. (This)->lpVtbl -> Release(This)
  406. #define INATNumberOfEntriesCallback_NewNumberOfEntries(This,lNewNumberOfEntries) \
  407. (This)->lpVtbl -> NewNumberOfEntries(This,lNewNumberOfEntries)
  408. #endif /* COBJMACROS */
  409. #endif /* C style interface */
  410. /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE INATNumberOfEntriesCallback_NewNumberOfEntries_Proxy(
  411. INATNumberOfEntriesCallback * This,
  412. /* [in] */ long lNewNumberOfEntries);
  413. void __RPC_STUB INATNumberOfEntriesCallback_NewNumberOfEntries_Stub(
  414. IRpcStubBuffer *This,
  415. IRpcChannelBuffer *_pRpcChannelBuffer,
  416. PRPC_MESSAGE _pRpcMessage,
  417. DWORD *_pdwStubPhase);
  418. #endif /* __INATNumberOfEntriesCallback_INTERFACE_DEFINED__ */
  419. #ifndef __IDynamicPortMappingCollection_INTERFACE_DEFINED__
  420. #define __IDynamicPortMappingCollection_INTERFACE_DEFINED__
  421. /* interface IDynamicPortMappingCollection */
  422. /* [unique][helpstring][dual][uuid][object] */
  423. EXTERN_C const IID IID_IDynamicPortMappingCollection;
  424. #if defined(__cplusplus) && !defined(CINTERFACE)
  425. MIDL_INTERFACE("B60DE00F-156E-4E8D-9EC1-3A2342C10899")
  426. IDynamicPortMappingCollection : public IDispatch
  427. {
  428. public:
  429. virtual /* [restricted][hidden][helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get__NewEnum(
  430. /* [retval][out] */ IUnknown **pVal) = 0;
  431. virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Item(
  432. /* [in] */ BSTR bstrRemoteHost,
  433. /* [in] */ long lExternalPort,
  434. /* [in] */ BSTR bstrProtocol,
  435. /* [retval][out] */ IDynamicPortMapping **ppDPM) = 0;
  436. virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Count(
  437. /* [retval][out] */ long *pVal) = 0;
  438. virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Remove(
  439. /* [in] */ BSTR bstrRemoteHost,
  440. /* [in] */ long lExternalPort,
  441. /* [in] */ BSTR bstrProtocol) = 0;
  442. virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Add(
  443. /* [in] */ BSTR bstrRemoteHost,
  444. /* [in] */ long lExternalPort,
  445. /* [in] */ BSTR bstrProtocol,
  446. /* [in] */ long lInternalPort,
  447. /* [in] */ BSTR bstrInternalClient,
  448. /* [in] */ VARIANT_BOOL bEnabled,
  449. /* [in] */ BSTR bstrDescription,
  450. /* [in] */ long lLeaseDuration,
  451. /* [retval][out] */ IDynamicPortMapping **ppDPM) = 0;
  452. };
  453. #else /* C style interface */
  454. typedef struct IDynamicPortMappingCollectionVtbl
  455. {
  456. BEGIN_INTERFACE
  457. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  458. IDynamicPortMappingCollection * This,
  459. /* [in] */ REFIID riid,
  460. /* [iid_is][out] */ void **ppvObject);
  461. ULONG ( STDMETHODCALLTYPE *AddRef )(
  462. IDynamicPortMappingCollection * This);
  463. ULONG ( STDMETHODCALLTYPE *Release )(
  464. IDynamicPortMappingCollection * This);
  465. HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )(
  466. IDynamicPortMappingCollection * This,
  467. /* [out] */ UINT *pctinfo);
  468. HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )(
  469. IDynamicPortMappingCollection * This,
  470. /* [in] */ UINT iTInfo,
  471. /* [in] */ LCID lcid,
  472. /* [out] */ ITypeInfo **ppTInfo);
  473. HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )(
  474. IDynamicPortMappingCollection * This,
  475. /* [in] */ REFIID riid,
  476. /* [size_is][in] */ LPOLESTR *rgszNames,
  477. /* [in] */ UINT cNames,
  478. /* [in] */ LCID lcid,
  479. /* [size_is][out] */ DISPID *rgDispId);
  480. /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )(
  481. IDynamicPortMappingCollection * This,
  482. /* [in] */ DISPID dispIdMember,
  483. /* [in] */ REFIID riid,
  484. /* [in] */ LCID lcid,
  485. /* [in] */ WORD wFlags,
  486. /* [out][in] */ DISPPARAMS *pDispParams,
  487. /* [out] */ VARIANT *pVarResult,
  488. /* [out] */ EXCEPINFO *pExcepInfo,
  489. /* [out] */ UINT *puArgErr);
  490. /* [restricted][hidden][helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get__NewEnum )(
  491. IDynamicPortMappingCollection * This,
  492. /* [retval][out] */ IUnknown **pVal);
  493. /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Item )(
  494. IDynamicPortMappingCollection * This,
  495. /* [in] */ BSTR bstrRemoteHost,
  496. /* [in] */ long lExternalPort,
  497. /* [in] */ BSTR bstrProtocol,
  498. /* [retval][out] */ IDynamicPortMapping **ppDPM);
  499. /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Count )(
  500. IDynamicPortMappingCollection * This,
  501. /* [retval][out] */ long *pVal);
  502. /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Remove )(
  503. IDynamicPortMappingCollection * This,
  504. /* [in] */ BSTR bstrRemoteHost,
  505. /* [in] */ long lExternalPort,
  506. /* [in] */ BSTR bstrProtocol);
  507. /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Add )(
  508. IDynamicPortMappingCollection * This,
  509. /* [in] */ BSTR bstrRemoteHost,
  510. /* [in] */ long lExternalPort,
  511. /* [in] */ BSTR bstrProtocol,
  512. /* [in] */ long lInternalPort,
  513. /* [in] */ BSTR bstrInternalClient,
  514. /* [in] */ VARIANT_BOOL bEnabled,
  515. /* [in] */ BSTR bstrDescription,
  516. /* [in] */ long lLeaseDuration,
  517. /* [retval][out] */ IDynamicPortMapping **ppDPM);
  518. END_INTERFACE
  519. } IDynamicPortMappingCollectionVtbl;
  520. interface IDynamicPortMappingCollection
  521. {
  522. CONST_VTBL struct IDynamicPortMappingCollectionVtbl *lpVtbl;
  523. };
  524. #ifdef COBJMACROS
  525. #define IDynamicPortMappingCollection_QueryInterface(This,riid,ppvObject) \
  526. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  527. #define IDynamicPortMappingCollection_AddRef(This) \
  528. (This)->lpVtbl -> AddRef(This)
  529. #define IDynamicPortMappingCollection_Release(This) \
  530. (This)->lpVtbl -> Release(This)
  531. #define IDynamicPortMappingCollection_GetTypeInfoCount(This,pctinfo) \
  532. (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo)
  533. #define IDynamicPortMappingCollection_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \
  534. (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo)
  535. #define IDynamicPortMappingCollection_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \
  536. (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)
  537. #define IDynamicPortMappingCollection_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \
  538. (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)
  539. #define IDynamicPortMappingCollection_get__NewEnum(This,pVal) \
  540. (This)->lpVtbl -> get__NewEnum(This,pVal)
  541. #define IDynamicPortMappingCollection_get_Item(This,bstrRemoteHost,lExternalPort,bstrProtocol,ppDPM) \
  542. (This)->lpVtbl -> get_Item(This,bstrRemoteHost,lExternalPort,bstrProtocol,ppDPM)
  543. #define IDynamicPortMappingCollection_get_Count(This,pVal) \
  544. (This)->lpVtbl -> get_Count(This,pVal)
  545. #define IDynamicPortMappingCollection_Remove(This,bstrRemoteHost,lExternalPort,bstrProtocol) \
  546. (This)->lpVtbl -> Remove(This,bstrRemoteHost,lExternalPort,bstrProtocol)
  547. #define IDynamicPortMappingCollection_Add(This,bstrRemoteHost,lExternalPort,bstrProtocol,lInternalPort,bstrInternalClient,bEnabled,bstrDescription,lLeaseDuration,ppDPM) \
  548. (This)->lpVtbl -> Add(This,bstrRemoteHost,lExternalPort,bstrProtocol,lInternalPort,bstrInternalClient,bEnabled,bstrDescription,lLeaseDuration,ppDPM)
  549. #endif /* COBJMACROS */
  550. #endif /* C style interface */
  551. /* [restricted][hidden][helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE IDynamicPortMappingCollection_get__NewEnum_Proxy(
  552. IDynamicPortMappingCollection * This,
  553. /* [retval][out] */ IUnknown **pVal);
  554. void __RPC_STUB IDynamicPortMappingCollection_get__NewEnum_Stub(
  555. IRpcStubBuffer *This,
  556. IRpcChannelBuffer *_pRpcChannelBuffer,
  557. PRPC_MESSAGE _pRpcMessage,
  558. DWORD *_pdwStubPhase);
  559. /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE IDynamicPortMappingCollection_get_Item_Proxy(
  560. IDynamicPortMappingCollection * This,
  561. /* [in] */ BSTR bstrRemoteHost,
  562. /* [in] */ long lExternalPort,
  563. /* [in] */ BSTR bstrProtocol,
  564. /* [retval][out] */ IDynamicPortMapping **ppDPM);
  565. void __RPC_STUB IDynamicPortMappingCollection_get_Item_Stub(
  566. IRpcStubBuffer *This,
  567. IRpcChannelBuffer *_pRpcChannelBuffer,
  568. PRPC_MESSAGE _pRpcMessage,
  569. DWORD *_pdwStubPhase);
  570. /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE IDynamicPortMappingCollection_get_Count_Proxy(
  571. IDynamicPortMappingCollection * This,
  572. /* [retval][out] */ long *pVal);
  573. void __RPC_STUB IDynamicPortMappingCollection_get_Count_Stub(
  574. IRpcStubBuffer *This,
  575. IRpcChannelBuffer *_pRpcChannelBuffer,
  576. PRPC_MESSAGE _pRpcMessage,
  577. DWORD *_pdwStubPhase);
  578. /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE IDynamicPortMappingCollection_Remove_Proxy(
  579. IDynamicPortMappingCollection * This,
  580. /* [in] */ BSTR bstrRemoteHost,
  581. /* [in] */ long lExternalPort,
  582. /* [in] */ BSTR bstrProtocol);
  583. void __RPC_STUB IDynamicPortMappingCollection_Remove_Stub(
  584. IRpcStubBuffer *This,
  585. IRpcChannelBuffer *_pRpcChannelBuffer,
  586. PRPC_MESSAGE _pRpcMessage,
  587. DWORD *_pdwStubPhase);
  588. /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE IDynamicPortMappingCollection_Add_Proxy(
  589. IDynamicPortMappingCollection * This,
  590. /* [in] */ BSTR bstrRemoteHost,
  591. /* [in] */ long lExternalPort,
  592. /* [in] */ BSTR bstrProtocol,
  593. /* [in] */ long lInternalPort,
  594. /* [in] */ BSTR bstrInternalClient,
  595. /* [in] */ VARIANT_BOOL bEnabled,
  596. /* [in] */ BSTR bstrDescription,
  597. /* [in] */ long lLeaseDuration,
  598. /* [retval][out] */ IDynamicPortMapping **ppDPM);
  599. void __RPC_STUB IDynamicPortMappingCollection_Add_Stub(
  600. IRpcStubBuffer *This,
  601. IRpcChannelBuffer *_pRpcChannelBuffer,
  602. PRPC_MESSAGE _pRpcMessage,
  603. DWORD *_pdwStubPhase);
  604. #endif /* __IDynamicPortMappingCollection_INTERFACE_DEFINED__ */
  605. #ifndef __IDynamicPortMapping_INTERFACE_DEFINED__
  606. #define __IDynamicPortMapping_INTERFACE_DEFINED__
  607. /* interface IDynamicPortMapping */
  608. /* [unique][helpstring][dual][uuid][object] */
  609. EXTERN_C const IID IID_IDynamicPortMapping;
  610. #if defined(__cplusplus) && !defined(CINTERFACE)
  611. MIDL_INTERFACE("4FC80282-23B6-4378-9A27-CD8F17C9400C")
  612. IDynamicPortMapping : public IDispatch
  613. {
  614. public:
  615. virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_ExternalIPAddress(
  616. /* [retval][out] */ BSTR *pVal) = 0;
  617. virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_RemoteHost(
  618. /* [retval][out] */ BSTR *pVal) = 0;
  619. virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_ExternalPort(
  620. /* [retval][out] */ long *pVal) = 0;
  621. virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Protocol(
  622. /* [retval][out] */ BSTR *pVal) = 0;
  623. virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_InternalPort(
  624. /* [retval][out] */ long *pVal) = 0;
  625. virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_InternalClient(
  626. /* [retval][out] */ BSTR *pVal) = 0;
  627. virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Enabled(
  628. /* [retval][out] */ VARIANT_BOOL *pVal) = 0;
  629. virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Description(
  630. /* [retval][out] */ BSTR *pVal) = 0;
  631. virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_LeaseDuration(
  632. /* [retval][out] */ long *pVal) = 0;
  633. virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE RenewLease(
  634. /* [in] */ long lLeaseDurationDesired,
  635. /* [retval][out] */ long *pLeaseDurationReturned) = 0;
  636. virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE EditInternalClient(
  637. /* [in] */ BSTR bstrInternalClient) = 0;
  638. virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Enable(
  639. /* [in] */ VARIANT_BOOL vb) = 0;
  640. virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE EditDescription(
  641. /* [in] */ BSTR bstrDescription) = 0;
  642. virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE EditInternalPort(
  643. /* [in] */ long lInternalPort) = 0;
  644. };
  645. #else /* C style interface */
  646. typedef struct IDynamicPortMappingVtbl
  647. {
  648. BEGIN_INTERFACE
  649. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  650. IDynamicPortMapping * This,
  651. /* [in] */ REFIID riid,
  652. /* [iid_is][out] */ void **ppvObject);
  653. ULONG ( STDMETHODCALLTYPE *AddRef )(
  654. IDynamicPortMapping * This);
  655. ULONG ( STDMETHODCALLTYPE *Release )(
  656. IDynamicPortMapping * This);
  657. HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )(
  658. IDynamicPortMapping * This,
  659. /* [out] */ UINT *pctinfo);
  660. HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )(
  661. IDynamicPortMapping * This,
  662. /* [in] */ UINT iTInfo,
  663. /* [in] */ LCID lcid,
  664. /* [out] */ ITypeInfo **ppTInfo);
  665. HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )(
  666. IDynamicPortMapping * This,
  667. /* [in] */ REFIID riid,
  668. /* [size_is][in] */ LPOLESTR *rgszNames,
  669. /* [in] */ UINT cNames,
  670. /* [in] */ LCID lcid,
  671. /* [size_is][out] */ DISPID *rgDispId);
  672. /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )(
  673. IDynamicPortMapping * This,
  674. /* [in] */ DISPID dispIdMember,
  675. /* [in] */ REFIID riid,
  676. /* [in] */ LCID lcid,
  677. /* [in] */ WORD wFlags,
  678. /* [out][in] */ DISPPARAMS *pDispParams,
  679. /* [out] */ VARIANT *pVarResult,
  680. /* [out] */ EXCEPINFO *pExcepInfo,
  681. /* [out] */ UINT *puArgErr);
  682. /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ExternalIPAddress )(
  683. IDynamicPortMapping * This,
  684. /* [retval][out] */ BSTR *pVal);
  685. /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_RemoteHost )(
  686. IDynamicPortMapping * This,
  687. /* [retval][out] */ BSTR *pVal);
  688. /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ExternalPort )(
  689. IDynamicPortMapping * This,
  690. /* [retval][out] */ long *pVal);
  691. /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Protocol )(
  692. IDynamicPortMapping * This,
  693. /* [retval][out] */ BSTR *pVal);
  694. /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_InternalPort )(
  695. IDynamicPortMapping * This,
  696. /* [retval][out] */ long *pVal);
  697. /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_InternalClient )(
  698. IDynamicPortMapping * This,
  699. /* [retval][out] */ BSTR *pVal);
  700. /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Enabled )(
  701. IDynamicPortMapping * This,
  702. /* [retval][out] */ VARIANT_BOOL *pVal);
  703. /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Description )(
  704. IDynamicPortMapping * This,
  705. /* [retval][out] */ BSTR *pVal);
  706. /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_LeaseDuration )(
  707. IDynamicPortMapping * This,
  708. /* [retval][out] */ long *pVal);
  709. /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *RenewLease )(
  710. IDynamicPortMapping * This,
  711. /* [in] */ long lLeaseDurationDesired,
  712. /* [retval][out] */ long *pLeaseDurationReturned);
  713. /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *EditInternalClient )(
  714. IDynamicPortMapping * This,
  715. /* [in] */ BSTR bstrInternalClient);
  716. /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Enable )(
  717. IDynamicPortMapping * This,
  718. /* [in] */ VARIANT_BOOL vb);
  719. /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *EditDescription )(
  720. IDynamicPortMapping * This,
  721. /* [in] */ BSTR bstrDescription);
  722. /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *EditInternalPort )(
  723. IDynamicPortMapping * This,
  724. /* [in] */ long lInternalPort);
  725. END_INTERFACE
  726. } IDynamicPortMappingVtbl;
  727. interface IDynamicPortMapping
  728. {
  729. CONST_VTBL struct IDynamicPortMappingVtbl *lpVtbl;
  730. };
  731. #ifdef COBJMACROS
  732. #define IDynamicPortMapping_QueryInterface(This,riid,ppvObject) \
  733. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  734. #define IDynamicPortMapping_AddRef(This) \
  735. (This)->lpVtbl -> AddRef(This)
  736. #define IDynamicPortMapping_Release(This) \
  737. (This)->lpVtbl -> Release(This)
  738. #define IDynamicPortMapping_GetTypeInfoCount(This,pctinfo) \
  739. (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo)
  740. #define IDynamicPortMapping_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \
  741. (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo)
  742. #define IDynamicPortMapping_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \
  743. (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)
  744. #define IDynamicPortMapping_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \
  745. (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)
  746. #define IDynamicPortMapping_get_ExternalIPAddress(This,pVal) \
  747. (This)->lpVtbl -> get_ExternalIPAddress(This,pVal)
  748. #define IDynamicPortMapping_get_RemoteHost(This,pVal) \
  749. (This)->lpVtbl -> get_RemoteHost(This,pVal)
  750. #define IDynamicPortMapping_get_ExternalPort(This,pVal) \
  751. (This)->lpVtbl -> get_ExternalPort(This,pVal)
  752. #define IDynamicPortMapping_get_Protocol(This,pVal) \
  753. (This)->lpVtbl -> get_Protocol(This,pVal)
  754. #define IDynamicPortMapping_get_InternalPort(This,pVal) \
  755. (This)->lpVtbl -> get_InternalPort(This,pVal)
  756. #define IDynamicPortMapping_get_InternalClient(This,pVal) \
  757. (This)->lpVtbl -> get_InternalClient(This,pVal)
  758. #define IDynamicPortMapping_get_Enabled(This,pVal) \
  759. (This)->lpVtbl -> get_Enabled(This,pVal)
  760. #define IDynamicPortMapping_get_Description(This,pVal) \
  761. (This)->lpVtbl -> get_Description(This,pVal)
  762. #define IDynamicPortMapping_get_LeaseDuration(This,pVal) \
  763. (This)->lpVtbl -> get_LeaseDuration(This,pVal)
  764. #define IDynamicPortMapping_RenewLease(This,lLeaseDurationDesired,pLeaseDurationReturned) \
  765. (This)->lpVtbl -> RenewLease(This,lLeaseDurationDesired,pLeaseDurationReturned)
  766. #define IDynamicPortMapping_EditInternalClient(This,bstrInternalClient) \
  767. (This)->lpVtbl -> EditInternalClient(This,bstrInternalClient)
  768. #define IDynamicPortMapping_Enable(This,vb) \
  769. (This)->lpVtbl -> Enable(This,vb)
  770. #define IDynamicPortMapping_EditDescription(This,bstrDescription) \
  771. (This)->lpVtbl -> EditDescription(This,bstrDescription)
  772. #define IDynamicPortMapping_EditInternalPort(This,lInternalPort) \
  773. (This)->lpVtbl -> EditInternalPort(This,lInternalPort)
  774. #endif /* COBJMACROS */
  775. #endif /* C style interface */
  776. /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE IDynamicPortMapping_get_ExternalIPAddress_Proxy(
  777. IDynamicPortMapping * This,
  778. /* [retval][out] */ BSTR *pVal);
  779. void __RPC_STUB IDynamicPortMapping_get_ExternalIPAddress_Stub(
  780. IRpcStubBuffer *This,
  781. IRpcChannelBuffer *_pRpcChannelBuffer,
  782. PRPC_MESSAGE _pRpcMessage,
  783. DWORD *_pdwStubPhase);
  784. /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE IDynamicPortMapping_get_RemoteHost_Proxy(
  785. IDynamicPortMapping * This,
  786. /* [retval][out] */ BSTR *pVal);
  787. void __RPC_STUB IDynamicPortMapping_get_RemoteHost_Stub(
  788. IRpcStubBuffer *This,
  789. IRpcChannelBuffer *_pRpcChannelBuffer,
  790. PRPC_MESSAGE _pRpcMessage,
  791. DWORD *_pdwStubPhase);
  792. /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE IDynamicPortMapping_get_ExternalPort_Proxy(
  793. IDynamicPortMapping * This,
  794. /* [retval][out] */ long *pVal);
  795. void __RPC_STUB IDynamicPortMapping_get_ExternalPort_Stub(
  796. IRpcStubBuffer *This,
  797. IRpcChannelBuffer *_pRpcChannelBuffer,
  798. PRPC_MESSAGE _pRpcMessage,
  799. DWORD *_pdwStubPhase);
  800. /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE IDynamicPortMapping_get_Protocol_Proxy(
  801. IDynamicPortMapping * This,
  802. /* [retval][out] */ BSTR *pVal);
  803. void __RPC_STUB IDynamicPortMapping_get_Protocol_Stub(
  804. IRpcStubBuffer *This,
  805. IRpcChannelBuffer *_pRpcChannelBuffer,
  806. PRPC_MESSAGE _pRpcMessage,
  807. DWORD *_pdwStubPhase);
  808. /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE IDynamicPortMapping_get_InternalPort_Proxy(
  809. IDynamicPortMapping * This,
  810. /* [retval][out] */ long *pVal);
  811. void __RPC_STUB IDynamicPortMapping_get_InternalPort_Stub(
  812. IRpcStubBuffer *This,
  813. IRpcChannelBuffer *_pRpcChannelBuffer,
  814. PRPC_MESSAGE _pRpcMessage,
  815. DWORD *_pdwStubPhase);
  816. /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE IDynamicPortMapping_get_InternalClient_Proxy(
  817. IDynamicPortMapping * This,
  818. /* [retval][out] */ BSTR *pVal);
  819. void __RPC_STUB IDynamicPortMapping_get_InternalClient_Stub(
  820. IRpcStubBuffer *This,
  821. IRpcChannelBuffer *_pRpcChannelBuffer,
  822. PRPC_MESSAGE _pRpcMessage,
  823. DWORD *_pdwStubPhase);
  824. /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE IDynamicPortMapping_get_Enabled_Proxy(
  825. IDynamicPortMapping * This,
  826. /* [retval][out] */ VARIANT_BOOL *pVal);
  827. void __RPC_STUB IDynamicPortMapping_get_Enabled_Stub(
  828. IRpcStubBuffer *This,
  829. IRpcChannelBuffer *_pRpcChannelBuffer,
  830. PRPC_MESSAGE _pRpcMessage,
  831. DWORD *_pdwStubPhase);
  832. /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE IDynamicPortMapping_get_Description_Proxy(
  833. IDynamicPortMapping * This,
  834. /* [retval][out] */ BSTR *pVal);
  835. void __RPC_STUB IDynamicPortMapping_get_Description_Stub(
  836. IRpcStubBuffer *This,
  837. IRpcChannelBuffer *_pRpcChannelBuffer,
  838. PRPC_MESSAGE _pRpcMessage,
  839. DWORD *_pdwStubPhase);
  840. /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE IDynamicPortMapping_get_LeaseDuration_Proxy(
  841. IDynamicPortMapping * This,
  842. /* [retval][out] */ long *pVal);
  843. void __RPC_STUB IDynamicPortMapping_get_LeaseDuration_Stub(
  844. IRpcStubBuffer *This,
  845. IRpcChannelBuffer *_pRpcChannelBuffer,
  846. PRPC_MESSAGE _pRpcMessage,
  847. DWORD *_pdwStubPhase);
  848. /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE IDynamicPortMapping_RenewLease_Proxy(
  849. IDynamicPortMapping * This,
  850. /* [in] */ long lLeaseDurationDesired,
  851. /* [retval][out] */ long *pLeaseDurationReturned);
  852. void __RPC_STUB IDynamicPortMapping_RenewLease_Stub(
  853. IRpcStubBuffer *This,
  854. IRpcChannelBuffer *_pRpcChannelBuffer,
  855. PRPC_MESSAGE _pRpcMessage,
  856. DWORD *_pdwStubPhase);
  857. /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE IDynamicPortMapping_EditInternalClient_Proxy(
  858. IDynamicPortMapping * This,
  859. /* [in] */ BSTR bstrInternalClient);
  860. void __RPC_STUB IDynamicPortMapping_EditInternalClient_Stub(
  861. IRpcStubBuffer *This,
  862. IRpcChannelBuffer *_pRpcChannelBuffer,
  863. PRPC_MESSAGE _pRpcMessage,
  864. DWORD *_pdwStubPhase);
  865. /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE IDynamicPortMapping_Enable_Proxy(
  866. IDynamicPortMapping * This,
  867. /* [in] */ VARIANT_BOOL vb);
  868. void __RPC_STUB IDynamicPortMapping_Enable_Stub(
  869. IRpcStubBuffer *This,
  870. IRpcChannelBuffer *_pRpcChannelBuffer,
  871. PRPC_MESSAGE _pRpcMessage,
  872. DWORD *_pdwStubPhase);
  873. /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE IDynamicPortMapping_EditDescription_Proxy(
  874. IDynamicPortMapping * This,
  875. /* [in] */ BSTR bstrDescription);
  876. void __RPC_STUB IDynamicPortMapping_EditDescription_Stub(
  877. IRpcStubBuffer *This,
  878. IRpcChannelBuffer *_pRpcChannelBuffer,
  879. PRPC_MESSAGE _pRpcMessage,
  880. DWORD *_pdwStubPhase);
  881. /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE IDynamicPortMapping_EditInternalPort_Proxy(
  882. IDynamicPortMapping * This,
  883. /* [in] */ long lInternalPort);
  884. void __RPC_STUB IDynamicPortMapping_EditInternalPort_Stub(
  885. IRpcStubBuffer *This,
  886. IRpcChannelBuffer *_pRpcChannelBuffer,
  887. PRPC_MESSAGE _pRpcMessage,
  888. DWORD *_pdwStubPhase);
  889. #endif /* __IDynamicPortMapping_INTERFACE_DEFINED__ */
  890. #ifndef __IStaticPortMappingCollection_INTERFACE_DEFINED__
  891. #define __IStaticPortMappingCollection_INTERFACE_DEFINED__
  892. /* interface IStaticPortMappingCollection */
  893. /* [unique][helpstring][dual][uuid][object] */
  894. EXTERN_C const IID IID_IStaticPortMappingCollection;
  895. #if defined(__cplusplus) && !defined(CINTERFACE)
  896. MIDL_INTERFACE("CD1F3E77-66D6-4664-82C7-36DBB641D0F1")
  897. IStaticPortMappingCollection : public IDispatch
  898. {
  899. public:
  900. virtual /* [restricted][hidden][helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get__NewEnum(
  901. /* [retval][out] */ IUnknown **pVal) = 0;
  902. virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Item(
  903. /* [in] */ long lExternalPort,
  904. /* [in] */ BSTR bstrProtocol,
  905. /* [retval][out] */ IStaticPortMapping **ppSPM) = 0;
  906. virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Count(
  907. /* [retval][out] */ long *pVal) = 0;
  908. virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Remove(
  909. /* [in] */ long lExternalPort,
  910. /* [in] */ BSTR bstrProtocol) = 0;
  911. virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Add(
  912. /* [in] */ long lExternalPort,
  913. /* [in] */ BSTR bstrProtocol,
  914. /* [in] */ long lInternalPort,
  915. /* [in] */ BSTR bstrInternalClient,
  916. /* [in] */ VARIANT_BOOL bEnabled,
  917. /* [in] */ BSTR bstrDescription,
  918. /* [retval][out] */ IStaticPortMapping **ppSPM) = 0;
  919. };
  920. #else /* C style interface */
  921. typedef struct IStaticPortMappingCollectionVtbl
  922. {
  923. BEGIN_INTERFACE
  924. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  925. IStaticPortMappingCollection * This,
  926. /* [in] */ REFIID riid,
  927. /* [iid_is][out] */ void **ppvObject);
  928. ULONG ( STDMETHODCALLTYPE *AddRef )(
  929. IStaticPortMappingCollection * This);
  930. ULONG ( STDMETHODCALLTYPE *Release )(
  931. IStaticPortMappingCollection * This);
  932. HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )(
  933. IStaticPortMappingCollection * This,
  934. /* [out] */ UINT *pctinfo);
  935. HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )(
  936. IStaticPortMappingCollection * This,
  937. /* [in] */ UINT iTInfo,
  938. /* [in] */ LCID lcid,
  939. /* [out] */ ITypeInfo **ppTInfo);
  940. HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )(
  941. IStaticPortMappingCollection * This,
  942. /* [in] */ REFIID riid,
  943. /* [size_is][in] */ LPOLESTR *rgszNames,
  944. /* [in] */ UINT cNames,
  945. /* [in] */ LCID lcid,
  946. /* [size_is][out] */ DISPID *rgDispId);
  947. /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )(
  948. IStaticPortMappingCollection * This,
  949. /* [in] */ DISPID dispIdMember,
  950. /* [in] */ REFIID riid,
  951. /* [in] */ LCID lcid,
  952. /* [in] */ WORD wFlags,
  953. /* [out][in] */ DISPPARAMS *pDispParams,
  954. /* [out] */ VARIANT *pVarResult,
  955. /* [out] */ EXCEPINFO *pExcepInfo,
  956. /* [out] */ UINT *puArgErr);
  957. /* [restricted][hidden][helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get__NewEnum )(
  958. IStaticPortMappingCollection * This,
  959. /* [retval][out] */ IUnknown **pVal);
  960. /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Item )(
  961. IStaticPortMappingCollection * This,
  962. /* [in] */ long lExternalPort,
  963. /* [in] */ BSTR bstrProtocol,
  964. /* [retval][out] */ IStaticPortMapping **ppSPM);
  965. /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Count )(
  966. IStaticPortMappingCollection * This,
  967. /* [retval][out] */ long *pVal);
  968. /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Remove )(
  969. IStaticPortMappingCollection * This,
  970. /* [in] */ long lExternalPort,
  971. /* [in] */ BSTR bstrProtocol);
  972. /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Add )(
  973. IStaticPortMappingCollection * This,
  974. /* [in] */ long lExternalPort,
  975. /* [in] */ BSTR bstrProtocol,
  976. /* [in] */ long lInternalPort,
  977. /* [in] */ BSTR bstrInternalClient,
  978. /* [in] */ VARIANT_BOOL bEnabled,
  979. /* [in] */ BSTR bstrDescription,
  980. /* [retval][out] */ IStaticPortMapping **ppSPM);
  981. END_INTERFACE
  982. } IStaticPortMappingCollectionVtbl;
  983. interface IStaticPortMappingCollection
  984. {
  985. CONST_VTBL struct IStaticPortMappingCollectionVtbl *lpVtbl;
  986. };
  987. #ifdef COBJMACROS
  988. #define IStaticPortMappingCollection_QueryInterface(This,riid,ppvObject) \
  989. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  990. #define IStaticPortMappingCollection_AddRef(This) \
  991. (This)->lpVtbl -> AddRef(This)
  992. #define IStaticPortMappingCollection_Release(This) \
  993. (This)->lpVtbl -> Release(This)
  994. #define IStaticPortMappingCollection_GetTypeInfoCount(This,pctinfo) \
  995. (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo)
  996. #define IStaticPortMappingCollection_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \
  997. (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo)
  998. #define IStaticPortMappingCollection_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \
  999. (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)
  1000. #define IStaticPortMappingCollection_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \
  1001. (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)
  1002. #define IStaticPortMappingCollection_get__NewEnum(This,pVal) \
  1003. (This)->lpVtbl -> get__NewEnum(This,pVal)
  1004. #define IStaticPortMappingCollection_get_Item(This,lExternalPort,bstrProtocol,ppSPM) \
  1005. (This)->lpVtbl -> get_Item(This,lExternalPort,bstrProtocol,ppSPM)
  1006. #define IStaticPortMappingCollection_get_Count(This,pVal) \
  1007. (This)->lpVtbl -> get_Count(This,pVal)
  1008. #define IStaticPortMappingCollection_Remove(This,lExternalPort,bstrProtocol) \
  1009. (This)->lpVtbl -> Remove(This,lExternalPort,bstrProtocol)
  1010. #define IStaticPortMappingCollection_Add(This,lExternalPort,bstrProtocol,lInternalPort,bstrInternalClient,bEnabled,bstrDescription,ppSPM) \
  1011. (This)->lpVtbl -> Add(This,lExternalPort,bstrProtocol,lInternalPort,bstrInternalClient,bEnabled,bstrDescription,ppSPM)
  1012. #endif /* COBJMACROS */
  1013. #endif /* C style interface */
  1014. /* [restricted][hidden][helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE IStaticPortMappingCollection_get__NewEnum_Proxy(
  1015. IStaticPortMappingCollection * This,
  1016. /* [retval][out] */ IUnknown **pVal);
  1017. void __RPC_STUB IStaticPortMappingCollection_get__NewEnum_Stub(
  1018. IRpcStubBuffer *This,
  1019. IRpcChannelBuffer *_pRpcChannelBuffer,
  1020. PRPC_MESSAGE _pRpcMessage,
  1021. DWORD *_pdwStubPhase);
  1022. /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE IStaticPortMappingCollection_get_Item_Proxy(
  1023. IStaticPortMappingCollection * This,
  1024. /* [in] */ long lExternalPort,
  1025. /* [in] */ BSTR bstrProtocol,
  1026. /* [retval][out] */ IStaticPortMapping **ppSPM);
  1027. void __RPC_STUB IStaticPortMappingCollection_get_Item_Stub(
  1028. IRpcStubBuffer *This,
  1029. IRpcChannelBuffer *_pRpcChannelBuffer,
  1030. PRPC_MESSAGE _pRpcMessage,
  1031. DWORD *_pdwStubPhase);
  1032. /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE IStaticPortMappingCollection_get_Count_Proxy(
  1033. IStaticPortMappingCollection * This,
  1034. /* [retval][out] */ long *pVal);
  1035. void __RPC_STUB IStaticPortMappingCollection_get_Count_Stub(
  1036. IRpcStubBuffer *This,
  1037. IRpcChannelBuffer *_pRpcChannelBuffer,
  1038. PRPC_MESSAGE _pRpcMessage,
  1039. DWORD *_pdwStubPhase);
  1040. /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE IStaticPortMappingCollection_Remove_Proxy(
  1041. IStaticPortMappingCollection * This,
  1042. /* [in] */ long lExternalPort,
  1043. /* [in] */ BSTR bstrProtocol);
  1044. void __RPC_STUB IStaticPortMappingCollection_Remove_Stub(
  1045. IRpcStubBuffer *This,
  1046. IRpcChannelBuffer *_pRpcChannelBuffer,
  1047. PRPC_MESSAGE _pRpcMessage,
  1048. DWORD *_pdwStubPhase);
  1049. /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE IStaticPortMappingCollection_Add_Proxy(
  1050. IStaticPortMappingCollection * This,
  1051. /* [in] */ long lExternalPort,
  1052. /* [in] */ BSTR bstrProtocol,
  1053. /* [in] */ long lInternalPort,
  1054. /* [in] */ BSTR bstrInternalClient,
  1055. /* [in] */ VARIANT_BOOL bEnabled,
  1056. /* [in] */ BSTR bstrDescription,
  1057. /* [retval][out] */ IStaticPortMapping **ppSPM);
  1058. void __RPC_STUB IStaticPortMappingCollection_Add_Stub(
  1059. IRpcStubBuffer *This,
  1060. IRpcChannelBuffer *_pRpcChannelBuffer,
  1061. PRPC_MESSAGE _pRpcMessage,
  1062. DWORD *_pdwStubPhase);
  1063. #endif /* __IStaticPortMappingCollection_INTERFACE_DEFINED__ */
  1064. #ifndef __IStaticPortMapping_INTERFACE_DEFINED__
  1065. #define __IStaticPortMapping_INTERFACE_DEFINED__
  1066. /* interface IStaticPortMapping */
  1067. /* [unique][helpstring][dual][uuid][object] */
  1068. EXTERN_C const IID IID_IStaticPortMapping;
  1069. #if defined(__cplusplus) && !defined(CINTERFACE)
  1070. MIDL_INTERFACE("6F10711F-729B-41E5-93B8-F21D0F818DF1")
  1071. IStaticPortMapping : public IDispatch
  1072. {
  1073. public:
  1074. virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_ExternalIPAddress(
  1075. /* [retval][out] */ BSTR *pVal) = 0;
  1076. virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_ExternalPort(
  1077. /* [retval][out] */ long *pVal) = 0;
  1078. virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_InternalPort(
  1079. /* [retval][out] */ long *pVal) = 0;
  1080. virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Protocol(
  1081. /* [retval][out] */ BSTR *pVal) = 0;
  1082. virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_InternalClient(
  1083. /* [retval][out] */ BSTR *pVal) = 0;
  1084. virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Enabled(
  1085. /* [retval][out] */ VARIANT_BOOL *pVal) = 0;
  1086. virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Description(
  1087. /* [retval][out] */ BSTR *pVal) = 0;
  1088. virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE EditInternalClient(
  1089. /* [in] */ BSTR bstrInternalClient) = 0;
  1090. virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Enable(
  1091. /* [in] */ VARIANT_BOOL vb) = 0;
  1092. virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE EditDescription(
  1093. /* [in] */ BSTR bstrDescription) = 0;
  1094. virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE EditInternalPort(
  1095. /* [in] */ long lInternalPort) = 0;
  1096. };
  1097. #else /* C style interface */
  1098. typedef struct IStaticPortMappingVtbl
  1099. {
  1100. BEGIN_INTERFACE
  1101. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  1102. IStaticPortMapping * This,
  1103. /* [in] */ REFIID riid,
  1104. /* [iid_is][out] */ void **ppvObject);
  1105. ULONG ( STDMETHODCALLTYPE *AddRef )(
  1106. IStaticPortMapping * This);
  1107. ULONG ( STDMETHODCALLTYPE *Release )(
  1108. IStaticPortMapping * This);
  1109. HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )(
  1110. IStaticPortMapping * This,
  1111. /* [out] */ UINT *pctinfo);
  1112. HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )(
  1113. IStaticPortMapping * This,
  1114. /* [in] */ UINT iTInfo,
  1115. /* [in] */ LCID lcid,
  1116. /* [out] */ ITypeInfo **ppTInfo);
  1117. HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )(
  1118. IStaticPortMapping * This,
  1119. /* [in] */ REFIID riid,
  1120. /* [size_is][in] */ LPOLESTR *rgszNames,
  1121. /* [in] */ UINT cNames,
  1122. /* [in] */ LCID lcid,
  1123. /* [size_is][out] */ DISPID *rgDispId);
  1124. /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )(
  1125. IStaticPortMapping * This,
  1126. /* [in] */ DISPID dispIdMember,
  1127. /* [in] */ REFIID riid,
  1128. /* [in] */ LCID lcid,
  1129. /* [in] */ WORD wFlags,
  1130. /* [out][in] */ DISPPARAMS *pDispParams,
  1131. /* [out] */ VARIANT *pVarResult,
  1132. /* [out] */ EXCEPINFO *pExcepInfo,
  1133. /* [out] */ UINT *puArgErr);
  1134. /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ExternalIPAddress )(
  1135. IStaticPortMapping * This,
  1136. /* [retval][out] */ BSTR *pVal);
  1137. /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ExternalPort )(
  1138. IStaticPortMapping * This,
  1139. /* [retval][out] */ long *pVal);
  1140. /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_InternalPort )(
  1141. IStaticPortMapping * This,
  1142. /* [retval][out] */ long *pVal);
  1143. /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Protocol )(
  1144. IStaticPortMapping * This,
  1145. /* [retval][out] */ BSTR *pVal);
  1146. /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_InternalClient )(
  1147. IStaticPortMapping * This,
  1148. /* [retval][out] */ BSTR *pVal);
  1149. /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Enabled )(
  1150. IStaticPortMapping * This,
  1151. /* [retval][out] */ VARIANT_BOOL *pVal);
  1152. /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Description )(
  1153. IStaticPortMapping * This,
  1154. /* [retval][out] */ BSTR *pVal);
  1155. /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *EditInternalClient )(
  1156. IStaticPortMapping * This,
  1157. /* [in] */ BSTR bstrInternalClient);
  1158. /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Enable )(
  1159. IStaticPortMapping * This,
  1160. /* [in] */ VARIANT_BOOL vb);
  1161. /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *EditDescription )(
  1162. IStaticPortMapping * This,
  1163. /* [in] */ BSTR bstrDescription);
  1164. /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *EditInternalPort )(
  1165. IStaticPortMapping * This,
  1166. /* [in] */ long lInternalPort);
  1167. END_INTERFACE
  1168. } IStaticPortMappingVtbl;
  1169. interface IStaticPortMapping
  1170. {
  1171. CONST_VTBL struct IStaticPortMappingVtbl *lpVtbl;
  1172. };
  1173. #ifdef COBJMACROS
  1174. #define IStaticPortMapping_QueryInterface(This,riid,ppvObject) \
  1175. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  1176. #define IStaticPortMapping_AddRef(This) \
  1177. (This)->lpVtbl -> AddRef(This)
  1178. #define IStaticPortMapping_Release(This) \
  1179. (This)->lpVtbl -> Release(This)
  1180. #define IStaticPortMapping_GetTypeInfoCount(This,pctinfo) \
  1181. (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo)
  1182. #define IStaticPortMapping_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \
  1183. (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo)
  1184. #define IStaticPortMapping_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \
  1185. (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)
  1186. #define IStaticPortMapping_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \
  1187. (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)
  1188. #define IStaticPortMapping_get_ExternalIPAddress(This,pVal) \
  1189. (This)->lpVtbl -> get_ExternalIPAddress(This,pVal)
  1190. #define IStaticPortMapping_get_ExternalPort(This,pVal) \
  1191. (This)->lpVtbl -> get_ExternalPort(This,pVal)
  1192. #define IStaticPortMapping_get_InternalPort(This,pVal) \
  1193. (This)->lpVtbl -> get_InternalPort(This,pVal)
  1194. #define IStaticPortMapping_get_Protocol(This,pVal) \
  1195. (This)->lpVtbl -> get_Protocol(This,pVal)
  1196. #define IStaticPortMapping_get_InternalClient(This,pVal) \
  1197. (This)->lpVtbl -> get_InternalClient(This,pVal)
  1198. #define IStaticPortMapping_get_Enabled(This,pVal) \
  1199. (This)->lpVtbl -> get_Enabled(This,pVal)
  1200. #define IStaticPortMapping_get_Description(This,pVal) \
  1201. (This)->lpVtbl -> get_Description(This,pVal)
  1202. #define IStaticPortMapping_EditInternalClient(This,bstrInternalClient) \
  1203. (This)->lpVtbl -> EditInternalClient(This,bstrInternalClient)
  1204. #define IStaticPortMapping_Enable(This,vb) \
  1205. (This)->lpVtbl -> Enable(This,vb)
  1206. #define IStaticPortMapping_EditDescription(This,bstrDescription) \
  1207. (This)->lpVtbl -> EditDescription(This,bstrDescription)
  1208. #define IStaticPortMapping_EditInternalPort(This,lInternalPort) \
  1209. (This)->lpVtbl -> EditInternalPort(This,lInternalPort)
  1210. #endif /* COBJMACROS */
  1211. #endif /* C style interface */
  1212. /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE IStaticPortMapping_get_ExternalIPAddress_Proxy(
  1213. IStaticPortMapping * This,
  1214. /* [retval][out] */ BSTR *pVal);
  1215. void __RPC_STUB IStaticPortMapping_get_ExternalIPAddress_Stub(
  1216. IRpcStubBuffer *This,
  1217. IRpcChannelBuffer *_pRpcChannelBuffer,
  1218. PRPC_MESSAGE _pRpcMessage,
  1219. DWORD *_pdwStubPhase);
  1220. /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE IStaticPortMapping_get_ExternalPort_Proxy(
  1221. IStaticPortMapping * This,
  1222. /* [retval][out] */ long *pVal);
  1223. void __RPC_STUB IStaticPortMapping_get_ExternalPort_Stub(
  1224. IRpcStubBuffer *This,
  1225. IRpcChannelBuffer *_pRpcChannelBuffer,
  1226. PRPC_MESSAGE _pRpcMessage,
  1227. DWORD *_pdwStubPhase);
  1228. /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE IStaticPortMapping_get_InternalPort_Proxy(
  1229. IStaticPortMapping * This,
  1230. /* [retval][out] */ long *pVal);
  1231. void __RPC_STUB IStaticPortMapping_get_InternalPort_Stub(
  1232. IRpcStubBuffer *This,
  1233. IRpcChannelBuffer *_pRpcChannelBuffer,
  1234. PRPC_MESSAGE _pRpcMessage,
  1235. DWORD *_pdwStubPhase);
  1236. /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE IStaticPortMapping_get_Protocol_Proxy(
  1237. IStaticPortMapping * This,
  1238. /* [retval][out] */ BSTR *pVal);
  1239. void __RPC_STUB IStaticPortMapping_get_Protocol_Stub(
  1240. IRpcStubBuffer *This,
  1241. IRpcChannelBuffer *_pRpcChannelBuffer,
  1242. PRPC_MESSAGE _pRpcMessage,
  1243. DWORD *_pdwStubPhase);
  1244. /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE IStaticPortMapping_get_InternalClient_Proxy(
  1245. IStaticPortMapping * This,
  1246. /* [retval][out] */ BSTR *pVal);
  1247. void __RPC_STUB IStaticPortMapping_get_InternalClient_Stub(
  1248. IRpcStubBuffer *This,
  1249. IRpcChannelBuffer *_pRpcChannelBuffer,
  1250. PRPC_MESSAGE _pRpcMessage,
  1251. DWORD *_pdwStubPhase);
  1252. /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE IStaticPortMapping_get_Enabled_Proxy(
  1253. IStaticPortMapping * This,
  1254. /* [retval][out] */ VARIANT_BOOL *pVal);
  1255. void __RPC_STUB IStaticPortMapping_get_Enabled_Stub(
  1256. IRpcStubBuffer *This,
  1257. IRpcChannelBuffer *_pRpcChannelBuffer,
  1258. PRPC_MESSAGE _pRpcMessage,
  1259. DWORD *_pdwStubPhase);
  1260. /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE IStaticPortMapping_get_Description_Proxy(
  1261. IStaticPortMapping * This,
  1262. /* [retval][out] */ BSTR *pVal);
  1263. void __RPC_STUB IStaticPortMapping_get_Description_Stub(
  1264. IRpcStubBuffer *This,
  1265. IRpcChannelBuffer *_pRpcChannelBuffer,
  1266. PRPC_MESSAGE _pRpcMessage,
  1267. DWORD *_pdwStubPhase);
  1268. /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE IStaticPortMapping_EditInternalClient_Proxy(
  1269. IStaticPortMapping * This,
  1270. /* [in] */ BSTR bstrInternalClient);
  1271. void __RPC_STUB IStaticPortMapping_EditInternalClient_Stub(
  1272. IRpcStubBuffer *This,
  1273. IRpcChannelBuffer *_pRpcChannelBuffer,
  1274. PRPC_MESSAGE _pRpcMessage,
  1275. DWORD *_pdwStubPhase);
  1276. /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE IStaticPortMapping_Enable_Proxy(
  1277. IStaticPortMapping * This,
  1278. /* [in] */ VARIANT_BOOL vb);
  1279. void __RPC_STUB IStaticPortMapping_Enable_Stub(
  1280. IRpcStubBuffer *This,
  1281. IRpcChannelBuffer *_pRpcChannelBuffer,
  1282. PRPC_MESSAGE _pRpcMessage,
  1283. DWORD *_pdwStubPhase);
  1284. /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE IStaticPortMapping_EditDescription_Proxy(
  1285. IStaticPortMapping * This,
  1286. /* [in] */ BSTR bstrDescription);
  1287. void __RPC_STUB IStaticPortMapping_EditDescription_Stub(
  1288. IRpcStubBuffer *This,
  1289. IRpcChannelBuffer *_pRpcChannelBuffer,
  1290. PRPC_MESSAGE _pRpcMessage,
  1291. DWORD *_pdwStubPhase);
  1292. /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE IStaticPortMapping_EditInternalPort_Proxy(
  1293. IStaticPortMapping * This,
  1294. /* [in] */ long lInternalPort);
  1295. void __RPC_STUB IStaticPortMapping_EditInternalPort_Stub(
  1296. IRpcStubBuffer *This,
  1297. IRpcChannelBuffer *_pRpcChannelBuffer,
  1298. PRPC_MESSAGE _pRpcMessage,
  1299. DWORD *_pdwStubPhase);
  1300. #endif /* __IStaticPortMapping_INTERFACE_DEFINED__ */
  1301. #ifndef __NATUPNPLib_LIBRARY_DEFINED__
  1302. #define __NATUPNPLib_LIBRARY_DEFINED__
  1303. /* library NATUPNPLib */
  1304. /* [helpstring][version][uuid] */
  1305. EXTERN_C const IID LIBID_NATUPNPLib;
  1306. EXTERN_C const CLSID CLSID_UPnPNAT;
  1307. #ifdef __cplusplus
  1308. class DECLSPEC_UUID("AE1E00AA-3FD5-403C-8A27-2BBDC30CD0E1")
  1309. UPnPNAT;
  1310. #endif
  1311. #endif /* __NATUPNPLib_LIBRARY_DEFINED__ */
  1312. /* Additional Prototypes for ALL interfaces */
  1313. unsigned long __RPC_USER BSTR_UserSize( unsigned long *, unsigned long , BSTR * );
  1314. unsigned char * __RPC_USER BSTR_UserMarshal( unsigned long *, unsigned char *, BSTR * );
  1315. unsigned char * __RPC_USER BSTR_UserUnmarshal(unsigned long *, unsigned char *, BSTR * );
  1316. void __RPC_USER BSTR_UserFree( unsigned long *, BSTR * );
  1317. /* end of Additional Prototypes */
  1318. #ifdef __cplusplus
  1319. }
  1320. #endif
  1321. #endif