Source code of Windows XP (NT5)
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.

4467 lines
131 KiB

  1. #pragma warning( disable: 4049 ) /* more than 64k source lines */
  2. /* this ALWAYS GENERATED file contains the definitions for the interfaces */
  3. /* File created by MIDL compiler version 6.00.0347 */
  4. /* Compiler settings for hnetcfg.idl:
  5. Oicf, W1, Zp8, env=Win32 (32b run)
  6. protocol : dce , ms_ext, c_ext, robust
  7. error checks: allocation ref bounds_check enum stub_data
  8. VC __declspec() decoration level:
  9. __declspec(uuid()), __declspec(selectany), __declspec(novtable)
  10. DECLSPEC_UUID(), MIDL_INTERFACE()
  11. */
  12. //@@MIDL_FILE_HEADING( )
  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 __hnetcfg_h__
  27. #define __hnetcfg_h__
  28. #if defined(_MSC_VER) && (_MSC_VER >= 1020)
  29. #pragma once
  30. #endif
  31. /* Forward Declarations */
  32. #ifndef __IHNetCfgMgr_FWD_DEFINED__
  33. #define __IHNetCfgMgr_FWD_DEFINED__
  34. typedef interface IHNetCfgMgr IHNetCfgMgr;
  35. #endif /* __IHNetCfgMgr_FWD_DEFINED__ */
  36. #ifndef __IHNetBridgeSettings_FWD_DEFINED__
  37. #define __IHNetBridgeSettings_FWD_DEFINED__
  38. typedef interface IHNetBridgeSettings IHNetBridgeSettings;
  39. #endif /* __IHNetBridgeSettings_FWD_DEFINED__ */
  40. #ifndef __IHNetFirewallSettings_FWD_DEFINED__
  41. #define __IHNetFirewallSettings_FWD_DEFINED__
  42. typedef interface IHNetFirewallSettings IHNetFirewallSettings;
  43. #endif /* __IHNetFirewallSettings_FWD_DEFINED__ */
  44. #ifndef __IHNetIcsSettings_FWD_DEFINED__
  45. #define __IHNetIcsSettings_FWD_DEFINED__
  46. typedef interface IHNetIcsSettings IHNetIcsSettings;
  47. #endif /* __IHNetIcsSettings_FWD_DEFINED__ */
  48. #ifndef __IHNetProtocolSettings_FWD_DEFINED__
  49. #define __IHNetProtocolSettings_FWD_DEFINED__
  50. typedef interface IHNetProtocolSettings IHNetProtocolSettings;
  51. #endif /* __IHNetProtocolSettings_FWD_DEFINED__ */
  52. #ifndef __IHNetConnection_FWD_DEFINED__
  53. #define __IHNetConnection_FWD_DEFINED__
  54. typedef interface IHNetConnection IHNetConnection;
  55. #endif /* __IHNetConnection_FWD_DEFINED__ */
  56. #ifndef __IHNetFirewalledConnection_FWD_DEFINED__
  57. #define __IHNetFirewalledConnection_FWD_DEFINED__
  58. typedef interface IHNetFirewalledConnection IHNetFirewalledConnection;
  59. #endif /* __IHNetFirewalledConnection_FWD_DEFINED__ */
  60. #ifndef __IHNetIcsPublicConnection_FWD_DEFINED__
  61. #define __IHNetIcsPublicConnection_FWD_DEFINED__
  62. typedef interface IHNetIcsPublicConnection IHNetIcsPublicConnection;
  63. #endif /* __IHNetIcsPublicConnection_FWD_DEFINED__ */
  64. #ifndef __IHNetIcsPrivateConnection_FWD_DEFINED__
  65. #define __IHNetIcsPrivateConnection_FWD_DEFINED__
  66. typedef interface IHNetIcsPrivateConnection IHNetIcsPrivateConnection;
  67. #endif /* __IHNetIcsPrivateConnection_FWD_DEFINED__ */
  68. #ifndef __IHNetBridge_FWD_DEFINED__
  69. #define __IHNetBridge_FWD_DEFINED__
  70. typedef interface IHNetBridge IHNetBridge;
  71. #endif /* __IHNetBridge_FWD_DEFINED__ */
  72. #ifndef __IHNetBridgedConnection_FWD_DEFINED__
  73. #define __IHNetBridgedConnection_FWD_DEFINED__
  74. typedef interface IHNetBridgedConnection IHNetBridgedConnection;
  75. #endif /* __IHNetBridgedConnection_FWD_DEFINED__ */
  76. #ifndef __IHNetPortMappingProtocol_FWD_DEFINED__
  77. #define __IHNetPortMappingProtocol_FWD_DEFINED__
  78. typedef interface IHNetPortMappingProtocol IHNetPortMappingProtocol;
  79. #endif /* __IHNetPortMappingProtocol_FWD_DEFINED__ */
  80. #ifndef __IHNetPortMappingBinding_FWD_DEFINED__
  81. #define __IHNetPortMappingBinding_FWD_DEFINED__
  82. typedef interface IHNetPortMappingBinding IHNetPortMappingBinding;
  83. #endif /* __IHNetPortMappingBinding_FWD_DEFINED__ */
  84. #ifndef __IHNetApplicationProtocol_FWD_DEFINED__
  85. #define __IHNetApplicationProtocol_FWD_DEFINED__
  86. typedef interface IHNetApplicationProtocol IHNetApplicationProtocol;
  87. #endif /* __IHNetApplicationProtocol_FWD_DEFINED__ */
  88. #ifndef __IEnumHNetBridges_FWD_DEFINED__
  89. #define __IEnumHNetBridges_FWD_DEFINED__
  90. typedef interface IEnumHNetBridges IEnumHNetBridges;
  91. #endif /* __IEnumHNetBridges_FWD_DEFINED__ */
  92. #ifndef __IEnumHNetFirewalledConnections_FWD_DEFINED__
  93. #define __IEnumHNetFirewalledConnections_FWD_DEFINED__
  94. typedef interface IEnumHNetFirewalledConnections IEnumHNetFirewalledConnections;
  95. #endif /* __IEnumHNetFirewalledConnections_FWD_DEFINED__ */
  96. #ifndef __IEnumHNetIcsPublicConnections_FWD_DEFINED__
  97. #define __IEnumHNetIcsPublicConnections_FWD_DEFINED__
  98. typedef interface IEnumHNetIcsPublicConnections IEnumHNetIcsPublicConnections;
  99. #endif /* __IEnumHNetIcsPublicConnections_FWD_DEFINED__ */
  100. #ifndef __IEnumHNetIcsPrivateConnections_FWD_DEFINED__
  101. #define __IEnumHNetIcsPrivateConnections_FWD_DEFINED__
  102. typedef interface IEnumHNetIcsPrivateConnections IEnumHNetIcsPrivateConnections;
  103. #endif /* __IEnumHNetIcsPrivateConnections_FWD_DEFINED__ */
  104. #ifndef __IEnumHNetApplicationProtocols_FWD_DEFINED__
  105. #define __IEnumHNetApplicationProtocols_FWD_DEFINED__
  106. typedef interface IEnumHNetApplicationProtocols IEnumHNetApplicationProtocols;
  107. #endif /* __IEnumHNetApplicationProtocols_FWD_DEFINED__ */
  108. #ifndef __IEnumHNetPortMappingProtocols_FWD_DEFINED__
  109. #define __IEnumHNetPortMappingProtocols_FWD_DEFINED__
  110. typedef interface IEnumHNetPortMappingProtocols IEnumHNetPortMappingProtocols;
  111. #endif /* __IEnumHNetPortMappingProtocols_FWD_DEFINED__ */
  112. #ifndef __IEnumHNetPortMappingBindings_FWD_DEFINED__
  113. #define __IEnumHNetPortMappingBindings_FWD_DEFINED__
  114. typedef interface IEnumHNetPortMappingBindings IEnumHNetPortMappingBindings;
  115. #endif /* __IEnumHNetPortMappingBindings_FWD_DEFINED__ */
  116. #ifndef __IEnumHNetBridgedConnections_FWD_DEFINED__
  117. #define __IEnumHNetBridgedConnections_FWD_DEFINED__
  118. typedef interface IEnumHNetBridgedConnections IEnumHNetBridgedConnections;
  119. #endif /* __IEnumHNetBridgedConnections_FWD_DEFINED__ */
  120. /* header files for imported files */
  121. #include "unknwn.h"
  122. #include "netcon.h"
  123. #include "netcfgx.h"
  124. #ifdef __cplusplus
  125. extern "C"{
  126. #endif
  127. void * __RPC_USER MIDL_user_allocate(size_t);
  128. void __RPC_USER MIDL_user_free( void * );
  129. /* interface __MIDL_itf_hnetcfg_0000 */
  130. /* [local] */
  131. //+-------------------------------------------------------------------------
  132. //
  133. // Microsoft Windows
  134. // Copyright (c) Microsoft Corporation. All rights reserved.
  135. //
  136. //--------------------------------------------------------------------------
  137. #if ( _MSC_VER >= 800 )
  138. #pragma warning(disable:4201)
  139. #endif
  140. EXTERN_C const CLSID CLSID_HNetCfgMgr;
  141. EXTERN_C const CLSID CLSID_SharingManagerEnumPublicConnection;
  142. EXTERN_C const CLSID CLSID_SharingManagerEnumPrivateConnection;
  143. EXTERN_C const CLSID CLSID_SharingManagerEnumApplicationDefinition;
  144. EXTERN_C const CLSID CLSID_SharingManagerEnumPortMapping;
  145. EXTERN_C const CLSID CLSID_SharingApplicationDefinition;
  146. EXTERN_C const CLSID CLSID_SharingApplicationConfiguration;
  147. EXTERN_C const CLSID CLSID_NetSharingConfiguration;
  148. extern RPC_IF_HANDLE __MIDL_itf_hnetcfg_0000_v0_0_c_ifspec;
  149. extern RPC_IF_HANDLE __MIDL_itf_hnetcfg_0000_v0_0_s_ifspec;
  150. #ifndef __IHNetCfgMgr_INTERFACE_DEFINED__
  151. #define __IHNetCfgMgr_INTERFACE_DEFINED__
  152. /* interface IHNetCfgMgr */
  153. /* [unique][uuid][object][local] */
  154. EXTERN_C const IID IID_IHNetCfgMgr;
  155. #if defined(__cplusplus) && !defined(CINTERFACE)
  156. MIDL_INTERFACE("85D18B6C-3032-11D4-9348-00C04F8EEB71")
  157. IHNetCfgMgr : public IUnknown
  158. {
  159. public:
  160. virtual HRESULT STDMETHODCALLTYPE GetIHNetConnectionForINetConnection(
  161. /* [in] */ INetConnection *pNetConnection,
  162. /* [out] */ IHNetConnection **ppHNetConnection) = 0;
  163. virtual HRESULT STDMETHODCALLTYPE GetIHNetConnectionForGuid(
  164. /* [in] */ GUID *pGuid,
  165. /* [in] */ BOOLEAN fLanConnection,
  166. /* [in] */ BOOLEAN fCreateEntries,
  167. /* [out] */ IHNetConnection **ppHNetConnection) = 0;
  168. };
  169. #else /* C style interface */
  170. typedef struct IHNetCfgMgrVtbl
  171. {
  172. BEGIN_INTERFACE
  173. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  174. IHNetCfgMgr * This,
  175. /* [in] */ REFIID riid,
  176. /* [iid_is][out] */ void **ppvObject);
  177. ULONG ( STDMETHODCALLTYPE *AddRef )(
  178. IHNetCfgMgr * This);
  179. ULONG ( STDMETHODCALLTYPE *Release )(
  180. IHNetCfgMgr * This);
  181. HRESULT ( STDMETHODCALLTYPE *GetIHNetConnectionForINetConnection )(
  182. IHNetCfgMgr * This,
  183. /* [in] */ INetConnection *pNetConnection,
  184. /* [out] */ IHNetConnection **ppHNetConnection);
  185. HRESULT ( STDMETHODCALLTYPE *GetIHNetConnectionForGuid )(
  186. IHNetCfgMgr * This,
  187. /* [in] */ GUID *pGuid,
  188. /* [in] */ BOOLEAN fLanConnection,
  189. /* [in] */ BOOLEAN fCreateEntries,
  190. /* [out] */ IHNetConnection **ppHNetConnection);
  191. END_INTERFACE
  192. } IHNetCfgMgrVtbl;
  193. interface IHNetCfgMgr
  194. {
  195. CONST_VTBL struct IHNetCfgMgrVtbl *lpVtbl;
  196. };
  197. #ifdef COBJMACROS
  198. #define IHNetCfgMgr_QueryInterface(This,riid,ppvObject) \
  199. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  200. #define IHNetCfgMgr_AddRef(This) \
  201. (This)->lpVtbl -> AddRef(This)
  202. #define IHNetCfgMgr_Release(This) \
  203. (This)->lpVtbl -> Release(This)
  204. #define IHNetCfgMgr_GetIHNetConnectionForINetConnection(This,pNetConnection,ppHNetConnection) \
  205. (This)->lpVtbl -> GetIHNetConnectionForINetConnection(This,pNetConnection,ppHNetConnection)
  206. #define IHNetCfgMgr_GetIHNetConnectionForGuid(This,pGuid,fLanConnection,fCreateEntries,ppHNetConnection) \
  207. (This)->lpVtbl -> GetIHNetConnectionForGuid(This,pGuid,fLanConnection,fCreateEntries,ppHNetConnection)
  208. #endif /* COBJMACROS */
  209. #endif /* C style interface */
  210. HRESULT STDMETHODCALLTYPE IHNetCfgMgr_GetIHNetConnectionForINetConnection_Proxy(
  211. IHNetCfgMgr * This,
  212. /* [in] */ INetConnection *pNetConnection,
  213. /* [out] */ IHNetConnection **ppHNetConnection);
  214. void __RPC_STUB IHNetCfgMgr_GetIHNetConnectionForINetConnection_Stub(
  215. IRpcStubBuffer *This,
  216. IRpcChannelBuffer *_pRpcChannelBuffer,
  217. PRPC_MESSAGE _pRpcMessage,
  218. DWORD *_pdwStubPhase);
  219. HRESULT STDMETHODCALLTYPE IHNetCfgMgr_GetIHNetConnectionForGuid_Proxy(
  220. IHNetCfgMgr * This,
  221. /* [in] */ GUID *pGuid,
  222. /* [in] */ BOOLEAN fLanConnection,
  223. /* [in] */ BOOLEAN fCreateEntries,
  224. /* [out] */ IHNetConnection **ppHNetConnection);
  225. void __RPC_STUB IHNetCfgMgr_GetIHNetConnectionForGuid_Stub(
  226. IRpcStubBuffer *This,
  227. IRpcChannelBuffer *_pRpcChannelBuffer,
  228. PRPC_MESSAGE _pRpcMessage,
  229. DWORD *_pdwStubPhase);
  230. #endif /* __IHNetCfgMgr_INTERFACE_DEFINED__ */
  231. #ifndef __IHNetBridgeSettings_INTERFACE_DEFINED__
  232. #define __IHNetBridgeSettings_INTERFACE_DEFINED__
  233. /* interface IHNetBridgeSettings */
  234. /* [unique][uuid][object][local] */
  235. EXTERN_C const IID IID_IHNetBridgeSettings;
  236. #if defined(__cplusplus) && !defined(CINTERFACE)
  237. MIDL_INTERFACE("85D18B6D-3032-11D4-9348-00C04F8EEB71")
  238. IHNetBridgeSettings : public IUnknown
  239. {
  240. public:
  241. virtual HRESULT STDMETHODCALLTYPE EnumBridges(
  242. /* [out] */ IEnumHNetBridges **ppEnum) = 0;
  243. virtual HRESULT STDMETHODCALLTYPE CreateBridge(
  244. /* [out] */ IHNetBridge **ppHNetBridge,
  245. /* [defaultvalue][in] */ INetCfg *pnetcfgExisting = 0) = 0;
  246. virtual HRESULT STDMETHODCALLTYPE DestroyAllBridges(
  247. /* [out] */ ULONG *pcBridges,
  248. /* [defaultvalue][in] */ INetCfg *pnetcfgExisting = 0) = 0;
  249. };
  250. #else /* C style interface */
  251. typedef struct IHNetBridgeSettingsVtbl
  252. {
  253. BEGIN_INTERFACE
  254. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  255. IHNetBridgeSettings * This,
  256. /* [in] */ REFIID riid,
  257. /* [iid_is][out] */ void **ppvObject);
  258. ULONG ( STDMETHODCALLTYPE *AddRef )(
  259. IHNetBridgeSettings * This);
  260. ULONG ( STDMETHODCALLTYPE *Release )(
  261. IHNetBridgeSettings * This);
  262. HRESULT ( STDMETHODCALLTYPE *EnumBridges )(
  263. IHNetBridgeSettings * This,
  264. /* [out] */ IEnumHNetBridges **ppEnum);
  265. HRESULT ( STDMETHODCALLTYPE *CreateBridge )(
  266. IHNetBridgeSettings * This,
  267. /* [out] */ IHNetBridge **ppHNetBridge,
  268. /* [defaultvalue][in] */ INetCfg *pnetcfgExisting);
  269. HRESULT ( STDMETHODCALLTYPE *DestroyAllBridges )(
  270. IHNetBridgeSettings * This,
  271. /* [out] */ ULONG *pcBridges,
  272. /* [defaultvalue][in] */ INetCfg *pnetcfgExisting);
  273. END_INTERFACE
  274. } IHNetBridgeSettingsVtbl;
  275. interface IHNetBridgeSettings
  276. {
  277. CONST_VTBL struct IHNetBridgeSettingsVtbl *lpVtbl;
  278. };
  279. #ifdef COBJMACROS
  280. #define IHNetBridgeSettings_QueryInterface(This,riid,ppvObject) \
  281. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  282. #define IHNetBridgeSettings_AddRef(This) \
  283. (This)->lpVtbl -> AddRef(This)
  284. #define IHNetBridgeSettings_Release(This) \
  285. (This)->lpVtbl -> Release(This)
  286. #define IHNetBridgeSettings_EnumBridges(This,ppEnum) \
  287. (This)->lpVtbl -> EnumBridges(This,ppEnum)
  288. #define IHNetBridgeSettings_CreateBridge(This,ppHNetBridge,pnetcfgExisting) \
  289. (This)->lpVtbl -> CreateBridge(This,ppHNetBridge,pnetcfgExisting)
  290. #define IHNetBridgeSettings_DestroyAllBridges(This,pcBridges,pnetcfgExisting) \
  291. (This)->lpVtbl -> DestroyAllBridges(This,pcBridges,pnetcfgExisting)
  292. #endif /* COBJMACROS */
  293. #endif /* C style interface */
  294. HRESULT STDMETHODCALLTYPE IHNetBridgeSettings_EnumBridges_Proxy(
  295. IHNetBridgeSettings * This,
  296. /* [out] */ IEnumHNetBridges **ppEnum);
  297. void __RPC_STUB IHNetBridgeSettings_EnumBridges_Stub(
  298. IRpcStubBuffer *This,
  299. IRpcChannelBuffer *_pRpcChannelBuffer,
  300. PRPC_MESSAGE _pRpcMessage,
  301. DWORD *_pdwStubPhase);
  302. HRESULT STDMETHODCALLTYPE IHNetBridgeSettings_CreateBridge_Proxy(
  303. IHNetBridgeSettings * This,
  304. /* [out] */ IHNetBridge **ppHNetBridge,
  305. /* [defaultvalue][in] */ INetCfg *pnetcfgExisting);
  306. void __RPC_STUB IHNetBridgeSettings_CreateBridge_Stub(
  307. IRpcStubBuffer *This,
  308. IRpcChannelBuffer *_pRpcChannelBuffer,
  309. PRPC_MESSAGE _pRpcMessage,
  310. DWORD *_pdwStubPhase);
  311. HRESULT STDMETHODCALLTYPE IHNetBridgeSettings_DestroyAllBridges_Proxy(
  312. IHNetBridgeSettings * This,
  313. /* [out] */ ULONG *pcBridges,
  314. /* [defaultvalue][in] */ INetCfg *pnetcfgExisting);
  315. void __RPC_STUB IHNetBridgeSettings_DestroyAllBridges_Stub(
  316. IRpcStubBuffer *This,
  317. IRpcChannelBuffer *_pRpcChannelBuffer,
  318. PRPC_MESSAGE _pRpcMessage,
  319. DWORD *_pdwStubPhase);
  320. #endif /* __IHNetBridgeSettings_INTERFACE_DEFINED__ */
  321. #ifndef __IHNetFirewallSettings_INTERFACE_DEFINED__
  322. #define __IHNetFirewallSettings_INTERFACE_DEFINED__
  323. /* interface IHNetFirewallSettings */
  324. /* [unique][uuid][object][local] */
  325. typedef struct tagHNET_FW_LOGGING_SETTINGS
  326. {
  327. /* [string] */ LPWSTR pszwPath;
  328. ULONG ulMaxFileSize;
  329. BOOLEAN fLogDroppedPackets;
  330. BOOLEAN fLogConnections;
  331. } HNET_FW_LOGGING_SETTINGS;
  332. EXTERN_C const IID IID_IHNetFirewallSettings;
  333. #if defined(__cplusplus) && !defined(CINTERFACE)
  334. MIDL_INTERFACE("85D18B6E-3032-11D4-9348-00C04F8EEB71")
  335. IHNetFirewallSettings : public IUnknown
  336. {
  337. public:
  338. virtual HRESULT STDMETHODCALLTYPE EnumFirewalledConnections(
  339. /* [out] */ IEnumHNetFirewalledConnections **ppEnum) = 0;
  340. virtual HRESULT STDMETHODCALLTYPE GetFirewallLoggingSettings(
  341. /* [out] */ HNET_FW_LOGGING_SETTINGS **ppSettings) = 0;
  342. virtual HRESULT STDMETHODCALLTYPE SetFirewallLoggingSettings(
  343. /* [in] */ HNET_FW_LOGGING_SETTINGS *pSettings) = 0;
  344. virtual HRESULT STDMETHODCALLTYPE DisableAllFirewalling(
  345. /* [out] */ ULONG *pcFirewalledConnections) = 0;
  346. };
  347. #else /* C style interface */
  348. typedef struct IHNetFirewallSettingsVtbl
  349. {
  350. BEGIN_INTERFACE
  351. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  352. IHNetFirewallSettings * This,
  353. /* [in] */ REFIID riid,
  354. /* [iid_is][out] */ void **ppvObject);
  355. ULONG ( STDMETHODCALLTYPE *AddRef )(
  356. IHNetFirewallSettings * This);
  357. ULONG ( STDMETHODCALLTYPE *Release )(
  358. IHNetFirewallSettings * This);
  359. HRESULT ( STDMETHODCALLTYPE *EnumFirewalledConnections )(
  360. IHNetFirewallSettings * This,
  361. /* [out] */ IEnumHNetFirewalledConnections **ppEnum);
  362. HRESULT ( STDMETHODCALLTYPE *GetFirewallLoggingSettings )(
  363. IHNetFirewallSettings * This,
  364. /* [out] */ HNET_FW_LOGGING_SETTINGS **ppSettings);
  365. HRESULT ( STDMETHODCALLTYPE *SetFirewallLoggingSettings )(
  366. IHNetFirewallSettings * This,
  367. /* [in] */ HNET_FW_LOGGING_SETTINGS *pSettings);
  368. HRESULT ( STDMETHODCALLTYPE *DisableAllFirewalling )(
  369. IHNetFirewallSettings * This,
  370. /* [out] */ ULONG *pcFirewalledConnections);
  371. END_INTERFACE
  372. } IHNetFirewallSettingsVtbl;
  373. interface IHNetFirewallSettings
  374. {
  375. CONST_VTBL struct IHNetFirewallSettingsVtbl *lpVtbl;
  376. };
  377. #ifdef COBJMACROS
  378. #define IHNetFirewallSettings_QueryInterface(This,riid,ppvObject) \
  379. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  380. #define IHNetFirewallSettings_AddRef(This) \
  381. (This)->lpVtbl -> AddRef(This)
  382. #define IHNetFirewallSettings_Release(This) \
  383. (This)->lpVtbl -> Release(This)
  384. #define IHNetFirewallSettings_EnumFirewalledConnections(This,ppEnum) \
  385. (This)->lpVtbl -> EnumFirewalledConnections(This,ppEnum)
  386. #define IHNetFirewallSettings_GetFirewallLoggingSettings(This,ppSettings) \
  387. (This)->lpVtbl -> GetFirewallLoggingSettings(This,ppSettings)
  388. #define IHNetFirewallSettings_SetFirewallLoggingSettings(This,pSettings) \
  389. (This)->lpVtbl -> SetFirewallLoggingSettings(This,pSettings)
  390. #define IHNetFirewallSettings_DisableAllFirewalling(This,pcFirewalledConnections) \
  391. (This)->lpVtbl -> DisableAllFirewalling(This,pcFirewalledConnections)
  392. #endif /* COBJMACROS */
  393. #endif /* C style interface */
  394. HRESULT STDMETHODCALLTYPE IHNetFirewallSettings_EnumFirewalledConnections_Proxy(
  395. IHNetFirewallSettings * This,
  396. /* [out] */ IEnumHNetFirewalledConnections **ppEnum);
  397. void __RPC_STUB IHNetFirewallSettings_EnumFirewalledConnections_Stub(
  398. IRpcStubBuffer *This,
  399. IRpcChannelBuffer *_pRpcChannelBuffer,
  400. PRPC_MESSAGE _pRpcMessage,
  401. DWORD *_pdwStubPhase);
  402. HRESULT STDMETHODCALLTYPE IHNetFirewallSettings_GetFirewallLoggingSettings_Proxy(
  403. IHNetFirewallSettings * This,
  404. /* [out] */ HNET_FW_LOGGING_SETTINGS **ppSettings);
  405. void __RPC_STUB IHNetFirewallSettings_GetFirewallLoggingSettings_Stub(
  406. IRpcStubBuffer *This,
  407. IRpcChannelBuffer *_pRpcChannelBuffer,
  408. PRPC_MESSAGE _pRpcMessage,
  409. DWORD *_pdwStubPhase);
  410. HRESULT STDMETHODCALLTYPE IHNetFirewallSettings_SetFirewallLoggingSettings_Proxy(
  411. IHNetFirewallSettings * This,
  412. /* [in] */ HNET_FW_LOGGING_SETTINGS *pSettings);
  413. void __RPC_STUB IHNetFirewallSettings_SetFirewallLoggingSettings_Stub(
  414. IRpcStubBuffer *This,
  415. IRpcChannelBuffer *_pRpcChannelBuffer,
  416. PRPC_MESSAGE _pRpcMessage,
  417. DWORD *_pdwStubPhase);
  418. HRESULT STDMETHODCALLTYPE IHNetFirewallSettings_DisableAllFirewalling_Proxy(
  419. IHNetFirewallSettings * This,
  420. /* [out] */ ULONG *pcFirewalledConnections);
  421. void __RPC_STUB IHNetFirewallSettings_DisableAllFirewalling_Stub(
  422. IRpcStubBuffer *This,
  423. IRpcChannelBuffer *_pRpcChannelBuffer,
  424. PRPC_MESSAGE _pRpcMessage,
  425. DWORD *_pdwStubPhase);
  426. #endif /* __IHNetFirewallSettings_INTERFACE_DEFINED__ */
  427. /* interface __MIDL_itf_hnetcfg_0159 */
  428. /* [local] */
  429. VOID
  430. HNetFreeFirewallLoggingSettings(
  431. HNET_FW_LOGGING_SETTINGS *pSettings
  432. );
  433. extern RPC_IF_HANDLE __MIDL_itf_hnetcfg_0159_v0_0_c_ifspec;
  434. extern RPC_IF_HANDLE __MIDL_itf_hnetcfg_0159_v0_0_s_ifspec;
  435. #ifndef __IHNetIcsSettings_INTERFACE_DEFINED__
  436. #define __IHNetIcsSettings_INTERFACE_DEFINED__
  437. /* interface IHNetIcsSettings */
  438. /* [unique][uuid][object][local] */
  439. EXTERN_C const IID IID_IHNetIcsSettings;
  440. #if defined(__cplusplus) && !defined(CINTERFACE)
  441. MIDL_INTERFACE("85D18B6F-3032-11D4-9348-00C04F8EEB71")
  442. IHNetIcsSettings : public IUnknown
  443. {
  444. public:
  445. virtual HRESULT STDMETHODCALLTYPE EnumIcsPublicConnections(
  446. /* [out] */ IEnumHNetIcsPublicConnections **ppEnum) = 0;
  447. virtual HRESULT STDMETHODCALLTYPE EnumIcsPrivateConnections(
  448. /* [out] */ IEnumHNetIcsPrivateConnections **ppEnum) = 0;
  449. virtual HRESULT STDMETHODCALLTYPE DisableIcs(
  450. /* [out] */ ULONG *pcIcsPublicConnections,
  451. /* [out] */ ULONG *pcIcsPrivateConnections) = 0;
  452. virtual HRESULT STDMETHODCALLTYPE GetPossiblePrivateConnections(
  453. /* [in] */ IHNetConnection *pConn,
  454. /* [out] */ ULONG *pcPrivateConnections,
  455. /* [length_is][out] */ IHNetConnection **pprgPrivateConnections[ ],
  456. /* [out] */ LONG *pxCurrentPrivate) = 0;
  457. virtual HRESULT STDMETHODCALLTYPE GetAutodialSettings(
  458. /* [out] */ BOOLEAN *pfAutodialEnabled) = 0;
  459. virtual HRESULT STDMETHODCALLTYPE SetAutodialSettings(
  460. /* [in] */ BOOLEAN fEnableAutodial) = 0;
  461. virtual HRESULT STDMETHODCALLTYPE GetDhcpEnabled(
  462. /* [out] */ BOOLEAN *pfDhcpEnabled) = 0;
  463. virtual HRESULT STDMETHODCALLTYPE SetDhcpEnabled(
  464. /* [in] */ BOOLEAN fEnableDhcp) = 0;
  465. virtual HRESULT STDMETHODCALLTYPE GetDhcpScopeSettings(
  466. /* [out] */ DWORD *pdwScopeAddress,
  467. /* [out] */ DWORD *pdwScopeMask) = 0;
  468. virtual HRESULT STDMETHODCALLTYPE SetDhcpScopeSettings(
  469. /* [in] */ DWORD dwScopeAddress,
  470. /* [in] */ DWORD dwScopeMask) = 0;
  471. virtual HRESULT STDMETHODCALLTYPE EnumDhcpReservedAddresses(
  472. /* [out] */ IEnumHNetPortMappingBindings **ppEnum) = 0;
  473. virtual HRESULT STDMETHODCALLTYPE GetDnsEnabled(
  474. /* [out] */ BOOLEAN *pfDnsEnabled) = 0;
  475. virtual HRESULT STDMETHODCALLTYPE SetDnsEnabled(
  476. /* [in] */ BOOLEAN fEnableDns) = 0;
  477. };
  478. #else /* C style interface */
  479. typedef struct IHNetIcsSettingsVtbl
  480. {
  481. BEGIN_INTERFACE
  482. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  483. IHNetIcsSettings * This,
  484. /* [in] */ REFIID riid,
  485. /* [iid_is][out] */ void **ppvObject);
  486. ULONG ( STDMETHODCALLTYPE *AddRef )(
  487. IHNetIcsSettings * This);
  488. ULONG ( STDMETHODCALLTYPE *Release )(
  489. IHNetIcsSettings * This);
  490. HRESULT ( STDMETHODCALLTYPE *EnumIcsPublicConnections )(
  491. IHNetIcsSettings * This,
  492. /* [out] */ IEnumHNetIcsPublicConnections **ppEnum);
  493. HRESULT ( STDMETHODCALLTYPE *EnumIcsPrivateConnections )(
  494. IHNetIcsSettings * This,
  495. /* [out] */ IEnumHNetIcsPrivateConnections **ppEnum);
  496. HRESULT ( STDMETHODCALLTYPE *DisableIcs )(
  497. IHNetIcsSettings * This,
  498. /* [out] */ ULONG *pcIcsPublicConnections,
  499. /* [out] */ ULONG *pcIcsPrivateConnections);
  500. HRESULT ( STDMETHODCALLTYPE *GetPossiblePrivateConnections )(
  501. IHNetIcsSettings * This,
  502. /* [in] */ IHNetConnection *pConn,
  503. /* [out] */ ULONG *pcPrivateConnections,
  504. /* [length_is][out] */ IHNetConnection **pprgPrivateConnections[ ],
  505. /* [out] */ LONG *pxCurrentPrivate);
  506. HRESULT ( STDMETHODCALLTYPE *GetAutodialSettings )(
  507. IHNetIcsSettings * This,
  508. /* [out] */ BOOLEAN *pfAutodialEnabled);
  509. HRESULT ( STDMETHODCALLTYPE *SetAutodialSettings )(
  510. IHNetIcsSettings * This,
  511. /* [in] */ BOOLEAN fEnableAutodial);
  512. HRESULT ( STDMETHODCALLTYPE *GetDhcpEnabled )(
  513. IHNetIcsSettings * This,
  514. /* [out] */ BOOLEAN *pfDhcpEnabled);
  515. HRESULT ( STDMETHODCALLTYPE *SetDhcpEnabled )(
  516. IHNetIcsSettings * This,
  517. /* [in] */ BOOLEAN fEnableDhcp);
  518. HRESULT ( STDMETHODCALLTYPE *GetDhcpScopeSettings )(
  519. IHNetIcsSettings * This,
  520. /* [out] */ DWORD *pdwScopeAddress,
  521. /* [out] */ DWORD *pdwScopeMask);
  522. HRESULT ( STDMETHODCALLTYPE *SetDhcpScopeSettings )(
  523. IHNetIcsSettings * This,
  524. /* [in] */ DWORD dwScopeAddress,
  525. /* [in] */ DWORD dwScopeMask);
  526. HRESULT ( STDMETHODCALLTYPE *EnumDhcpReservedAddresses )(
  527. IHNetIcsSettings * This,
  528. /* [out] */ IEnumHNetPortMappingBindings **ppEnum);
  529. HRESULT ( STDMETHODCALLTYPE *GetDnsEnabled )(
  530. IHNetIcsSettings * This,
  531. /* [out] */ BOOLEAN *pfDnsEnabled);
  532. HRESULT ( STDMETHODCALLTYPE *SetDnsEnabled )(
  533. IHNetIcsSettings * This,
  534. /* [in] */ BOOLEAN fEnableDns);
  535. END_INTERFACE
  536. } IHNetIcsSettingsVtbl;
  537. interface IHNetIcsSettings
  538. {
  539. CONST_VTBL struct IHNetIcsSettingsVtbl *lpVtbl;
  540. };
  541. #ifdef COBJMACROS
  542. #define IHNetIcsSettings_QueryInterface(This,riid,ppvObject) \
  543. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  544. #define IHNetIcsSettings_AddRef(This) \
  545. (This)->lpVtbl -> AddRef(This)
  546. #define IHNetIcsSettings_Release(This) \
  547. (This)->lpVtbl -> Release(This)
  548. #define IHNetIcsSettings_EnumIcsPublicConnections(This,ppEnum) \
  549. (This)->lpVtbl -> EnumIcsPublicConnections(This,ppEnum)
  550. #define IHNetIcsSettings_EnumIcsPrivateConnections(This,ppEnum) \
  551. (This)->lpVtbl -> EnumIcsPrivateConnections(This,ppEnum)
  552. #define IHNetIcsSettings_DisableIcs(This,pcIcsPublicConnections,pcIcsPrivateConnections) \
  553. (This)->lpVtbl -> DisableIcs(This,pcIcsPublicConnections,pcIcsPrivateConnections)
  554. #define IHNetIcsSettings_GetPossiblePrivateConnections(This,pConn,pcPrivateConnections,pprgPrivateConnections,pxCurrentPrivate) \
  555. (This)->lpVtbl -> GetPossiblePrivateConnections(This,pConn,pcPrivateConnections,pprgPrivateConnections,pxCurrentPrivate)
  556. #define IHNetIcsSettings_GetAutodialSettings(This,pfAutodialEnabled) \
  557. (This)->lpVtbl -> GetAutodialSettings(This,pfAutodialEnabled)
  558. #define IHNetIcsSettings_SetAutodialSettings(This,fEnableAutodial) \
  559. (This)->lpVtbl -> SetAutodialSettings(This,fEnableAutodial)
  560. #define IHNetIcsSettings_GetDhcpEnabled(This,pfDhcpEnabled) \
  561. (This)->lpVtbl -> GetDhcpEnabled(This,pfDhcpEnabled)
  562. #define IHNetIcsSettings_SetDhcpEnabled(This,fEnableDhcp) \
  563. (This)->lpVtbl -> SetDhcpEnabled(This,fEnableDhcp)
  564. #define IHNetIcsSettings_GetDhcpScopeSettings(This,pdwScopeAddress,pdwScopeMask) \
  565. (This)->lpVtbl -> GetDhcpScopeSettings(This,pdwScopeAddress,pdwScopeMask)
  566. #define IHNetIcsSettings_SetDhcpScopeSettings(This,dwScopeAddress,dwScopeMask) \
  567. (This)->lpVtbl -> SetDhcpScopeSettings(This,dwScopeAddress,dwScopeMask)
  568. #define IHNetIcsSettings_EnumDhcpReservedAddresses(This,ppEnum) \
  569. (This)->lpVtbl -> EnumDhcpReservedAddresses(This,ppEnum)
  570. #define IHNetIcsSettings_GetDnsEnabled(This,pfDnsEnabled) \
  571. (This)->lpVtbl -> GetDnsEnabled(This,pfDnsEnabled)
  572. #define IHNetIcsSettings_SetDnsEnabled(This,fEnableDns) \
  573. (This)->lpVtbl -> SetDnsEnabled(This,fEnableDns)
  574. #endif /* COBJMACROS */
  575. #endif /* C style interface */
  576. HRESULT STDMETHODCALLTYPE IHNetIcsSettings_EnumIcsPublicConnections_Proxy(
  577. IHNetIcsSettings * This,
  578. /* [out] */ IEnumHNetIcsPublicConnections **ppEnum);
  579. void __RPC_STUB IHNetIcsSettings_EnumIcsPublicConnections_Stub(
  580. IRpcStubBuffer *This,
  581. IRpcChannelBuffer *_pRpcChannelBuffer,
  582. PRPC_MESSAGE _pRpcMessage,
  583. DWORD *_pdwStubPhase);
  584. HRESULT STDMETHODCALLTYPE IHNetIcsSettings_EnumIcsPrivateConnections_Proxy(
  585. IHNetIcsSettings * This,
  586. /* [out] */ IEnumHNetIcsPrivateConnections **ppEnum);
  587. void __RPC_STUB IHNetIcsSettings_EnumIcsPrivateConnections_Stub(
  588. IRpcStubBuffer *This,
  589. IRpcChannelBuffer *_pRpcChannelBuffer,
  590. PRPC_MESSAGE _pRpcMessage,
  591. DWORD *_pdwStubPhase);
  592. HRESULT STDMETHODCALLTYPE IHNetIcsSettings_DisableIcs_Proxy(
  593. IHNetIcsSettings * This,
  594. /* [out] */ ULONG *pcIcsPublicConnections,
  595. /* [out] */ ULONG *pcIcsPrivateConnections);
  596. void __RPC_STUB IHNetIcsSettings_DisableIcs_Stub(
  597. IRpcStubBuffer *This,
  598. IRpcChannelBuffer *_pRpcChannelBuffer,
  599. PRPC_MESSAGE _pRpcMessage,
  600. DWORD *_pdwStubPhase);
  601. HRESULT STDMETHODCALLTYPE IHNetIcsSettings_GetPossiblePrivateConnections_Proxy(
  602. IHNetIcsSettings * This,
  603. /* [in] */ IHNetConnection *pConn,
  604. /* [out] */ ULONG *pcPrivateConnections,
  605. /* [length_is][out] */ IHNetConnection **pprgPrivateConnections[ ],
  606. /* [out] */ LONG *pxCurrentPrivate);
  607. void __RPC_STUB IHNetIcsSettings_GetPossiblePrivateConnections_Stub(
  608. IRpcStubBuffer *This,
  609. IRpcChannelBuffer *_pRpcChannelBuffer,
  610. PRPC_MESSAGE _pRpcMessage,
  611. DWORD *_pdwStubPhase);
  612. HRESULT STDMETHODCALLTYPE IHNetIcsSettings_GetAutodialSettings_Proxy(
  613. IHNetIcsSettings * This,
  614. /* [out] */ BOOLEAN *pfAutodialEnabled);
  615. void __RPC_STUB IHNetIcsSettings_GetAutodialSettings_Stub(
  616. IRpcStubBuffer *This,
  617. IRpcChannelBuffer *_pRpcChannelBuffer,
  618. PRPC_MESSAGE _pRpcMessage,
  619. DWORD *_pdwStubPhase);
  620. HRESULT STDMETHODCALLTYPE IHNetIcsSettings_SetAutodialSettings_Proxy(
  621. IHNetIcsSettings * This,
  622. /* [in] */ BOOLEAN fEnableAutodial);
  623. void __RPC_STUB IHNetIcsSettings_SetAutodialSettings_Stub(
  624. IRpcStubBuffer *This,
  625. IRpcChannelBuffer *_pRpcChannelBuffer,
  626. PRPC_MESSAGE _pRpcMessage,
  627. DWORD *_pdwStubPhase);
  628. HRESULT STDMETHODCALLTYPE IHNetIcsSettings_GetDhcpEnabled_Proxy(
  629. IHNetIcsSettings * This,
  630. /* [out] */ BOOLEAN *pfDhcpEnabled);
  631. void __RPC_STUB IHNetIcsSettings_GetDhcpEnabled_Stub(
  632. IRpcStubBuffer *This,
  633. IRpcChannelBuffer *_pRpcChannelBuffer,
  634. PRPC_MESSAGE _pRpcMessage,
  635. DWORD *_pdwStubPhase);
  636. HRESULT STDMETHODCALLTYPE IHNetIcsSettings_SetDhcpEnabled_Proxy(
  637. IHNetIcsSettings * This,
  638. /* [in] */ BOOLEAN fEnableDhcp);
  639. void __RPC_STUB IHNetIcsSettings_SetDhcpEnabled_Stub(
  640. IRpcStubBuffer *This,
  641. IRpcChannelBuffer *_pRpcChannelBuffer,
  642. PRPC_MESSAGE _pRpcMessage,
  643. DWORD *_pdwStubPhase);
  644. HRESULT STDMETHODCALLTYPE IHNetIcsSettings_GetDhcpScopeSettings_Proxy(
  645. IHNetIcsSettings * This,
  646. /* [out] */ DWORD *pdwScopeAddress,
  647. /* [out] */ DWORD *pdwScopeMask);
  648. void __RPC_STUB IHNetIcsSettings_GetDhcpScopeSettings_Stub(
  649. IRpcStubBuffer *This,
  650. IRpcChannelBuffer *_pRpcChannelBuffer,
  651. PRPC_MESSAGE _pRpcMessage,
  652. DWORD *_pdwStubPhase);
  653. HRESULT STDMETHODCALLTYPE IHNetIcsSettings_SetDhcpScopeSettings_Proxy(
  654. IHNetIcsSettings * This,
  655. /* [in] */ DWORD dwScopeAddress,
  656. /* [in] */ DWORD dwScopeMask);
  657. void __RPC_STUB IHNetIcsSettings_SetDhcpScopeSettings_Stub(
  658. IRpcStubBuffer *This,
  659. IRpcChannelBuffer *_pRpcChannelBuffer,
  660. PRPC_MESSAGE _pRpcMessage,
  661. DWORD *_pdwStubPhase);
  662. HRESULT STDMETHODCALLTYPE IHNetIcsSettings_EnumDhcpReservedAddresses_Proxy(
  663. IHNetIcsSettings * This,
  664. /* [out] */ IEnumHNetPortMappingBindings **ppEnum);
  665. void __RPC_STUB IHNetIcsSettings_EnumDhcpReservedAddresses_Stub(
  666. IRpcStubBuffer *This,
  667. IRpcChannelBuffer *_pRpcChannelBuffer,
  668. PRPC_MESSAGE _pRpcMessage,
  669. DWORD *_pdwStubPhase);
  670. HRESULT STDMETHODCALLTYPE IHNetIcsSettings_GetDnsEnabled_Proxy(
  671. IHNetIcsSettings * This,
  672. /* [out] */ BOOLEAN *pfDnsEnabled);
  673. void __RPC_STUB IHNetIcsSettings_GetDnsEnabled_Stub(
  674. IRpcStubBuffer *This,
  675. IRpcChannelBuffer *_pRpcChannelBuffer,
  676. PRPC_MESSAGE _pRpcMessage,
  677. DWORD *_pdwStubPhase);
  678. HRESULT STDMETHODCALLTYPE IHNetIcsSettings_SetDnsEnabled_Proxy(
  679. IHNetIcsSettings * This,
  680. /* [in] */ BOOLEAN fEnableDns);
  681. void __RPC_STUB IHNetIcsSettings_SetDnsEnabled_Stub(
  682. IRpcStubBuffer *This,
  683. IRpcChannelBuffer *_pRpcChannelBuffer,
  684. PRPC_MESSAGE _pRpcMessage,
  685. DWORD *_pdwStubPhase);
  686. #endif /* __IHNetIcsSettings_INTERFACE_DEFINED__ */
  687. /* interface __MIDL_itf_hnetcfg_0160 */
  688. /* [local] */
  689. typedef struct tagHNET_RESPONSE_RANGE
  690. {
  691. UCHAR ucIPProtocol;
  692. USHORT usStartPort;
  693. USHORT usEndPort;
  694. } HNET_RESPONSE_RANGE;
  695. typedef struct tagHNET_PORT_MAPPING_BINDING
  696. {
  697. OLECHAR *pszwTargetMachineName;
  698. ULONG ulTargetMachineAddress;
  699. } HNET_PORT_MAPPING_BINDING;
  700. extern RPC_IF_HANDLE __MIDL_itf_hnetcfg_0160_v0_0_c_ifspec;
  701. extern RPC_IF_HANDLE __MIDL_itf_hnetcfg_0160_v0_0_s_ifspec;
  702. #ifndef __IHNetProtocolSettings_INTERFACE_DEFINED__
  703. #define __IHNetProtocolSettings_INTERFACE_DEFINED__
  704. /* interface IHNetProtocolSettings */
  705. /* [unique][uuid][object][local] */
  706. EXTERN_C const IID IID_IHNetProtocolSettings;
  707. #if defined(__cplusplus) && !defined(CINTERFACE)
  708. MIDL_INTERFACE("85D18B70-3032-11D4-9348-00C04F8EEB71")
  709. IHNetProtocolSettings : public IUnknown
  710. {
  711. public:
  712. virtual HRESULT STDMETHODCALLTYPE EnumApplicationProtocols(
  713. /* [in] */ BOOLEAN fEnabledOnly,
  714. /* [out] */ IEnumHNetApplicationProtocols **ppEnum) = 0;
  715. virtual HRESULT STDMETHODCALLTYPE CreateApplicationProtocol(
  716. /* [in] */ OLECHAR *pszwName,
  717. /* [in] */ UCHAR ucOutgoingIPProtocol,
  718. /* [in] */ USHORT usOutgoingPort,
  719. /* [in] */ USHORT uscResponses,
  720. /* [size_is][in] */ HNET_RESPONSE_RANGE rgResponses[ ],
  721. /* [out] */ IHNetApplicationProtocol **ppProtocol) = 0;
  722. virtual HRESULT STDMETHODCALLTYPE EnumPortMappingProtocols(
  723. /* [out] */ IEnumHNetPortMappingProtocols **ppEnum) = 0;
  724. virtual HRESULT STDMETHODCALLTYPE CreatePortMappingProtocol(
  725. /* [in] */ OLECHAR *pszwName,
  726. /* [in] */ UCHAR ucIPProtocol,
  727. /* [in] */ USHORT usPort,
  728. /* [out] */ IHNetPortMappingProtocol **ppProtocol) = 0;
  729. virtual HRESULT STDMETHODCALLTYPE FindPortMappingProtocol(
  730. /* [in] */ GUID *pGuid,
  731. /* [out] */ IHNetPortMappingProtocol **ppProtocol) = 0;
  732. };
  733. #else /* C style interface */
  734. typedef struct IHNetProtocolSettingsVtbl
  735. {
  736. BEGIN_INTERFACE
  737. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  738. IHNetProtocolSettings * This,
  739. /* [in] */ REFIID riid,
  740. /* [iid_is][out] */ void **ppvObject);
  741. ULONG ( STDMETHODCALLTYPE *AddRef )(
  742. IHNetProtocolSettings * This);
  743. ULONG ( STDMETHODCALLTYPE *Release )(
  744. IHNetProtocolSettings * This);
  745. HRESULT ( STDMETHODCALLTYPE *EnumApplicationProtocols )(
  746. IHNetProtocolSettings * This,
  747. /* [in] */ BOOLEAN fEnabledOnly,
  748. /* [out] */ IEnumHNetApplicationProtocols **ppEnum);
  749. HRESULT ( STDMETHODCALLTYPE *CreateApplicationProtocol )(
  750. IHNetProtocolSettings * This,
  751. /* [in] */ OLECHAR *pszwName,
  752. /* [in] */ UCHAR ucOutgoingIPProtocol,
  753. /* [in] */ USHORT usOutgoingPort,
  754. /* [in] */ USHORT uscResponses,
  755. /* [size_is][in] */ HNET_RESPONSE_RANGE rgResponses[ ],
  756. /* [out] */ IHNetApplicationProtocol **ppProtocol);
  757. HRESULT ( STDMETHODCALLTYPE *EnumPortMappingProtocols )(
  758. IHNetProtocolSettings * This,
  759. /* [out] */ IEnumHNetPortMappingProtocols **ppEnum);
  760. HRESULT ( STDMETHODCALLTYPE *CreatePortMappingProtocol )(
  761. IHNetProtocolSettings * This,
  762. /* [in] */ OLECHAR *pszwName,
  763. /* [in] */ UCHAR ucIPProtocol,
  764. /* [in] */ USHORT usPort,
  765. /* [out] */ IHNetPortMappingProtocol **ppProtocol);
  766. HRESULT ( STDMETHODCALLTYPE *FindPortMappingProtocol )(
  767. IHNetProtocolSettings * This,
  768. /* [in] */ GUID *pGuid,
  769. /* [out] */ IHNetPortMappingProtocol **ppProtocol);
  770. END_INTERFACE
  771. } IHNetProtocolSettingsVtbl;
  772. interface IHNetProtocolSettings
  773. {
  774. CONST_VTBL struct IHNetProtocolSettingsVtbl *lpVtbl;
  775. };
  776. #ifdef COBJMACROS
  777. #define IHNetProtocolSettings_QueryInterface(This,riid,ppvObject) \
  778. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  779. #define IHNetProtocolSettings_AddRef(This) \
  780. (This)->lpVtbl -> AddRef(This)
  781. #define IHNetProtocolSettings_Release(This) \
  782. (This)->lpVtbl -> Release(This)
  783. #define IHNetProtocolSettings_EnumApplicationProtocols(This,fEnabledOnly,ppEnum) \
  784. (This)->lpVtbl -> EnumApplicationProtocols(This,fEnabledOnly,ppEnum)
  785. #define IHNetProtocolSettings_CreateApplicationProtocol(This,pszwName,ucOutgoingIPProtocol,usOutgoingPort,uscResponses,rgResponses,ppProtocol) \
  786. (This)->lpVtbl -> CreateApplicationProtocol(This,pszwName,ucOutgoingIPProtocol,usOutgoingPort,uscResponses,rgResponses,ppProtocol)
  787. #define IHNetProtocolSettings_EnumPortMappingProtocols(This,ppEnum) \
  788. (This)->lpVtbl -> EnumPortMappingProtocols(This,ppEnum)
  789. #define IHNetProtocolSettings_CreatePortMappingProtocol(This,pszwName,ucIPProtocol,usPort,ppProtocol) \
  790. (This)->lpVtbl -> CreatePortMappingProtocol(This,pszwName,ucIPProtocol,usPort,ppProtocol)
  791. #define IHNetProtocolSettings_FindPortMappingProtocol(This,pGuid,ppProtocol) \
  792. (This)->lpVtbl -> FindPortMappingProtocol(This,pGuid,ppProtocol)
  793. #endif /* COBJMACROS */
  794. #endif /* C style interface */
  795. HRESULT STDMETHODCALLTYPE IHNetProtocolSettings_EnumApplicationProtocols_Proxy(
  796. IHNetProtocolSettings * This,
  797. /* [in] */ BOOLEAN fEnabledOnly,
  798. /* [out] */ IEnumHNetApplicationProtocols **ppEnum);
  799. void __RPC_STUB IHNetProtocolSettings_EnumApplicationProtocols_Stub(
  800. IRpcStubBuffer *This,
  801. IRpcChannelBuffer *_pRpcChannelBuffer,
  802. PRPC_MESSAGE _pRpcMessage,
  803. DWORD *_pdwStubPhase);
  804. HRESULT STDMETHODCALLTYPE IHNetProtocolSettings_CreateApplicationProtocol_Proxy(
  805. IHNetProtocolSettings * This,
  806. /* [in] */ OLECHAR *pszwName,
  807. /* [in] */ UCHAR ucOutgoingIPProtocol,
  808. /* [in] */ USHORT usOutgoingPort,
  809. /* [in] */ USHORT uscResponses,
  810. /* [size_is][in] */ HNET_RESPONSE_RANGE rgResponses[ ],
  811. /* [out] */ IHNetApplicationProtocol **ppProtocol);
  812. void __RPC_STUB IHNetProtocolSettings_CreateApplicationProtocol_Stub(
  813. IRpcStubBuffer *This,
  814. IRpcChannelBuffer *_pRpcChannelBuffer,
  815. PRPC_MESSAGE _pRpcMessage,
  816. DWORD *_pdwStubPhase);
  817. HRESULT STDMETHODCALLTYPE IHNetProtocolSettings_EnumPortMappingProtocols_Proxy(
  818. IHNetProtocolSettings * This,
  819. /* [out] */ IEnumHNetPortMappingProtocols **ppEnum);
  820. void __RPC_STUB IHNetProtocolSettings_EnumPortMappingProtocols_Stub(
  821. IRpcStubBuffer *This,
  822. IRpcChannelBuffer *_pRpcChannelBuffer,
  823. PRPC_MESSAGE _pRpcMessage,
  824. DWORD *_pdwStubPhase);
  825. HRESULT STDMETHODCALLTYPE IHNetProtocolSettings_CreatePortMappingProtocol_Proxy(
  826. IHNetProtocolSettings * This,
  827. /* [in] */ OLECHAR *pszwName,
  828. /* [in] */ UCHAR ucIPProtocol,
  829. /* [in] */ USHORT usPort,
  830. /* [out] */ IHNetPortMappingProtocol **ppProtocol);
  831. void __RPC_STUB IHNetProtocolSettings_CreatePortMappingProtocol_Stub(
  832. IRpcStubBuffer *This,
  833. IRpcChannelBuffer *_pRpcChannelBuffer,
  834. PRPC_MESSAGE _pRpcMessage,
  835. DWORD *_pdwStubPhase);
  836. HRESULT STDMETHODCALLTYPE IHNetProtocolSettings_FindPortMappingProtocol_Proxy(
  837. IHNetProtocolSettings * This,
  838. /* [in] */ GUID *pGuid,
  839. /* [out] */ IHNetPortMappingProtocol **ppProtocol);
  840. void __RPC_STUB IHNetProtocolSettings_FindPortMappingProtocol_Stub(
  841. IRpcStubBuffer *This,
  842. IRpcChannelBuffer *_pRpcChannelBuffer,
  843. PRPC_MESSAGE _pRpcMessage,
  844. DWORD *_pdwStubPhase);
  845. #endif /* __IHNetProtocolSettings_INTERFACE_DEFINED__ */
  846. #ifndef __IHNetConnection_INTERFACE_DEFINED__
  847. #define __IHNetConnection_INTERFACE_DEFINED__
  848. /* interface IHNetConnection */
  849. /* [unique][uuid][object][local] */
  850. typedef struct tagHNET_CONN_PROPERTIES
  851. {
  852. BOOLEAN fLanConnection;
  853. BOOLEAN fFirewalled;
  854. BOOLEAN fIcsPublic;
  855. BOOLEAN fIcsPrivate;
  856. BOOLEAN fBridge;
  857. BOOLEAN fPartOfBridge;
  858. BOOLEAN fCanBeBridged;
  859. BOOLEAN fCanBeFirewalled;
  860. BOOLEAN fCanBeIcsPublic;
  861. BOOLEAN fCanBeIcsPrivate;
  862. } HNET_CONN_PROPERTIES;
  863. typedef struct tagHNET_FW_ICMP_SETTINGS
  864. {
  865. BOOLEAN fAllowOutboundDestinationUnreachable;
  866. BOOLEAN fAllowOutboundSourceQuench;
  867. BOOLEAN fAllowRedirect;
  868. BOOLEAN fAllowInboundEchoRequest;
  869. BOOLEAN fAllowInboundRouterRequest;
  870. BOOLEAN fAllowOutboundTimeExceeded;
  871. BOOLEAN fAllowOutboundParameterProblem;
  872. BOOLEAN fAllowInboundTimestampRequest;
  873. BOOLEAN fAllowInboundMaskRequest;
  874. } HNET_FW_ICMP_SETTINGS;
  875. EXTERN_C const IID IID_IHNetConnection;
  876. #if defined(__cplusplus) && !defined(CINTERFACE)
  877. MIDL_INTERFACE("85D18B71-3032-11D4-9348-00C04F8EEB71")
  878. IHNetConnection : public IUnknown
  879. {
  880. public:
  881. virtual HRESULT STDMETHODCALLTYPE GetINetConnection(
  882. /* [out] */ INetConnection **ppNetConnection) = 0;
  883. virtual HRESULT STDMETHODCALLTYPE GetGuid(
  884. /* [out] */ GUID **ppGuid) = 0;
  885. virtual HRESULT STDMETHODCALLTYPE GetName(
  886. /* [string][out] */ OLECHAR **ppszwName) = 0;
  887. virtual HRESULT STDMETHODCALLTYPE GetRasPhonebookPath(
  888. /* [string][out] */ OLECHAR **ppszwPath) = 0;
  889. virtual HRESULT STDMETHODCALLTYPE GetProperties(
  890. /* [out] */ HNET_CONN_PROPERTIES **ppProperties) = 0;
  891. virtual HRESULT STDMETHODCALLTYPE GetControlInterface(
  892. REFIID iid,
  893. /* [iid_is] */ void **ppv) = 0;
  894. virtual HRESULT STDMETHODCALLTYPE Firewall(
  895. /* [out] */ IHNetFirewalledConnection **ppFirewalledConn) = 0;
  896. virtual HRESULT STDMETHODCALLTYPE SharePublic(
  897. /* [out] */ IHNetIcsPublicConnection **ppIcsPublicConn) = 0;
  898. virtual HRESULT STDMETHODCALLTYPE SharePrivate(
  899. /* [out] */ IHNetIcsPrivateConnection **ppIcsPrivateConn) = 0;
  900. virtual HRESULT STDMETHODCALLTYPE EnumPortMappings(
  901. /* [in] */ BOOLEAN fEnabledOnly,
  902. /* [out] */ IEnumHNetPortMappingBindings **ppEnum) = 0;
  903. virtual HRESULT STDMETHODCALLTYPE GetBindingForPortMappingProtocol(
  904. /* [in] */ IHNetPortMappingProtocol *pProtocol,
  905. /* [out] */ IHNetPortMappingBinding **ppBinding) = 0;
  906. virtual HRESULT STDMETHODCALLTYPE GetIcmpSettings(
  907. /* [out] */ HNET_FW_ICMP_SETTINGS **ppSettings) = 0;
  908. virtual HRESULT STDMETHODCALLTYPE SetIcmpSettings(
  909. /* [in] */ HNET_FW_ICMP_SETTINGS *pSettings) = 0;
  910. virtual HRESULT STDMETHODCALLTYPE ShowAutoconfigBalloon(
  911. /* [out] */ BOOLEAN *pfShowBalloon) = 0;
  912. virtual HRESULT STDMETHODCALLTYPE DeleteRasConnectionEntry( void) = 0;
  913. };
  914. #else /* C style interface */
  915. typedef struct IHNetConnectionVtbl
  916. {
  917. BEGIN_INTERFACE
  918. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  919. IHNetConnection * This,
  920. /* [in] */ REFIID riid,
  921. /* [iid_is][out] */ void **ppvObject);
  922. ULONG ( STDMETHODCALLTYPE *AddRef )(
  923. IHNetConnection * This);
  924. ULONG ( STDMETHODCALLTYPE *Release )(
  925. IHNetConnection * This);
  926. HRESULT ( STDMETHODCALLTYPE *GetINetConnection )(
  927. IHNetConnection * This,
  928. /* [out] */ INetConnection **ppNetConnection);
  929. HRESULT ( STDMETHODCALLTYPE *GetGuid )(
  930. IHNetConnection * This,
  931. /* [out] */ GUID **ppGuid);
  932. HRESULT ( STDMETHODCALLTYPE *GetName )(
  933. IHNetConnection * This,
  934. /* [string][out] */ OLECHAR **ppszwName);
  935. HRESULT ( STDMETHODCALLTYPE *GetRasPhonebookPath )(
  936. IHNetConnection * This,
  937. /* [string][out] */ OLECHAR **ppszwPath);
  938. HRESULT ( STDMETHODCALLTYPE *GetProperties )(
  939. IHNetConnection * This,
  940. /* [out] */ HNET_CONN_PROPERTIES **ppProperties);
  941. HRESULT ( STDMETHODCALLTYPE *GetControlInterface )(
  942. IHNetConnection * This,
  943. REFIID iid,
  944. /* [iid_is] */ void **ppv);
  945. HRESULT ( STDMETHODCALLTYPE *Firewall )(
  946. IHNetConnection * This,
  947. /* [out] */ IHNetFirewalledConnection **ppFirewalledConn);
  948. HRESULT ( STDMETHODCALLTYPE *SharePublic )(
  949. IHNetConnection * This,
  950. /* [out] */ IHNetIcsPublicConnection **ppIcsPublicConn);
  951. HRESULT ( STDMETHODCALLTYPE *SharePrivate )(
  952. IHNetConnection * This,
  953. /* [out] */ IHNetIcsPrivateConnection **ppIcsPrivateConn);
  954. HRESULT ( STDMETHODCALLTYPE *EnumPortMappings )(
  955. IHNetConnection * This,
  956. /* [in] */ BOOLEAN fEnabledOnly,
  957. /* [out] */ IEnumHNetPortMappingBindings **ppEnum);
  958. HRESULT ( STDMETHODCALLTYPE *GetBindingForPortMappingProtocol )(
  959. IHNetConnection * This,
  960. /* [in] */ IHNetPortMappingProtocol *pProtocol,
  961. /* [out] */ IHNetPortMappingBinding **ppBinding);
  962. HRESULT ( STDMETHODCALLTYPE *GetIcmpSettings )(
  963. IHNetConnection * This,
  964. /* [out] */ HNET_FW_ICMP_SETTINGS **ppSettings);
  965. HRESULT ( STDMETHODCALLTYPE *SetIcmpSettings )(
  966. IHNetConnection * This,
  967. /* [in] */ HNET_FW_ICMP_SETTINGS *pSettings);
  968. HRESULT ( STDMETHODCALLTYPE *ShowAutoconfigBalloon )(
  969. IHNetConnection * This,
  970. /* [out] */ BOOLEAN *pfShowBalloon);
  971. HRESULT ( STDMETHODCALLTYPE *DeleteRasConnectionEntry )(
  972. IHNetConnection * This);
  973. END_INTERFACE
  974. } IHNetConnectionVtbl;
  975. interface IHNetConnection
  976. {
  977. CONST_VTBL struct IHNetConnectionVtbl *lpVtbl;
  978. };
  979. #ifdef COBJMACROS
  980. #define IHNetConnection_QueryInterface(This,riid,ppvObject) \
  981. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  982. #define IHNetConnection_AddRef(This) \
  983. (This)->lpVtbl -> AddRef(This)
  984. #define IHNetConnection_Release(This) \
  985. (This)->lpVtbl -> Release(This)
  986. #define IHNetConnection_GetINetConnection(This,ppNetConnection) \
  987. (This)->lpVtbl -> GetINetConnection(This,ppNetConnection)
  988. #define IHNetConnection_GetGuid(This,ppGuid) \
  989. (This)->lpVtbl -> GetGuid(This,ppGuid)
  990. #define IHNetConnection_GetName(This,ppszwName) \
  991. (This)->lpVtbl -> GetName(This,ppszwName)
  992. #define IHNetConnection_GetRasPhonebookPath(This,ppszwPath) \
  993. (This)->lpVtbl -> GetRasPhonebookPath(This,ppszwPath)
  994. #define IHNetConnection_GetProperties(This,ppProperties) \
  995. (This)->lpVtbl -> GetProperties(This,ppProperties)
  996. #define IHNetConnection_GetControlInterface(This,iid,ppv) \
  997. (This)->lpVtbl -> GetControlInterface(This,iid,ppv)
  998. #define IHNetConnection_Firewall(This,ppFirewalledConn) \
  999. (This)->lpVtbl -> Firewall(This,ppFirewalledConn)
  1000. #define IHNetConnection_SharePublic(This,ppIcsPublicConn) \
  1001. (This)->lpVtbl -> SharePublic(This,ppIcsPublicConn)
  1002. #define IHNetConnection_SharePrivate(This,ppIcsPrivateConn) \
  1003. (This)->lpVtbl -> SharePrivate(This,ppIcsPrivateConn)
  1004. #define IHNetConnection_EnumPortMappings(This,fEnabledOnly,ppEnum) \
  1005. (This)->lpVtbl -> EnumPortMappings(This,fEnabledOnly,ppEnum)
  1006. #define IHNetConnection_GetBindingForPortMappingProtocol(This,pProtocol,ppBinding) \
  1007. (This)->lpVtbl -> GetBindingForPortMappingProtocol(This,pProtocol,ppBinding)
  1008. #define IHNetConnection_GetIcmpSettings(This,ppSettings) \
  1009. (This)->lpVtbl -> GetIcmpSettings(This,ppSettings)
  1010. #define IHNetConnection_SetIcmpSettings(This,pSettings) \
  1011. (This)->lpVtbl -> SetIcmpSettings(This,pSettings)
  1012. #define IHNetConnection_ShowAutoconfigBalloon(This,pfShowBalloon) \
  1013. (This)->lpVtbl -> ShowAutoconfigBalloon(This,pfShowBalloon)
  1014. #define IHNetConnection_DeleteRasConnectionEntry(This) \
  1015. (This)->lpVtbl -> DeleteRasConnectionEntry(This)
  1016. #endif /* COBJMACROS */
  1017. #endif /* C style interface */
  1018. HRESULT STDMETHODCALLTYPE IHNetConnection_GetINetConnection_Proxy(
  1019. IHNetConnection * This,
  1020. /* [out] */ INetConnection **ppNetConnection);
  1021. void __RPC_STUB IHNetConnection_GetINetConnection_Stub(
  1022. IRpcStubBuffer *This,
  1023. IRpcChannelBuffer *_pRpcChannelBuffer,
  1024. PRPC_MESSAGE _pRpcMessage,
  1025. DWORD *_pdwStubPhase);
  1026. HRESULT STDMETHODCALLTYPE IHNetConnection_GetGuid_Proxy(
  1027. IHNetConnection * This,
  1028. /* [out] */ GUID **ppGuid);
  1029. void __RPC_STUB IHNetConnection_GetGuid_Stub(
  1030. IRpcStubBuffer *This,
  1031. IRpcChannelBuffer *_pRpcChannelBuffer,
  1032. PRPC_MESSAGE _pRpcMessage,
  1033. DWORD *_pdwStubPhase);
  1034. HRESULT STDMETHODCALLTYPE IHNetConnection_GetName_Proxy(
  1035. IHNetConnection * This,
  1036. /* [string][out] */ OLECHAR **ppszwName);
  1037. void __RPC_STUB IHNetConnection_GetName_Stub(
  1038. IRpcStubBuffer *This,
  1039. IRpcChannelBuffer *_pRpcChannelBuffer,
  1040. PRPC_MESSAGE _pRpcMessage,
  1041. DWORD *_pdwStubPhase);
  1042. HRESULT STDMETHODCALLTYPE IHNetConnection_GetRasPhonebookPath_Proxy(
  1043. IHNetConnection * This,
  1044. /* [string][out] */ OLECHAR **ppszwPath);
  1045. void __RPC_STUB IHNetConnection_GetRasPhonebookPath_Stub(
  1046. IRpcStubBuffer *This,
  1047. IRpcChannelBuffer *_pRpcChannelBuffer,
  1048. PRPC_MESSAGE _pRpcMessage,
  1049. DWORD *_pdwStubPhase);
  1050. HRESULT STDMETHODCALLTYPE IHNetConnection_GetProperties_Proxy(
  1051. IHNetConnection * This,
  1052. /* [out] */ HNET_CONN_PROPERTIES **ppProperties);
  1053. void __RPC_STUB IHNetConnection_GetProperties_Stub(
  1054. IRpcStubBuffer *This,
  1055. IRpcChannelBuffer *_pRpcChannelBuffer,
  1056. PRPC_MESSAGE _pRpcMessage,
  1057. DWORD *_pdwStubPhase);
  1058. HRESULT STDMETHODCALLTYPE IHNetConnection_GetControlInterface_Proxy(
  1059. IHNetConnection * This,
  1060. REFIID iid,
  1061. /* [iid_is] */ void **ppv);
  1062. void __RPC_STUB IHNetConnection_GetControlInterface_Stub(
  1063. IRpcStubBuffer *This,
  1064. IRpcChannelBuffer *_pRpcChannelBuffer,
  1065. PRPC_MESSAGE _pRpcMessage,
  1066. DWORD *_pdwStubPhase);
  1067. HRESULT STDMETHODCALLTYPE IHNetConnection_Firewall_Proxy(
  1068. IHNetConnection * This,
  1069. /* [out] */ IHNetFirewalledConnection **ppFirewalledConn);
  1070. void __RPC_STUB IHNetConnection_Firewall_Stub(
  1071. IRpcStubBuffer *This,
  1072. IRpcChannelBuffer *_pRpcChannelBuffer,
  1073. PRPC_MESSAGE _pRpcMessage,
  1074. DWORD *_pdwStubPhase);
  1075. HRESULT STDMETHODCALLTYPE IHNetConnection_SharePublic_Proxy(
  1076. IHNetConnection * This,
  1077. /* [out] */ IHNetIcsPublicConnection **ppIcsPublicConn);
  1078. void __RPC_STUB IHNetConnection_SharePublic_Stub(
  1079. IRpcStubBuffer *This,
  1080. IRpcChannelBuffer *_pRpcChannelBuffer,
  1081. PRPC_MESSAGE _pRpcMessage,
  1082. DWORD *_pdwStubPhase);
  1083. HRESULT STDMETHODCALLTYPE IHNetConnection_SharePrivate_Proxy(
  1084. IHNetConnection * This,
  1085. /* [out] */ IHNetIcsPrivateConnection **ppIcsPrivateConn);
  1086. void __RPC_STUB IHNetConnection_SharePrivate_Stub(
  1087. IRpcStubBuffer *This,
  1088. IRpcChannelBuffer *_pRpcChannelBuffer,
  1089. PRPC_MESSAGE _pRpcMessage,
  1090. DWORD *_pdwStubPhase);
  1091. HRESULT STDMETHODCALLTYPE IHNetConnection_EnumPortMappings_Proxy(
  1092. IHNetConnection * This,
  1093. /* [in] */ BOOLEAN fEnabledOnly,
  1094. /* [out] */ IEnumHNetPortMappingBindings **ppEnum);
  1095. void __RPC_STUB IHNetConnection_EnumPortMappings_Stub(
  1096. IRpcStubBuffer *This,
  1097. IRpcChannelBuffer *_pRpcChannelBuffer,
  1098. PRPC_MESSAGE _pRpcMessage,
  1099. DWORD *_pdwStubPhase);
  1100. HRESULT STDMETHODCALLTYPE IHNetConnection_GetBindingForPortMappingProtocol_Proxy(
  1101. IHNetConnection * This,
  1102. /* [in] */ IHNetPortMappingProtocol *pProtocol,
  1103. /* [out] */ IHNetPortMappingBinding **ppBinding);
  1104. void __RPC_STUB IHNetConnection_GetBindingForPortMappingProtocol_Stub(
  1105. IRpcStubBuffer *This,
  1106. IRpcChannelBuffer *_pRpcChannelBuffer,
  1107. PRPC_MESSAGE _pRpcMessage,
  1108. DWORD *_pdwStubPhase);
  1109. HRESULT STDMETHODCALLTYPE IHNetConnection_GetIcmpSettings_Proxy(
  1110. IHNetConnection * This,
  1111. /* [out] */ HNET_FW_ICMP_SETTINGS **ppSettings);
  1112. void __RPC_STUB IHNetConnection_GetIcmpSettings_Stub(
  1113. IRpcStubBuffer *This,
  1114. IRpcChannelBuffer *_pRpcChannelBuffer,
  1115. PRPC_MESSAGE _pRpcMessage,
  1116. DWORD *_pdwStubPhase);
  1117. HRESULT STDMETHODCALLTYPE IHNetConnection_SetIcmpSettings_Proxy(
  1118. IHNetConnection * This,
  1119. /* [in] */ HNET_FW_ICMP_SETTINGS *pSettings);
  1120. void __RPC_STUB IHNetConnection_SetIcmpSettings_Stub(
  1121. IRpcStubBuffer *This,
  1122. IRpcChannelBuffer *_pRpcChannelBuffer,
  1123. PRPC_MESSAGE _pRpcMessage,
  1124. DWORD *_pdwStubPhase);
  1125. HRESULT STDMETHODCALLTYPE IHNetConnection_ShowAutoconfigBalloon_Proxy(
  1126. IHNetConnection * This,
  1127. /* [out] */ BOOLEAN *pfShowBalloon);
  1128. void __RPC_STUB IHNetConnection_ShowAutoconfigBalloon_Stub(
  1129. IRpcStubBuffer *This,
  1130. IRpcChannelBuffer *_pRpcChannelBuffer,
  1131. PRPC_MESSAGE _pRpcMessage,
  1132. DWORD *_pdwStubPhase);
  1133. HRESULT STDMETHODCALLTYPE IHNetConnection_DeleteRasConnectionEntry_Proxy(
  1134. IHNetConnection * This);
  1135. void __RPC_STUB IHNetConnection_DeleteRasConnectionEntry_Stub(
  1136. IRpcStubBuffer *This,
  1137. IRpcChannelBuffer *_pRpcChannelBuffer,
  1138. PRPC_MESSAGE _pRpcMessage,
  1139. DWORD *_pdwStubPhase);
  1140. #endif /* __IHNetConnection_INTERFACE_DEFINED__ */
  1141. #ifndef __IHNetFirewalledConnection_INTERFACE_DEFINED__
  1142. #define __IHNetFirewalledConnection_INTERFACE_DEFINED__
  1143. /* interface IHNetFirewalledConnection */
  1144. /* [unique][uuid][object][local] */
  1145. EXTERN_C const IID IID_IHNetFirewalledConnection;
  1146. #if defined(__cplusplus) && !defined(CINTERFACE)
  1147. MIDL_INTERFACE("85D18B72-3032-11D4-9348-00C04F8EEB71")
  1148. IHNetFirewalledConnection : public IUnknown
  1149. {
  1150. public:
  1151. virtual HRESULT STDMETHODCALLTYPE Unfirewall( void) = 0;
  1152. };
  1153. #else /* C style interface */
  1154. typedef struct IHNetFirewalledConnectionVtbl
  1155. {
  1156. BEGIN_INTERFACE
  1157. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  1158. IHNetFirewalledConnection * This,
  1159. /* [in] */ REFIID riid,
  1160. /* [iid_is][out] */ void **ppvObject);
  1161. ULONG ( STDMETHODCALLTYPE *AddRef )(
  1162. IHNetFirewalledConnection * This);
  1163. ULONG ( STDMETHODCALLTYPE *Release )(
  1164. IHNetFirewalledConnection * This);
  1165. HRESULT ( STDMETHODCALLTYPE *Unfirewall )(
  1166. IHNetFirewalledConnection * This);
  1167. END_INTERFACE
  1168. } IHNetFirewalledConnectionVtbl;
  1169. interface IHNetFirewalledConnection
  1170. {
  1171. CONST_VTBL struct IHNetFirewalledConnectionVtbl *lpVtbl;
  1172. };
  1173. #ifdef COBJMACROS
  1174. #define IHNetFirewalledConnection_QueryInterface(This,riid,ppvObject) \
  1175. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  1176. #define IHNetFirewalledConnection_AddRef(This) \
  1177. (This)->lpVtbl -> AddRef(This)
  1178. #define IHNetFirewalledConnection_Release(This) \
  1179. (This)->lpVtbl -> Release(This)
  1180. #define IHNetFirewalledConnection_Unfirewall(This) \
  1181. (This)->lpVtbl -> Unfirewall(This)
  1182. #endif /* COBJMACROS */
  1183. #endif /* C style interface */
  1184. HRESULT STDMETHODCALLTYPE IHNetFirewalledConnection_Unfirewall_Proxy(
  1185. IHNetFirewalledConnection * This);
  1186. void __RPC_STUB IHNetFirewalledConnection_Unfirewall_Stub(
  1187. IRpcStubBuffer *This,
  1188. IRpcChannelBuffer *_pRpcChannelBuffer,
  1189. PRPC_MESSAGE _pRpcMessage,
  1190. DWORD *_pdwStubPhase);
  1191. #endif /* __IHNetFirewalledConnection_INTERFACE_DEFINED__ */
  1192. #ifndef __IHNetIcsPublicConnection_INTERFACE_DEFINED__
  1193. #define __IHNetIcsPublicConnection_INTERFACE_DEFINED__
  1194. /* interface IHNetIcsPublicConnection */
  1195. /* [unique][uuid][object][local] */
  1196. EXTERN_C const IID IID_IHNetIcsPublicConnection;
  1197. #if defined(__cplusplus) && !defined(CINTERFACE)
  1198. MIDL_INTERFACE("85D18B73-3032-11D4-9348-00C04F8EEB71")
  1199. IHNetIcsPublicConnection : public IUnknown
  1200. {
  1201. public:
  1202. virtual HRESULT STDMETHODCALLTYPE Unshare( void) = 0;
  1203. };
  1204. #else /* C style interface */
  1205. typedef struct IHNetIcsPublicConnectionVtbl
  1206. {
  1207. BEGIN_INTERFACE
  1208. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  1209. IHNetIcsPublicConnection * This,
  1210. /* [in] */ REFIID riid,
  1211. /* [iid_is][out] */ void **ppvObject);
  1212. ULONG ( STDMETHODCALLTYPE *AddRef )(
  1213. IHNetIcsPublicConnection * This);
  1214. ULONG ( STDMETHODCALLTYPE *Release )(
  1215. IHNetIcsPublicConnection * This);
  1216. HRESULT ( STDMETHODCALLTYPE *Unshare )(
  1217. IHNetIcsPublicConnection * This);
  1218. END_INTERFACE
  1219. } IHNetIcsPublicConnectionVtbl;
  1220. interface IHNetIcsPublicConnection
  1221. {
  1222. CONST_VTBL struct IHNetIcsPublicConnectionVtbl *lpVtbl;
  1223. };
  1224. #ifdef COBJMACROS
  1225. #define IHNetIcsPublicConnection_QueryInterface(This,riid,ppvObject) \
  1226. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  1227. #define IHNetIcsPublicConnection_AddRef(This) \
  1228. (This)->lpVtbl -> AddRef(This)
  1229. #define IHNetIcsPublicConnection_Release(This) \
  1230. (This)->lpVtbl -> Release(This)
  1231. #define IHNetIcsPublicConnection_Unshare(This) \
  1232. (This)->lpVtbl -> Unshare(This)
  1233. #endif /* COBJMACROS */
  1234. #endif /* C style interface */
  1235. HRESULT STDMETHODCALLTYPE IHNetIcsPublicConnection_Unshare_Proxy(
  1236. IHNetIcsPublicConnection * This);
  1237. void __RPC_STUB IHNetIcsPublicConnection_Unshare_Stub(
  1238. IRpcStubBuffer *This,
  1239. IRpcChannelBuffer *_pRpcChannelBuffer,
  1240. PRPC_MESSAGE _pRpcMessage,
  1241. DWORD *_pdwStubPhase);
  1242. #endif /* __IHNetIcsPublicConnection_INTERFACE_DEFINED__ */
  1243. #ifndef __IHNetIcsPrivateConnection_INTERFACE_DEFINED__
  1244. #define __IHNetIcsPrivateConnection_INTERFACE_DEFINED__
  1245. /* interface IHNetIcsPrivateConnection */
  1246. /* [unique][uuid][object][local] */
  1247. EXTERN_C const IID IID_IHNetIcsPrivateConnection;
  1248. #if defined(__cplusplus) && !defined(CINTERFACE)
  1249. MIDL_INTERFACE("85D18B74-3032-11D4-9348-00C04F8EEB71")
  1250. IHNetIcsPrivateConnection : public IUnknown
  1251. {
  1252. public:
  1253. virtual HRESULT STDMETHODCALLTYPE RemoveFromIcs( void) = 0;
  1254. };
  1255. #else /* C style interface */
  1256. typedef struct IHNetIcsPrivateConnectionVtbl
  1257. {
  1258. BEGIN_INTERFACE
  1259. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  1260. IHNetIcsPrivateConnection * This,
  1261. /* [in] */ REFIID riid,
  1262. /* [iid_is][out] */ void **ppvObject);
  1263. ULONG ( STDMETHODCALLTYPE *AddRef )(
  1264. IHNetIcsPrivateConnection * This);
  1265. ULONG ( STDMETHODCALLTYPE *Release )(
  1266. IHNetIcsPrivateConnection * This);
  1267. HRESULT ( STDMETHODCALLTYPE *RemoveFromIcs )(
  1268. IHNetIcsPrivateConnection * This);
  1269. END_INTERFACE
  1270. } IHNetIcsPrivateConnectionVtbl;
  1271. interface IHNetIcsPrivateConnection
  1272. {
  1273. CONST_VTBL struct IHNetIcsPrivateConnectionVtbl *lpVtbl;
  1274. };
  1275. #ifdef COBJMACROS
  1276. #define IHNetIcsPrivateConnection_QueryInterface(This,riid,ppvObject) \
  1277. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  1278. #define IHNetIcsPrivateConnection_AddRef(This) \
  1279. (This)->lpVtbl -> AddRef(This)
  1280. #define IHNetIcsPrivateConnection_Release(This) \
  1281. (This)->lpVtbl -> Release(This)
  1282. #define IHNetIcsPrivateConnection_RemoveFromIcs(This) \
  1283. (This)->lpVtbl -> RemoveFromIcs(This)
  1284. #endif /* COBJMACROS */
  1285. #endif /* C style interface */
  1286. HRESULT STDMETHODCALLTYPE IHNetIcsPrivateConnection_RemoveFromIcs_Proxy(
  1287. IHNetIcsPrivateConnection * This);
  1288. void __RPC_STUB IHNetIcsPrivateConnection_RemoveFromIcs_Stub(
  1289. IRpcStubBuffer *This,
  1290. IRpcChannelBuffer *_pRpcChannelBuffer,
  1291. PRPC_MESSAGE _pRpcMessage,
  1292. DWORD *_pdwStubPhase);
  1293. #endif /* __IHNetIcsPrivateConnection_INTERFACE_DEFINED__ */
  1294. #ifndef __IHNetBridge_INTERFACE_DEFINED__
  1295. #define __IHNetBridge_INTERFACE_DEFINED__
  1296. /* interface IHNetBridge */
  1297. /* [unique][uuid][object][local] */
  1298. EXTERN_C const IID IID_IHNetBridge;
  1299. #if defined(__cplusplus) && !defined(CINTERFACE)
  1300. MIDL_INTERFACE("85D18B75-3032-11D4-9348-00C04F8EEB71")
  1301. IHNetBridge : public IUnknown
  1302. {
  1303. public:
  1304. virtual HRESULT STDMETHODCALLTYPE EnumMembers(
  1305. /* [out] */ IEnumHNetBridgedConnections **ppEnum) = 0;
  1306. virtual HRESULT STDMETHODCALLTYPE AddMember(
  1307. /* [in] */ IHNetConnection *pConn,
  1308. /* [out] */ IHNetBridgedConnection **ppBridgedConn,
  1309. /* [defaultvalue][in] */ INetCfg *pnetcfgExisting = 0) = 0;
  1310. virtual HRESULT STDMETHODCALLTYPE Destroy(
  1311. /* [defaultvalue][in] */ INetCfg *pnetcfgExisting = 0) = 0;
  1312. };
  1313. #else /* C style interface */
  1314. typedef struct IHNetBridgeVtbl
  1315. {
  1316. BEGIN_INTERFACE
  1317. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  1318. IHNetBridge * This,
  1319. /* [in] */ REFIID riid,
  1320. /* [iid_is][out] */ void **ppvObject);
  1321. ULONG ( STDMETHODCALLTYPE *AddRef )(
  1322. IHNetBridge * This);
  1323. ULONG ( STDMETHODCALLTYPE *Release )(
  1324. IHNetBridge * This);
  1325. HRESULT ( STDMETHODCALLTYPE *EnumMembers )(
  1326. IHNetBridge * This,
  1327. /* [out] */ IEnumHNetBridgedConnections **ppEnum);
  1328. HRESULT ( STDMETHODCALLTYPE *AddMember )(
  1329. IHNetBridge * This,
  1330. /* [in] */ IHNetConnection *pConn,
  1331. /* [out] */ IHNetBridgedConnection **ppBridgedConn,
  1332. /* [defaultvalue][in] */ INetCfg *pnetcfgExisting);
  1333. HRESULT ( STDMETHODCALLTYPE *Destroy )(
  1334. IHNetBridge * This,
  1335. /* [defaultvalue][in] */ INetCfg *pnetcfgExisting);
  1336. END_INTERFACE
  1337. } IHNetBridgeVtbl;
  1338. interface IHNetBridge
  1339. {
  1340. CONST_VTBL struct IHNetBridgeVtbl *lpVtbl;
  1341. };
  1342. #ifdef COBJMACROS
  1343. #define IHNetBridge_QueryInterface(This,riid,ppvObject) \
  1344. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  1345. #define IHNetBridge_AddRef(This) \
  1346. (This)->lpVtbl -> AddRef(This)
  1347. #define IHNetBridge_Release(This) \
  1348. (This)->lpVtbl -> Release(This)
  1349. #define IHNetBridge_EnumMembers(This,ppEnum) \
  1350. (This)->lpVtbl -> EnumMembers(This,ppEnum)
  1351. #define IHNetBridge_AddMember(This,pConn,ppBridgedConn,pnetcfgExisting) \
  1352. (This)->lpVtbl -> AddMember(This,pConn,ppBridgedConn,pnetcfgExisting)
  1353. #define IHNetBridge_Destroy(This,pnetcfgExisting) \
  1354. (This)->lpVtbl -> Destroy(This,pnetcfgExisting)
  1355. #endif /* COBJMACROS */
  1356. #endif /* C style interface */
  1357. HRESULT STDMETHODCALLTYPE IHNetBridge_EnumMembers_Proxy(
  1358. IHNetBridge * This,
  1359. /* [out] */ IEnumHNetBridgedConnections **ppEnum);
  1360. void __RPC_STUB IHNetBridge_EnumMembers_Stub(
  1361. IRpcStubBuffer *This,
  1362. IRpcChannelBuffer *_pRpcChannelBuffer,
  1363. PRPC_MESSAGE _pRpcMessage,
  1364. DWORD *_pdwStubPhase);
  1365. HRESULT STDMETHODCALLTYPE IHNetBridge_AddMember_Proxy(
  1366. IHNetBridge * This,
  1367. /* [in] */ IHNetConnection *pConn,
  1368. /* [out] */ IHNetBridgedConnection **ppBridgedConn,
  1369. /* [defaultvalue][in] */ INetCfg *pnetcfgExisting);
  1370. void __RPC_STUB IHNetBridge_AddMember_Stub(
  1371. IRpcStubBuffer *This,
  1372. IRpcChannelBuffer *_pRpcChannelBuffer,
  1373. PRPC_MESSAGE _pRpcMessage,
  1374. DWORD *_pdwStubPhase);
  1375. HRESULT STDMETHODCALLTYPE IHNetBridge_Destroy_Proxy(
  1376. IHNetBridge * This,
  1377. /* [defaultvalue][in] */ INetCfg *pnetcfgExisting);
  1378. void __RPC_STUB IHNetBridge_Destroy_Stub(
  1379. IRpcStubBuffer *This,
  1380. IRpcChannelBuffer *_pRpcChannelBuffer,
  1381. PRPC_MESSAGE _pRpcMessage,
  1382. DWORD *_pdwStubPhase);
  1383. #endif /* __IHNetBridge_INTERFACE_DEFINED__ */
  1384. #ifndef __IHNetBridgedConnection_INTERFACE_DEFINED__
  1385. #define __IHNetBridgedConnection_INTERFACE_DEFINED__
  1386. /* interface IHNetBridgedConnection */
  1387. /* [unique][uuid][object][local] */
  1388. EXTERN_C const IID IID_IHNetBridgedConnection;
  1389. #if defined(__cplusplus) && !defined(CINTERFACE)
  1390. MIDL_INTERFACE("85D18B76-3032-11D4-9348-00C04F8EEB71")
  1391. IHNetBridgedConnection : public IUnknown
  1392. {
  1393. public:
  1394. virtual HRESULT STDMETHODCALLTYPE GetBridge(
  1395. /* [out] */ IHNetBridge **ppBridge) = 0;
  1396. virtual HRESULT STDMETHODCALLTYPE RemoveFromBridge(
  1397. /* [defaultvalue][in] */ INetCfg *pnetcfgExisting = 0) = 0;
  1398. };
  1399. #else /* C style interface */
  1400. typedef struct IHNetBridgedConnectionVtbl
  1401. {
  1402. BEGIN_INTERFACE
  1403. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  1404. IHNetBridgedConnection * This,
  1405. /* [in] */ REFIID riid,
  1406. /* [iid_is][out] */ void **ppvObject);
  1407. ULONG ( STDMETHODCALLTYPE *AddRef )(
  1408. IHNetBridgedConnection * This);
  1409. ULONG ( STDMETHODCALLTYPE *Release )(
  1410. IHNetBridgedConnection * This);
  1411. HRESULT ( STDMETHODCALLTYPE *GetBridge )(
  1412. IHNetBridgedConnection * This,
  1413. /* [out] */ IHNetBridge **ppBridge);
  1414. HRESULT ( STDMETHODCALLTYPE *RemoveFromBridge )(
  1415. IHNetBridgedConnection * This,
  1416. /* [defaultvalue][in] */ INetCfg *pnetcfgExisting);
  1417. END_INTERFACE
  1418. } IHNetBridgedConnectionVtbl;
  1419. interface IHNetBridgedConnection
  1420. {
  1421. CONST_VTBL struct IHNetBridgedConnectionVtbl *lpVtbl;
  1422. };
  1423. #ifdef COBJMACROS
  1424. #define IHNetBridgedConnection_QueryInterface(This,riid,ppvObject) \
  1425. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  1426. #define IHNetBridgedConnection_AddRef(This) \
  1427. (This)->lpVtbl -> AddRef(This)
  1428. #define IHNetBridgedConnection_Release(This) \
  1429. (This)->lpVtbl -> Release(This)
  1430. #define IHNetBridgedConnection_GetBridge(This,ppBridge) \
  1431. (This)->lpVtbl -> GetBridge(This,ppBridge)
  1432. #define IHNetBridgedConnection_RemoveFromBridge(This,pnetcfgExisting) \
  1433. (This)->lpVtbl -> RemoveFromBridge(This,pnetcfgExisting)
  1434. #endif /* COBJMACROS */
  1435. #endif /* C style interface */
  1436. HRESULT STDMETHODCALLTYPE IHNetBridgedConnection_GetBridge_Proxy(
  1437. IHNetBridgedConnection * This,
  1438. /* [out] */ IHNetBridge **ppBridge);
  1439. void __RPC_STUB IHNetBridgedConnection_GetBridge_Stub(
  1440. IRpcStubBuffer *This,
  1441. IRpcChannelBuffer *_pRpcChannelBuffer,
  1442. PRPC_MESSAGE _pRpcMessage,
  1443. DWORD *_pdwStubPhase);
  1444. HRESULT STDMETHODCALLTYPE IHNetBridgedConnection_RemoveFromBridge_Proxy(
  1445. IHNetBridgedConnection * This,
  1446. /* [defaultvalue][in] */ INetCfg *pnetcfgExisting);
  1447. void __RPC_STUB IHNetBridgedConnection_RemoveFromBridge_Stub(
  1448. IRpcStubBuffer *This,
  1449. IRpcChannelBuffer *_pRpcChannelBuffer,
  1450. PRPC_MESSAGE _pRpcMessage,
  1451. DWORD *_pdwStubPhase);
  1452. #endif /* __IHNetBridgedConnection_INTERFACE_DEFINED__ */
  1453. #ifndef __IHNetPortMappingProtocol_INTERFACE_DEFINED__
  1454. #define __IHNetPortMappingProtocol_INTERFACE_DEFINED__
  1455. /* interface IHNetPortMappingProtocol */
  1456. /* [unique][uuid][object][local] */
  1457. EXTERN_C const IID IID_IHNetPortMappingProtocol;
  1458. #if defined(__cplusplus) && !defined(CINTERFACE)
  1459. MIDL_INTERFACE("85D18B7E-3032-11D4-9348-00C04F8EEB71")
  1460. IHNetPortMappingProtocol : public IUnknown
  1461. {
  1462. public:
  1463. virtual HRESULT STDMETHODCALLTYPE GetName(
  1464. /* [string][out] */ OLECHAR **ppszwName) = 0;
  1465. virtual HRESULT STDMETHODCALLTYPE SetName(
  1466. /* [string][in] */ OLECHAR *pszwName) = 0;
  1467. virtual HRESULT STDMETHODCALLTYPE GetIPProtocol(
  1468. /* [out] */ UCHAR *pucProtocol) = 0;
  1469. virtual HRESULT STDMETHODCALLTYPE SetIPProtocol(
  1470. /* [in] */ UCHAR ucProtocol) = 0;
  1471. virtual HRESULT STDMETHODCALLTYPE GetPort(
  1472. /* [out] */ USHORT *pusPort) = 0;
  1473. virtual HRESULT STDMETHODCALLTYPE SetPort(
  1474. /* [in] */ USHORT usPort) = 0;
  1475. virtual HRESULT STDMETHODCALLTYPE GetBuiltIn(
  1476. /* [out] */ BOOLEAN *pfBuiltIn) = 0;
  1477. virtual HRESULT STDMETHODCALLTYPE Delete( void) = 0;
  1478. virtual HRESULT STDMETHODCALLTYPE GetGuid(
  1479. /* [out] */ GUID **ppGuid) = 0;
  1480. };
  1481. #else /* C style interface */
  1482. typedef struct IHNetPortMappingProtocolVtbl
  1483. {
  1484. BEGIN_INTERFACE
  1485. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  1486. IHNetPortMappingProtocol * This,
  1487. /* [in] */ REFIID riid,
  1488. /* [iid_is][out] */ void **ppvObject);
  1489. ULONG ( STDMETHODCALLTYPE *AddRef )(
  1490. IHNetPortMappingProtocol * This);
  1491. ULONG ( STDMETHODCALLTYPE *Release )(
  1492. IHNetPortMappingProtocol * This);
  1493. HRESULT ( STDMETHODCALLTYPE *GetName )(
  1494. IHNetPortMappingProtocol * This,
  1495. /* [string][out] */ OLECHAR **ppszwName);
  1496. HRESULT ( STDMETHODCALLTYPE *SetName )(
  1497. IHNetPortMappingProtocol * This,
  1498. /* [string][in] */ OLECHAR *pszwName);
  1499. HRESULT ( STDMETHODCALLTYPE *GetIPProtocol )(
  1500. IHNetPortMappingProtocol * This,
  1501. /* [out] */ UCHAR *pucProtocol);
  1502. HRESULT ( STDMETHODCALLTYPE *SetIPProtocol )(
  1503. IHNetPortMappingProtocol * This,
  1504. /* [in] */ UCHAR ucProtocol);
  1505. HRESULT ( STDMETHODCALLTYPE *GetPort )(
  1506. IHNetPortMappingProtocol * This,
  1507. /* [out] */ USHORT *pusPort);
  1508. HRESULT ( STDMETHODCALLTYPE *SetPort )(
  1509. IHNetPortMappingProtocol * This,
  1510. /* [in] */ USHORT usPort);
  1511. HRESULT ( STDMETHODCALLTYPE *GetBuiltIn )(
  1512. IHNetPortMappingProtocol * This,
  1513. /* [out] */ BOOLEAN *pfBuiltIn);
  1514. HRESULT ( STDMETHODCALLTYPE *Delete )(
  1515. IHNetPortMappingProtocol * This);
  1516. HRESULT ( STDMETHODCALLTYPE *GetGuid )(
  1517. IHNetPortMappingProtocol * This,
  1518. /* [out] */ GUID **ppGuid);
  1519. END_INTERFACE
  1520. } IHNetPortMappingProtocolVtbl;
  1521. interface IHNetPortMappingProtocol
  1522. {
  1523. CONST_VTBL struct IHNetPortMappingProtocolVtbl *lpVtbl;
  1524. };
  1525. #ifdef COBJMACROS
  1526. #define IHNetPortMappingProtocol_QueryInterface(This,riid,ppvObject) \
  1527. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  1528. #define IHNetPortMappingProtocol_AddRef(This) \
  1529. (This)->lpVtbl -> AddRef(This)
  1530. #define IHNetPortMappingProtocol_Release(This) \
  1531. (This)->lpVtbl -> Release(This)
  1532. #define IHNetPortMappingProtocol_GetName(This,ppszwName) \
  1533. (This)->lpVtbl -> GetName(This,ppszwName)
  1534. #define IHNetPortMappingProtocol_SetName(This,pszwName) \
  1535. (This)->lpVtbl -> SetName(This,pszwName)
  1536. #define IHNetPortMappingProtocol_GetIPProtocol(This,pucProtocol) \
  1537. (This)->lpVtbl -> GetIPProtocol(This,pucProtocol)
  1538. #define IHNetPortMappingProtocol_SetIPProtocol(This,ucProtocol) \
  1539. (This)->lpVtbl -> SetIPProtocol(This,ucProtocol)
  1540. #define IHNetPortMappingProtocol_GetPort(This,pusPort) \
  1541. (This)->lpVtbl -> GetPort(This,pusPort)
  1542. #define IHNetPortMappingProtocol_SetPort(This,usPort) \
  1543. (This)->lpVtbl -> SetPort(This,usPort)
  1544. #define IHNetPortMappingProtocol_GetBuiltIn(This,pfBuiltIn) \
  1545. (This)->lpVtbl -> GetBuiltIn(This,pfBuiltIn)
  1546. #define IHNetPortMappingProtocol_Delete(This) \
  1547. (This)->lpVtbl -> Delete(This)
  1548. #define IHNetPortMappingProtocol_GetGuid(This,ppGuid) \
  1549. (This)->lpVtbl -> GetGuid(This,ppGuid)
  1550. #endif /* COBJMACROS */
  1551. #endif /* C style interface */
  1552. HRESULT STDMETHODCALLTYPE IHNetPortMappingProtocol_GetName_Proxy(
  1553. IHNetPortMappingProtocol * This,
  1554. /* [string][out] */ OLECHAR **ppszwName);
  1555. void __RPC_STUB IHNetPortMappingProtocol_GetName_Stub(
  1556. IRpcStubBuffer *This,
  1557. IRpcChannelBuffer *_pRpcChannelBuffer,
  1558. PRPC_MESSAGE _pRpcMessage,
  1559. DWORD *_pdwStubPhase);
  1560. HRESULT STDMETHODCALLTYPE IHNetPortMappingProtocol_SetName_Proxy(
  1561. IHNetPortMappingProtocol * This,
  1562. /* [string][in] */ OLECHAR *pszwName);
  1563. void __RPC_STUB IHNetPortMappingProtocol_SetName_Stub(
  1564. IRpcStubBuffer *This,
  1565. IRpcChannelBuffer *_pRpcChannelBuffer,
  1566. PRPC_MESSAGE _pRpcMessage,
  1567. DWORD *_pdwStubPhase);
  1568. HRESULT STDMETHODCALLTYPE IHNetPortMappingProtocol_GetIPProtocol_Proxy(
  1569. IHNetPortMappingProtocol * This,
  1570. /* [out] */ UCHAR *pucProtocol);
  1571. void __RPC_STUB IHNetPortMappingProtocol_GetIPProtocol_Stub(
  1572. IRpcStubBuffer *This,
  1573. IRpcChannelBuffer *_pRpcChannelBuffer,
  1574. PRPC_MESSAGE _pRpcMessage,
  1575. DWORD *_pdwStubPhase);
  1576. HRESULT STDMETHODCALLTYPE IHNetPortMappingProtocol_SetIPProtocol_Proxy(
  1577. IHNetPortMappingProtocol * This,
  1578. /* [in] */ UCHAR ucProtocol);
  1579. void __RPC_STUB IHNetPortMappingProtocol_SetIPProtocol_Stub(
  1580. IRpcStubBuffer *This,
  1581. IRpcChannelBuffer *_pRpcChannelBuffer,
  1582. PRPC_MESSAGE _pRpcMessage,
  1583. DWORD *_pdwStubPhase);
  1584. HRESULT STDMETHODCALLTYPE IHNetPortMappingProtocol_GetPort_Proxy(
  1585. IHNetPortMappingProtocol * This,
  1586. /* [out] */ USHORT *pusPort);
  1587. void __RPC_STUB IHNetPortMappingProtocol_GetPort_Stub(
  1588. IRpcStubBuffer *This,
  1589. IRpcChannelBuffer *_pRpcChannelBuffer,
  1590. PRPC_MESSAGE _pRpcMessage,
  1591. DWORD *_pdwStubPhase);
  1592. HRESULT STDMETHODCALLTYPE IHNetPortMappingProtocol_SetPort_Proxy(
  1593. IHNetPortMappingProtocol * This,
  1594. /* [in] */ USHORT usPort);
  1595. void __RPC_STUB IHNetPortMappingProtocol_SetPort_Stub(
  1596. IRpcStubBuffer *This,
  1597. IRpcChannelBuffer *_pRpcChannelBuffer,
  1598. PRPC_MESSAGE _pRpcMessage,
  1599. DWORD *_pdwStubPhase);
  1600. HRESULT STDMETHODCALLTYPE IHNetPortMappingProtocol_GetBuiltIn_Proxy(
  1601. IHNetPortMappingProtocol * This,
  1602. /* [out] */ BOOLEAN *pfBuiltIn);
  1603. void __RPC_STUB IHNetPortMappingProtocol_GetBuiltIn_Stub(
  1604. IRpcStubBuffer *This,
  1605. IRpcChannelBuffer *_pRpcChannelBuffer,
  1606. PRPC_MESSAGE _pRpcMessage,
  1607. DWORD *_pdwStubPhase);
  1608. HRESULT STDMETHODCALLTYPE IHNetPortMappingProtocol_Delete_Proxy(
  1609. IHNetPortMappingProtocol * This);
  1610. void __RPC_STUB IHNetPortMappingProtocol_Delete_Stub(
  1611. IRpcStubBuffer *This,
  1612. IRpcChannelBuffer *_pRpcChannelBuffer,
  1613. PRPC_MESSAGE _pRpcMessage,
  1614. DWORD *_pdwStubPhase);
  1615. HRESULT STDMETHODCALLTYPE IHNetPortMappingProtocol_GetGuid_Proxy(
  1616. IHNetPortMappingProtocol * This,
  1617. /* [out] */ GUID **ppGuid);
  1618. void __RPC_STUB IHNetPortMappingProtocol_GetGuid_Stub(
  1619. IRpcStubBuffer *This,
  1620. IRpcChannelBuffer *_pRpcChannelBuffer,
  1621. PRPC_MESSAGE _pRpcMessage,
  1622. DWORD *_pdwStubPhase);
  1623. #endif /* __IHNetPortMappingProtocol_INTERFACE_DEFINED__ */
  1624. #ifndef __IHNetPortMappingBinding_INTERFACE_DEFINED__
  1625. #define __IHNetPortMappingBinding_INTERFACE_DEFINED__
  1626. /* interface IHNetPortMappingBinding */
  1627. /* [unique][uuid][object][local] */
  1628. EXTERN_C const IID IID_IHNetPortMappingBinding;
  1629. #if defined(__cplusplus) && !defined(CINTERFACE)
  1630. MIDL_INTERFACE("85D18B80-3032-11D4-9348-00C04F8EEB71")
  1631. IHNetPortMappingBinding : public IUnknown
  1632. {
  1633. public:
  1634. virtual HRESULT STDMETHODCALLTYPE GetConnection(
  1635. /* [out] */ IHNetConnection **ppConnection) = 0;
  1636. virtual HRESULT STDMETHODCALLTYPE GetProtocol(
  1637. /* [out] */ IHNetPortMappingProtocol **ppProtocol) = 0;
  1638. virtual HRESULT STDMETHODCALLTYPE GetEnabled(
  1639. /* [out] */ BOOLEAN *pfEnabled) = 0;
  1640. virtual HRESULT STDMETHODCALLTYPE SetEnabled(
  1641. /* [in] */ BOOLEAN fEnable) = 0;
  1642. virtual HRESULT STDMETHODCALLTYPE GetCurrentMethod(
  1643. /* [out] */ BOOLEAN *pfUseName) = 0;
  1644. virtual HRESULT STDMETHODCALLTYPE GetTargetComputerName(
  1645. /* [string][out] */ OLECHAR **ppszwName) = 0;
  1646. virtual HRESULT STDMETHODCALLTYPE SetTargetComputerName(
  1647. /* [string][in] */ OLECHAR *pszwName) = 0;
  1648. virtual HRESULT STDMETHODCALLTYPE GetTargetComputerAddress(
  1649. /* [out] */ ULONG *pulAddress) = 0;
  1650. virtual HRESULT STDMETHODCALLTYPE SetTargetComputerAddress(
  1651. /* [in] */ ULONG ulAddress) = 0;
  1652. virtual HRESULT STDMETHODCALLTYPE GetTargetPort(
  1653. /* [out] */ USHORT *pusPort) = 0;
  1654. virtual HRESULT STDMETHODCALLTYPE SetTargetPort(
  1655. /* [in] */ USHORT usPort) = 0;
  1656. };
  1657. #else /* C style interface */
  1658. typedef struct IHNetPortMappingBindingVtbl
  1659. {
  1660. BEGIN_INTERFACE
  1661. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  1662. IHNetPortMappingBinding * This,
  1663. /* [in] */ REFIID riid,
  1664. /* [iid_is][out] */ void **ppvObject);
  1665. ULONG ( STDMETHODCALLTYPE *AddRef )(
  1666. IHNetPortMappingBinding * This);
  1667. ULONG ( STDMETHODCALLTYPE *Release )(
  1668. IHNetPortMappingBinding * This);
  1669. HRESULT ( STDMETHODCALLTYPE *GetConnection )(
  1670. IHNetPortMappingBinding * This,
  1671. /* [out] */ IHNetConnection **ppConnection);
  1672. HRESULT ( STDMETHODCALLTYPE *GetProtocol )(
  1673. IHNetPortMappingBinding * This,
  1674. /* [out] */ IHNetPortMappingProtocol **ppProtocol);
  1675. HRESULT ( STDMETHODCALLTYPE *GetEnabled )(
  1676. IHNetPortMappingBinding * This,
  1677. /* [out] */ BOOLEAN *pfEnabled);
  1678. HRESULT ( STDMETHODCALLTYPE *SetEnabled )(
  1679. IHNetPortMappingBinding * This,
  1680. /* [in] */ BOOLEAN fEnable);
  1681. HRESULT ( STDMETHODCALLTYPE *GetCurrentMethod )(
  1682. IHNetPortMappingBinding * This,
  1683. /* [out] */ BOOLEAN *pfUseName);
  1684. HRESULT ( STDMETHODCALLTYPE *GetTargetComputerName )(
  1685. IHNetPortMappingBinding * This,
  1686. /* [string][out] */ OLECHAR **ppszwName);
  1687. HRESULT ( STDMETHODCALLTYPE *SetTargetComputerName )(
  1688. IHNetPortMappingBinding * This,
  1689. /* [string][in] */ OLECHAR *pszwName);
  1690. HRESULT ( STDMETHODCALLTYPE *GetTargetComputerAddress )(
  1691. IHNetPortMappingBinding * This,
  1692. /* [out] */ ULONG *pulAddress);
  1693. HRESULT ( STDMETHODCALLTYPE *SetTargetComputerAddress )(
  1694. IHNetPortMappingBinding * This,
  1695. /* [in] */ ULONG ulAddress);
  1696. HRESULT ( STDMETHODCALLTYPE *GetTargetPort )(
  1697. IHNetPortMappingBinding * This,
  1698. /* [out] */ USHORT *pusPort);
  1699. HRESULT ( STDMETHODCALLTYPE *SetTargetPort )(
  1700. IHNetPortMappingBinding * This,
  1701. /* [in] */ USHORT usPort);
  1702. END_INTERFACE
  1703. } IHNetPortMappingBindingVtbl;
  1704. interface IHNetPortMappingBinding
  1705. {
  1706. CONST_VTBL struct IHNetPortMappingBindingVtbl *lpVtbl;
  1707. };
  1708. #ifdef COBJMACROS
  1709. #define IHNetPortMappingBinding_QueryInterface(This,riid,ppvObject) \
  1710. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  1711. #define IHNetPortMappingBinding_AddRef(This) \
  1712. (This)->lpVtbl -> AddRef(This)
  1713. #define IHNetPortMappingBinding_Release(This) \
  1714. (This)->lpVtbl -> Release(This)
  1715. #define IHNetPortMappingBinding_GetConnection(This,ppConnection) \
  1716. (This)->lpVtbl -> GetConnection(This,ppConnection)
  1717. #define IHNetPortMappingBinding_GetProtocol(This,ppProtocol) \
  1718. (This)->lpVtbl -> GetProtocol(This,ppProtocol)
  1719. #define IHNetPortMappingBinding_GetEnabled(This,pfEnabled) \
  1720. (This)->lpVtbl -> GetEnabled(This,pfEnabled)
  1721. #define IHNetPortMappingBinding_SetEnabled(This,fEnable) \
  1722. (This)->lpVtbl -> SetEnabled(This,fEnable)
  1723. #define IHNetPortMappingBinding_GetCurrentMethod(This,pfUseName) \
  1724. (This)->lpVtbl -> GetCurrentMethod(This,pfUseName)
  1725. #define IHNetPortMappingBinding_GetTargetComputerName(This,ppszwName) \
  1726. (This)->lpVtbl -> GetTargetComputerName(This,ppszwName)
  1727. #define IHNetPortMappingBinding_SetTargetComputerName(This,pszwName) \
  1728. (This)->lpVtbl -> SetTargetComputerName(This,pszwName)
  1729. #define IHNetPortMappingBinding_GetTargetComputerAddress(This,pulAddress) \
  1730. (This)->lpVtbl -> GetTargetComputerAddress(This,pulAddress)
  1731. #define IHNetPortMappingBinding_SetTargetComputerAddress(This,ulAddress) \
  1732. (This)->lpVtbl -> SetTargetComputerAddress(This,ulAddress)
  1733. #define IHNetPortMappingBinding_GetTargetPort(This,pusPort) \
  1734. (This)->lpVtbl -> GetTargetPort(This,pusPort)
  1735. #define IHNetPortMappingBinding_SetTargetPort(This,usPort) \
  1736. (This)->lpVtbl -> SetTargetPort(This,usPort)
  1737. #endif /* COBJMACROS */
  1738. #endif /* C style interface */
  1739. HRESULT STDMETHODCALLTYPE IHNetPortMappingBinding_GetConnection_Proxy(
  1740. IHNetPortMappingBinding * This,
  1741. /* [out] */ IHNetConnection **ppConnection);
  1742. void __RPC_STUB IHNetPortMappingBinding_GetConnection_Stub(
  1743. IRpcStubBuffer *This,
  1744. IRpcChannelBuffer *_pRpcChannelBuffer,
  1745. PRPC_MESSAGE _pRpcMessage,
  1746. DWORD *_pdwStubPhase);
  1747. HRESULT STDMETHODCALLTYPE IHNetPortMappingBinding_GetProtocol_Proxy(
  1748. IHNetPortMappingBinding * This,
  1749. /* [out] */ IHNetPortMappingProtocol **ppProtocol);
  1750. void __RPC_STUB IHNetPortMappingBinding_GetProtocol_Stub(
  1751. IRpcStubBuffer *This,
  1752. IRpcChannelBuffer *_pRpcChannelBuffer,
  1753. PRPC_MESSAGE _pRpcMessage,
  1754. DWORD *_pdwStubPhase);
  1755. HRESULT STDMETHODCALLTYPE IHNetPortMappingBinding_GetEnabled_Proxy(
  1756. IHNetPortMappingBinding * This,
  1757. /* [out] */ BOOLEAN *pfEnabled);
  1758. void __RPC_STUB IHNetPortMappingBinding_GetEnabled_Stub(
  1759. IRpcStubBuffer *This,
  1760. IRpcChannelBuffer *_pRpcChannelBuffer,
  1761. PRPC_MESSAGE _pRpcMessage,
  1762. DWORD *_pdwStubPhase);
  1763. HRESULT STDMETHODCALLTYPE IHNetPortMappingBinding_SetEnabled_Proxy(
  1764. IHNetPortMappingBinding * This,
  1765. /* [in] */ BOOLEAN fEnable);
  1766. void __RPC_STUB IHNetPortMappingBinding_SetEnabled_Stub(
  1767. IRpcStubBuffer *This,
  1768. IRpcChannelBuffer *_pRpcChannelBuffer,
  1769. PRPC_MESSAGE _pRpcMessage,
  1770. DWORD *_pdwStubPhase);
  1771. HRESULT STDMETHODCALLTYPE IHNetPortMappingBinding_GetCurrentMethod_Proxy(
  1772. IHNetPortMappingBinding * This,
  1773. /* [out] */ BOOLEAN *pfUseName);
  1774. void __RPC_STUB IHNetPortMappingBinding_GetCurrentMethod_Stub(
  1775. IRpcStubBuffer *This,
  1776. IRpcChannelBuffer *_pRpcChannelBuffer,
  1777. PRPC_MESSAGE _pRpcMessage,
  1778. DWORD *_pdwStubPhase);
  1779. HRESULT STDMETHODCALLTYPE IHNetPortMappingBinding_GetTargetComputerName_Proxy(
  1780. IHNetPortMappingBinding * This,
  1781. /* [string][out] */ OLECHAR **ppszwName);
  1782. void __RPC_STUB IHNetPortMappingBinding_GetTargetComputerName_Stub(
  1783. IRpcStubBuffer *This,
  1784. IRpcChannelBuffer *_pRpcChannelBuffer,
  1785. PRPC_MESSAGE _pRpcMessage,
  1786. DWORD *_pdwStubPhase);
  1787. HRESULT STDMETHODCALLTYPE IHNetPortMappingBinding_SetTargetComputerName_Proxy(
  1788. IHNetPortMappingBinding * This,
  1789. /* [string][in] */ OLECHAR *pszwName);
  1790. void __RPC_STUB IHNetPortMappingBinding_SetTargetComputerName_Stub(
  1791. IRpcStubBuffer *This,
  1792. IRpcChannelBuffer *_pRpcChannelBuffer,
  1793. PRPC_MESSAGE _pRpcMessage,
  1794. DWORD *_pdwStubPhase);
  1795. HRESULT STDMETHODCALLTYPE IHNetPortMappingBinding_GetTargetComputerAddress_Proxy(
  1796. IHNetPortMappingBinding * This,
  1797. /* [out] */ ULONG *pulAddress);
  1798. void __RPC_STUB IHNetPortMappingBinding_GetTargetComputerAddress_Stub(
  1799. IRpcStubBuffer *This,
  1800. IRpcChannelBuffer *_pRpcChannelBuffer,
  1801. PRPC_MESSAGE _pRpcMessage,
  1802. DWORD *_pdwStubPhase);
  1803. HRESULT STDMETHODCALLTYPE IHNetPortMappingBinding_SetTargetComputerAddress_Proxy(
  1804. IHNetPortMappingBinding * This,
  1805. /* [in] */ ULONG ulAddress);
  1806. void __RPC_STUB IHNetPortMappingBinding_SetTargetComputerAddress_Stub(
  1807. IRpcStubBuffer *This,
  1808. IRpcChannelBuffer *_pRpcChannelBuffer,
  1809. PRPC_MESSAGE _pRpcMessage,
  1810. DWORD *_pdwStubPhase);
  1811. HRESULT STDMETHODCALLTYPE IHNetPortMappingBinding_GetTargetPort_Proxy(
  1812. IHNetPortMappingBinding * This,
  1813. /* [out] */ USHORT *pusPort);
  1814. void __RPC_STUB IHNetPortMappingBinding_GetTargetPort_Stub(
  1815. IRpcStubBuffer *This,
  1816. IRpcChannelBuffer *_pRpcChannelBuffer,
  1817. PRPC_MESSAGE _pRpcMessage,
  1818. DWORD *_pdwStubPhase);
  1819. HRESULT STDMETHODCALLTYPE IHNetPortMappingBinding_SetTargetPort_Proxy(
  1820. IHNetPortMappingBinding * This,
  1821. /* [in] */ USHORT usPort);
  1822. void __RPC_STUB IHNetPortMappingBinding_SetTargetPort_Stub(
  1823. IRpcStubBuffer *This,
  1824. IRpcChannelBuffer *_pRpcChannelBuffer,
  1825. PRPC_MESSAGE _pRpcMessage,
  1826. DWORD *_pdwStubPhase);
  1827. #endif /* __IHNetPortMappingBinding_INTERFACE_DEFINED__ */
  1828. #ifndef __IHNetApplicationProtocol_INTERFACE_DEFINED__
  1829. #define __IHNetApplicationProtocol_INTERFACE_DEFINED__
  1830. /* interface IHNetApplicationProtocol */
  1831. /* [unique][uuid][object][local] */
  1832. EXTERN_C const IID IID_IHNetApplicationProtocol;
  1833. #if defined(__cplusplus) && !defined(CINTERFACE)
  1834. MIDL_INTERFACE("85D18B7F-3032-11D4-9348-00C04F8EEB71")
  1835. IHNetApplicationProtocol : public IUnknown
  1836. {
  1837. public:
  1838. virtual HRESULT STDMETHODCALLTYPE GetName(
  1839. /* [string][out] */ OLECHAR **ppszwName) = 0;
  1840. virtual HRESULT STDMETHODCALLTYPE SetName(
  1841. /* [string][in] */ OLECHAR *pszwName) = 0;
  1842. virtual HRESULT STDMETHODCALLTYPE GetOutgoingIPProtocol(
  1843. /* [out] */ UCHAR *pucProtocol) = 0;
  1844. virtual HRESULT STDMETHODCALLTYPE SetOutgoingIPProtocol(
  1845. /* [in] */ UCHAR ucProtocol) = 0;
  1846. virtual HRESULT STDMETHODCALLTYPE GetOutgoingPort(
  1847. /* [out] */ USHORT *pusPort) = 0;
  1848. virtual HRESULT STDMETHODCALLTYPE SetOutgoingPort(
  1849. /* [in] */ USHORT usPort) = 0;
  1850. virtual HRESULT STDMETHODCALLTYPE GetResponseRanges(
  1851. /* [out] */ USHORT *puscResponses,
  1852. /* [length_is][out] */ HNET_RESPONSE_RANGE *prgResponseRange[ ]) = 0;
  1853. virtual HRESULT STDMETHODCALLTYPE SetResponseRanges(
  1854. /* [in] */ USHORT uscResponses,
  1855. /* [size_is][in] */ HNET_RESPONSE_RANGE rgResponseRange[ ]) = 0;
  1856. virtual HRESULT STDMETHODCALLTYPE GetBuiltIn(
  1857. /* [out] */ BOOLEAN *pfBuiltIn) = 0;
  1858. virtual HRESULT STDMETHODCALLTYPE GetEnabled(
  1859. /* [out] */ BOOLEAN *pfEnabled) = 0;
  1860. virtual HRESULT STDMETHODCALLTYPE SetEnabled(
  1861. /* [in] */ BOOLEAN fEnable) = 0;
  1862. virtual HRESULT STDMETHODCALLTYPE Delete( void) = 0;
  1863. };
  1864. #else /* C style interface */
  1865. typedef struct IHNetApplicationProtocolVtbl
  1866. {
  1867. BEGIN_INTERFACE
  1868. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  1869. IHNetApplicationProtocol * This,
  1870. /* [in] */ REFIID riid,
  1871. /* [iid_is][out] */ void **ppvObject);
  1872. ULONG ( STDMETHODCALLTYPE *AddRef )(
  1873. IHNetApplicationProtocol * This);
  1874. ULONG ( STDMETHODCALLTYPE *Release )(
  1875. IHNetApplicationProtocol * This);
  1876. HRESULT ( STDMETHODCALLTYPE *GetName )(
  1877. IHNetApplicationProtocol * This,
  1878. /* [string][out] */ OLECHAR **ppszwName);
  1879. HRESULT ( STDMETHODCALLTYPE *SetName )(
  1880. IHNetApplicationProtocol * This,
  1881. /* [string][in] */ OLECHAR *pszwName);
  1882. HRESULT ( STDMETHODCALLTYPE *GetOutgoingIPProtocol )(
  1883. IHNetApplicationProtocol * This,
  1884. /* [out] */ UCHAR *pucProtocol);
  1885. HRESULT ( STDMETHODCALLTYPE *SetOutgoingIPProtocol )(
  1886. IHNetApplicationProtocol * This,
  1887. /* [in] */ UCHAR ucProtocol);
  1888. HRESULT ( STDMETHODCALLTYPE *GetOutgoingPort )(
  1889. IHNetApplicationProtocol * This,
  1890. /* [out] */ USHORT *pusPort);
  1891. HRESULT ( STDMETHODCALLTYPE *SetOutgoingPort )(
  1892. IHNetApplicationProtocol * This,
  1893. /* [in] */ USHORT usPort);
  1894. HRESULT ( STDMETHODCALLTYPE *GetResponseRanges )(
  1895. IHNetApplicationProtocol * This,
  1896. /* [out] */ USHORT *puscResponses,
  1897. /* [length_is][out] */ HNET_RESPONSE_RANGE *prgResponseRange[ ]);
  1898. HRESULT ( STDMETHODCALLTYPE *SetResponseRanges )(
  1899. IHNetApplicationProtocol * This,
  1900. /* [in] */ USHORT uscResponses,
  1901. /* [size_is][in] */ HNET_RESPONSE_RANGE rgResponseRange[ ]);
  1902. HRESULT ( STDMETHODCALLTYPE *GetBuiltIn )(
  1903. IHNetApplicationProtocol * This,
  1904. /* [out] */ BOOLEAN *pfBuiltIn);
  1905. HRESULT ( STDMETHODCALLTYPE *GetEnabled )(
  1906. IHNetApplicationProtocol * This,
  1907. /* [out] */ BOOLEAN *pfEnabled);
  1908. HRESULT ( STDMETHODCALLTYPE *SetEnabled )(
  1909. IHNetApplicationProtocol * This,
  1910. /* [in] */ BOOLEAN fEnable);
  1911. HRESULT ( STDMETHODCALLTYPE *Delete )(
  1912. IHNetApplicationProtocol * This);
  1913. END_INTERFACE
  1914. } IHNetApplicationProtocolVtbl;
  1915. interface IHNetApplicationProtocol
  1916. {
  1917. CONST_VTBL struct IHNetApplicationProtocolVtbl *lpVtbl;
  1918. };
  1919. #ifdef COBJMACROS
  1920. #define IHNetApplicationProtocol_QueryInterface(This,riid,ppvObject) \
  1921. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  1922. #define IHNetApplicationProtocol_AddRef(This) \
  1923. (This)->lpVtbl -> AddRef(This)
  1924. #define IHNetApplicationProtocol_Release(This) \
  1925. (This)->lpVtbl -> Release(This)
  1926. #define IHNetApplicationProtocol_GetName(This,ppszwName) \
  1927. (This)->lpVtbl -> GetName(This,ppszwName)
  1928. #define IHNetApplicationProtocol_SetName(This,pszwName) \
  1929. (This)->lpVtbl -> SetName(This,pszwName)
  1930. #define IHNetApplicationProtocol_GetOutgoingIPProtocol(This,pucProtocol) \
  1931. (This)->lpVtbl -> GetOutgoingIPProtocol(This,pucProtocol)
  1932. #define IHNetApplicationProtocol_SetOutgoingIPProtocol(This,ucProtocol) \
  1933. (This)->lpVtbl -> SetOutgoingIPProtocol(This,ucProtocol)
  1934. #define IHNetApplicationProtocol_GetOutgoingPort(This,pusPort) \
  1935. (This)->lpVtbl -> GetOutgoingPort(This,pusPort)
  1936. #define IHNetApplicationProtocol_SetOutgoingPort(This,usPort) \
  1937. (This)->lpVtbl -> SetOutgoingPort(This,usPort)
  1938. #define IHNetApplicationProtocol_GetResponseRanges(This,puscResponses,prgResponseRange) \
  1939. (This)->lpVtbl -> GetResponseRanges(This,puscResponses,prgResponseRange)
  1940. #define IHNetApplicationProtocol_SetResponseRanges(This,uscResponses,rgResponseRange) \
  1941. (This)->lpVtbl -> SetResponseRanges(This,uscResponses,rgResponseRange)
  1942. #define IHNetApplicationProtocol_GetBuiltIn(This,pfBuiltIn) \
  1943. (This)->lpVtbl -> GetBuiltIn(This,pfBuiltIn)
  1944. #define IHNetApplicationProtocol_GetEnabled(This,pfEnabled) \
  1945. (This)->lpVtbl -> GetEnabled(This,pfEnabled)
  1946. #define IHNetApplicationProtocol_SetEnabled(This,fEnable) \
  1947. (This)->lpVtbl -> SetEnabled(This,fEnable)
  1948. #define IHNetApplicationProtocol_Delete(This) \
  1949. (This)->lpVtbl -> Delete(This)
  1950. #endif /* COBJMACROS */
  1951. #endif /* C style interface */
  1952. HRESULT STDMETHODCALLTYPE IHNetApplicationProtocol_GetName_Proxy(
  1953. IHNetApplicationProtocol * This,
  1954. /* [string][out] */ OLECHAR **ppszwName);
  1955. void __RPC_STUB IHNetApplicationProtocol_GetName_Stub(
  1956. IRpcStubBuffer *This,
  1957. IRpcChannelBuffer *_pRpcChannelBuffer,
  1958. PRPC_MESSAGE _pRpcMessage,
  1959. DWORD *_pdwStubPhase);
  1960. HRESULT STDMETHODCALLTYPE IHNetApplicationProtocol_SetName_Proxy(
  1961. IHNetApplicationProtocol * This,
  1962. /* [string][in] */ OLECHAR *pszwName);
  1963. void __RPC_STUB IHNetApplicationProtocol_SetName_Stub(
  1964. IRpcStubBuffer *This,
  1965. IRpcChannelBuffer *_pRpcChannelBuffer,
  1966. PRPC_MESSAGE _pRpcMessage,
  1967. DWORD *_pdwStubPhase);
  1968. HRESULT STDMETHODCALLTYPE IHNetApplicationProtocol_GetOutgoingIPProtocol_Proxy(
  1969. IHNetApplicationProtocol * This,
  1970. /* [out] */ UCHAR *pucProtocol);
  1971. void __RPC_STUB IHNetApplicationProtocol_GetOutgoingIPProtocol_Stub(
  1972. IRpcStubBuffer *This,
  1973. IRpcChannelBuffer *_pRpcChannelBuffer,
  1974. PRPC_MESSAGE _pRpcMessage,
  1975. DWORD *_pdwStubPhase);
  1976. HRESULT STDMETHODCALLTYPE IHNetApplicationProtocol_SetOutgoingIPProtocol_Proxy(
  1977. IHNetApplicationProtocol * This,
  1978. /* [in] */ UCHAR ucProtocol);
  1979. void __RPC_STUB IHNetApplicationProtocol_SetOutgoingIPProtocol_Stub(
  1980. IRpcStubBuffer *This,
  1981. IRpcChannelBuffer *_pRpcChannelBuffer,
  1982. PRPC_MESSAGE _pRpcMessage,
  1983. DWORD *_pdwStubPhase);
  1984. HRESULT STDMETHODCALLTYPE IHNetApplicationProtocol_GetOutgoingPort_Proxy(
  1985. IHNetApplicationProtocol * This,
  1986. /* [out] */ USHORT *pusPort);
  1987. void __RPC_STUB IHNetApplicationProtocol_GetOutgoingPort_Stub(
  1988. IRpcStubBuffer *This,
  1989. IRpcChannelBuffer *_pRpcChannelBuffer,
  1990. PRPC_MESSAGE _pRpcMessage,
  1991. DWORD *_pdwStubPhase);
  1992. HRESULT STDMETHODCALLTYPE IHNetApplicationProtocol_SetOutgoingPort_Proxy(
  1993. IHNetApplicationProtocol * This,
  1994. /* [in] */ USHORT usPort);
  1995. void __RPC_STUB IHNetApplicationProtocol_SetOutgoingPort_Stub(
  1996. IRpcStubBuffer *This,
  1997. IRpcChannelBuffer *_pRpcChannelBuffer,
  1998. PRPC_MESSAGE _pRpcMessage,
  1999. DWORD *_pdwStubPhase);
  2000. HRESULT STDMETHODCALLTYPE IHNetApplicationProtocol_GetResponseRanges_Proxy(
  2001. IHNetApplicationProtocol * This,
  2002. /* [out] */ USHORT *puscResponses,
  2003. /* [length_is][out] */ HNET_RESPONSE_RANGE *prgResponseRange[ ]);
  2004. void __RPC_STUB IHNetApplicationProtocol_GetResponseRanges_Stub(
  2005. IRpcStubBuffer *This,
  2006. IRpcChannelBuffer *_pRpcChannelBuffer,
  2007. PRPC_MESSAGE _pRpcMessage,
  2008. DWORD *_pdwStubPhase);
  2009. HRESULT STDMETHODCALLTYPE IHNetApplicationProtocol_SetResponseRanges_Proxy(
  2010. IHNetApplicationProtocol * This,
  2011. /* [in] */ USHORT uscResponses,
  2012. /* [size_is][in] */ HNET_RESPONSE_RANGE rgResponseRange[ ]);
  2013. void __RPC_STUB IHNetApplicationProtocol_SetResponseRanges_Stub(
  2014. IRpcStubBuffer *This,
  2015. IRpcChannelBuffer *_pRpcChannelBuffer,
  2016. PRPC_MESSAGE _pRpcMessage,
  2017. DWORD *_pdwStubPhase);
  2018. HRESULT STDMETHODCALLTYPE IHNetApplicationProtocol_GetBuiltIn_Proxy(
  2019. IHNetApplicationProtocol * This,
  2020. /* [out] */ BOOLEAN *pfBuiltIn);
  2021. void __RPC_STUB IHNetApplicationProtocol_GetBuiltIn_Stub(
  2022. IRpcStubBuffer *This,
  2023. IRpcChannelBuffer *_pRpcChannelBuffer,
  2024. PRPC_MESSAGE _pRpcMessage,
  2025. DWORD *_pdwStubPhase);
  2026. HRESULT STDMETHODCALLTYPE IHNetApplicationProtocol_GetEnabled_Proxy(
  2027. IHNetApplicationProtocol * This,
  2028. /* [out] */ BOOLEAN *pfEnabled);
  2029. void __RPC_STUB IHNetApplicationProtocol_GetEnabled_Stub(
  2030. IRpcStubBuffer *This,
  2031. IRpcChannelBuffer *_pRpcChannelBuffer,
  2032. PRPC_MESSAGE _pRpcMessage,
  2033. DWORD *_pdwStubPhase);
  2034. HRESULT STDMETHODCALLTYPE IHNetApplicationProtocol_SetEnabled_Proxy(
  2035. IHNetApplicationProtocol * This,
  2036. /* [in] */ BOOLEAN fEnable);
  2037. void __RPC_STUB IHNetApplicationProtocol_SetEnabled_Stub(
  2038. IRpcStubBuffer *This,
  2039. IRpcChannelBuffer *_pRpcChannelBuffer,
  2040. PRPC_MESSAGE _pRpcMessage,
  2041. DWORD *_pdwStubPhase);
  2042. HRESULT STDMETHODCALLTYPE IHNetApplicationProtocol_Delete_Proxy(
  2043. IHNetApplicationProtocol * This);
  2044. void __RPC_STUB IHNetApplicationProtocol_Delete_Stub(
  2045. IRpcStubBuffer *This,
  2046. IRpcChannelBuffer *_pRpcChannelBuffer,
  2047. PRPC_MESSAGE _pRpcMessage,
  2048. DWORD *_pdwStubPhase);
  2049. #endif /* __IHNetApplicationProtocol_INTERFACE_DEFINED__ */
  2050. #ifndef __IEnumHNetBridges_INTERFACE_DEFINED__
  2051. #define __IEnumHNetBridges_INTERFACE_DEFINED__
  2052. /* interface IEnumHNetBridges */
  2053. /* [unique][uuid][object][local] */
  2054. EXTERN_C const IID IID_IEnumHNetBridges;
  2055. #if defined(__cplusplus) && !defined(CINTERFACE)
  2056. MIDL_INTERFACE("85D18B77-3032-11D4-9348-00C04F8EEB71")
  2057. IEnumHNetBridges : public IUnknown
  2058. {
  2059. public:
  2060. virtual HRESULT STDMETHODCALLTYPE Next(
  2061. /* [in] */ ULONG cElt,
  2062. /* [length_is][size_is][out] */ IHNetBridge **rgElt,
  2063. /* [out] */ ULONG *pcEltFetched) = 0;
  2064. virtual HRESULT STDMETHODCALLTYPE Skip(
  2065. /* [in] */ ULONG cElt) = 0;
  2066. virtual HRESULT STDMETHODCALLTYPE Reset( void) = 0;
  2067. virtual HRESULT STDMETHODCALLTYPE Clone(
  2068. /* [out] */ IEnumHNetBridges **ppEnum) = 0;
  2069. };
  2070. #else /* C style interface */
  2071. typedef struct IEnumHNetBridgesVtbl
  2072. {
  2073. BEGIN_INTERFACE
  2074. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  2075. IEnumHNetBridges * This,
  2076. /* [in] */ REFIID riid,
  2077. /* [iid_is][out] */ void **ppvObject);
  2078. ULONG ( STDMETHODCALLTYPE *AddRef )(
  2079. IEnumHNetBridges * This);
  2080. ULONG ( STDMETHODCALLTYPE *Release )(
  2081. IEnumHNetBridges * This);
  2082. HRESULT ( STDMETHODCALLTYPE *Next )(
  2083. IEnumHNetBridges * This,
  2084. /* [in] */ ULONG cElt,
  2085. /* [length_is][size_is][out] */ IHNetBridge **rgElt,
  2086. /* [out] */ ULONG *pcEltFetched);
  2087. HRESULT ( STDMETHODCALLTYPE *Skip )(
  2088. IEnumHNetBridges * This,
  2089. /* [in] */ ULONG cElt);
  2090. HRESULT ( STDMETHODCALLTYPE *Reset )(
  2091. IEnumHNetBridges * This);
  2092. HRESULT ( STDMETHODCALLTYPE *Clone )(
  2093. IEnumHNetBridges * This,
  2094. /* [out] */ IEnumHNetBridges **ppEnum);
  2095. END_INTERFACE
  2096. } IEnumHNetBridgesVtbl;
  2097. interface IEnumHNetBridges
  2098. {
  2099. CONST_VTBL struct IEnumHNetBridgesVtbl *lpVtbl;
  2100. };
  2101. #ifdef COBJMACROS
  2102. #define IEnumHNetBridges_QueryInterface(This,riid,ppvObject) \
  2103. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  2104. #define IEnumHNetBridges_AddRef(This) \
  2105. (This)->lpVtbl -> AddRef(This)
  2106. #define IEnumHNetBridges_Release(This) \
  2107. (This)->lpVtbl -> Release(This)
  2108. #define IEnumHNetBridges_Next(This,cElt,rgElt,pcEltFetched) \
  2109. (This)->lpVtbl -> Next(This,cElt,rgElt,pcEltFetched)
  2110. #define IEnumHNetBridges_Skip(This,cElt) \
  2111. (This)->lpVtbl -> Skip(This,cElt)
  2112. #define IEnumHNetBridges_Reset(This) \
  2113. (This)->lpVtbl -> Reset(This)
  2114. #define IEnumHNetBridges_Clone(This,ppEnum) \
  2115. (This)->lpVtbl -> Clone(This,ppEnum)
  2116. #endif /* COBJMACROS */
  2117. #endif /* C style interface */
  2118. HRESULT STDMETHODCALLTYPE IEnumHNetBridges_Next_Proxy(
  2119. IEnumHNetBridges * This,
  2120. /* [in] */ ULONG cElt,
  2121. /* [length_is][size_is][out] */ IHNetBridge **rgElt,
  2122. /* [out] */ ULONG *pcEltFetched);
  2123. void __RPC_STUB IEnumHNetBridges_Next_Stub(
  2124. IRpcStubBuffer *This,
  2125. IRpcChannelBuffer *_pRpcChannelBuffer,
  2126. PRPC_MESSAGE _pRpcMessage,
  2127. DWORD *_pdwStubPhase);
  2128. HRESULT STDMETHODCALLTYPE IEnumHNetBridges_Skip_Proxy(
  2129. IEnumHNetBridges * This,
  2130. /* [in] */ ULONG cElt);
  2131. void __RPC_STUB IEnumHNetBridges_Skip_Stub(
  2132. IRpcStubBuffer *This,
  2133. IRpcChannelBuffer *_pRpcChannelBuffer,
  2134. PRPC_MESSAGE _pRpcMessage,
  2135. DWORD *_pdwStubPhase);
  2136. HRESULT STDMETHODCALLTYPE IEnumHNetBridges_Reset_Proxy(
  2137. IEnumHNetBridges * This);
  2138. void __RPC_STUB IEnumHNetBridges_Reset_Stub(
  2139. IRpcStubBuffer *This,
  2140. IRpcChannelBuffer *_pRpcChannelBuffer,
  2141. PRPC_MESSAGE _pRpcMessage,
  2142. DWORD *_pdwStubPhase);
  2143. HRESULT STDMETHODCALLTYPE IEnumHNetBridges_Clone_Proxy(
  2144. IEnumHNetBridges * This,
  2145. /* [out] */ IEnumHNetBridges **ppEnum);
  2146. void __RPC_STUB IEnumHNetBridges_Clone_Stub(
  2147. IRpcStubBuffer *This,
  2148. IRpcChannelBuffer *_pRpcChannelBuffer,
  2149. PRPC_MESSAGE _pRpcMessage,
  2150. DWORD *_pdwStubPhase);
  2151. #endif /* __IEnumHNetBridges_INTERFACE_DEFINED__ */
  2152. #ifndef __IEnumHNetFirewalledConnections_INTERFACE_DEFINED__
  2153. #define __IEnumHNetFirewalledConnections_INTERFACE_DEFINED__
  2154. /* interface IEnumHNetFirewalledConnections */
  2155. /* [unique][uuid][object][local] */
  2156. EXTERN_C const IID IID_IEnumHNetFirewalledConnections;
  2157. #if defined(__cplusplus) && !defined(CINTERFACE)
  2158. MIDL_INTERFACE("85D18B78-3032-11D4-9348-00C04F8EEB71")
  2159. IEnumHNetFirewalledConnections : public IUnknown
  2160. {
  2161. public:
  2162. virtual HRESULT STDMETHODCALLTYPE Next(
  2163. /* [in] */ ULONG cElt,
  2164. /* [length_is][size_is][out] */ IHNetFirewalledConnection **rgElt,
  2165. /* [out] */ ULONG *pcEltFetched) = 0;
  2166. virtual HRESULT STDMETHODCALLTYPE Skip(
  2167. /* [in] */ ULONG cElt) = 0;
  2168. virtual HRESULT STDMETHODCALLTYPE Reset( void) = 0;
  2169. virtual HRESULT STDMETHODCALLTYPE Clone(
  2170. /* [out] */ IEnumHNetFirewalledConnections **ppEnum) = 0;
  2171. };
  2172. #else /* C style interface */
  2173. typedef struct IEnumHNetFirewalledConnectionsVtbl
  2174. {
  2175. BEGIN_INTERFACE
  2176. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  2177. IEnumHNetFirewalledConnections * This,
  2178. /* [in] */ REFIID riid,
  2179. /* [iid_is][out] */ void **ppvObject);
  2180. ULONG ( STDMETHODCALLTYPE *AddRef )(
  2181. IEnumHNetFirewalledConnections * This);
  2182. ULONG ( STDMETHODCALLTYPE *Release )(
  2183. IEnumHNetFirewalledConnections * This);
  2184. HRESULT ( STDMETHODCALLTYPE *Next )(
  2185. IEnumHNetFirewalledConnections * This,
  2186. /* [in] */ ULONG cElt,
  2187. /* [length_is][size_is][out] */ IHNetFirewalledConnection **rgElt,
  2188. /* [out] */ ULONG *pcEltFetched);
  2189. HRESULT ( STDMETHODCALLTYPE *Skip )(
  2190. IEnumHNetFirewalledConnections * This,
  2191. /* [in] */ ULONG cElt);
  2192. HRESULT ( STDMETHODCALLTYPE *Reset )(
  2193. IEnumHNetFirewalledConnections * This);
  2194. HRESULT ( STDMETHODCALLTYPE *Clone )(
  2195. IEnumHNetFirewalledConnections * This,
  2196. /* [out] */ IEnumHNetFirewalledConnections **ppEnum);
  2197. END_INTERFACE
  2198. } IEnumHNetFirewalledConnectionsVtbl;
  2199. interface IEnumHNetFirewalledConnections
  2200. {
  2201. CONST_VTBL struct IEnumHNetFirewalledConnectionsVtbl *lpVtbl;
  2202. };
  2203. #ifdef COBJMACROS
  2204. #define IEnumHNetFirewalledConnections_QueryInterface(This,riid,ppvObject) \
  2205. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  2206. #define IEnumHNetFirewalledConnections_AddRef(This) \
  2207. (This)->lpVtbl -> AddRef(This)
  2208. #define IEnumHNetFirewalledConnections_Release(This) \
  2209. (This)->lpVtbl -> Release(This)
  2210. #define IEnumHNetFirewalledConnections_Next(This,cElt,rgElt,pcEltFetched) \
  2211. (This)->lpVtbl -> Next(This,cElt,rgElt,pcEltFetched)
  2212. #define IEnumHNetFirewalledConnections_Skip(This,cElt) \
  2213. (This)->lpVtbl -> Skip(This,cElt)
  2214. #define IEnumHNetFirewalledConnections_Reset(This) \
  2215. (This)->lpVtbl -> Reset(This)
  2216. #define IEnumHNetFirewalledConnections_Clone(This,ppEnum) \
  2217. (This)->lpVtbl -> Clone(This,ppEnum)
  2218. #endif /* COBJMACROS */
  2219. #endif /* C style interface */
  2220. HRESULT STDMETHODCALLTYPE IEnumHNetFirewalledConnections_Next_Proxy(
  2221. IEnumHNetFirewalledConnections * This,
  2222. /* [in] */ ULONG cElt,
  2223. /* [length_is][size_is][out] */ IHNetFirewalledConnection **rgElt,
  2224. /* [out] */ ULONG *pcEltFetched);
  2225. void __RPC_STUB IEnumHNetFirewalledConnections_Next_Stub(
  2226. IRpcStubBuffer *This,
  2227. IRpcChannelBuffer *_pRpcChannelBuffer,
  2228. PRPC_MESSAGE _pRpcMessage,
  2229. DWORD *_pdwStubPhase);
  2230. HRESULT STDMETHODCALLTYPE IEnumHNetFirewalledConnections_Skip_Proxy(
  2231. IEnumHNetFirewalledConnections * This,
  2232. /* [in] */ ULONG cElt);
  2233. void __RPC_STUB IEnumHNetFirewalledConnections_Skip_Stub(
  2234. IRpcStubBuffer *This,
  2235. IRpcChannelBuffer *_pRpcChannelBuffer,
  2236. PRPC_MESSAGE _pRpcMessage,
  2237. DWORD *_pdwStubPhase);
  2238. HRESULT STDMETHODCALLTYPE IEnumHNetFirewalledConnections_Reset_Proxy(
  2239. IEnumHNetFirewalledConnections * This);
  2240. void __RPC_STUB IEnumHNetFirewalledConnections_Reset_Stub(
  2241. IRpcStubBuffer *This,
  2242. IRpcChannelBuffer *_pRpcChannelBuffer,
  2243. PRPC_MESSAGE _pRpcMessage,
  2244. DWORD *_pdwStubPhase);
  2245. HRESULT STDMETHODCALLTYPE IEnumHNetFirewalledConnections_Clone_Proxy(
  2246. IEnumHNetFirewalledConnections * This,
  2247. /* [out] */ IEnumHNetFirewalledConnections **ppEnum);
  2248. void __RPC_STUB IEnumHNetFirewalledConnections_Clone_Stub(
  2249. IRpcStubBuffer *This,
  2250. IRpcChannelBuffer *_pRpcChannelBuffer,
  2251. PRPC_MESSAGE _pRpcMessage,
  2252. DWORD *_pdwStubPhase);
  2253. #endif /* __IEnumHNetFirewalledConnections_INTERFACE_DEFINED__ */
  2254. #ifndef __IEnumHNetIcsPublicConnections_INTERFACE_DEFINED__
  2255. #define __IEnumHNetIcsPublicConnections_INTERFACE_DEFINED__
  2256. /* interface IEnumHNetIcsPublicConnections */
  2257. /* [unique][uuid][object][local] */
  2258. EXTERN_C const IID IID_IEnumHNetIcsPublicConnections;
  2259. #if defined(__cplusplus) && !defined(CINTERFACE)
  2260. MIDL_INTERFACE("85D18B79-3032-11D4-9348-00C04F8EEB71")
  2261. IEnumHNetIcsPublicConnections : public IUnknown
  2262. {
  2263. public:
  2264. virtual HRESULT STDMETHODCALLTYPE Next(
  2265. /* [in] */ ULONG cElt,
  2266. /* [length_is][size_is][out] */ IHNetIcsPublicConnection **rgElt,
  2267. /* [out] */ ULONG *pcEltFetched) = 0;
  2268. virtual HRESULT STDMETHODCALLTYPE Skip(
  2269. /* [in] */ ULONG cElt) = 0;
  2270. virtual HRESULT STDMETHODCALLTYPE Reset( void) = 0;
  2271. virtual HRESULT STDMETHODCALLTYPE Clone(
  2272. /* [out] */ IEnumHNetIcsPublicConnections **ppEnum) = 0;
  2273. };
  2274. #else /* C style interface */
  2275. typedef struct IEnumHNetIcsPublicConnectionsVtbl
  2276. {
  2277. BEGIN_INTERFACE
  2278. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  2279. IEnumHNetIcsPublicConnections * This,
  2280. /* [in] */ REFIID riid,
  2281. /* [iid_is][out] */ void **ppvObject);
  2282. ULONG ( STDMETHODCALLTYPE *AddRef )(
  2283. IEnumHNetIcsPublicConnections * This);
  2284. ULONG ( STDMETHODCALLTYPE *Release )(
  2285. IEnumHNetIcsPublicConnections * This);
  2286. HRESULT ( STDMETHODCALLTYPE *Next )(
  2287. IEnumHNetIcsPublicConnections * This,
  2288. /* [in] */ ULONG cElt,
  2289. /* [length_is][size_is][out] */ IHNetIcsPublicConnection **rgElt,
  2290. /* [out] */ ULONG *pcEltFetched);
  2291. HRESULT ( STDMETHODCALLTYPE *Skip )(
  2292. IEnumHNetIcsPublicConnections * This,
  2293. /* [in] */ ULONG cElt);
  2294. HRESULT ( STDMETHODCALLTYPE *Reset )(
  2295. IEnumHNetIcsPublicConnections * This);
  2296. HRESULT ( STDMETHODCALLTYPE *Clone )(
  2297. IEnumHNetIcsPublicConnections * This,
  2298. /* [out] */ IEnumHNetIcsPublicConnections **ppEnum);
  2299. END_INTERFACE
  2300. } IEnumHNetIcsPublicConnectionsVtbl;
  2301. interface IEnumHNetIcsPublicConnections
  2302. {
  2303. CONST_VTBL struct IEnumHNetIcsPublicConnectionsVtbl *lpVtbl;
  2304. };
  2305. #ifdef COBJMACROS
  2306. #define IEnumHNetIcsPublicConnections_QueryInterface(This,riid,ppvObject) \
  2307. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  2308. #define IEnumHNetIcsPublicConnections_AddRef(This) \
  2309. (This)->lpVtbl -> AddRef(This)
  2310. #define IEnumHNetIcsPublicConnections_Release(This) \
  2311. (This)->lpVtbl -> Release(This)
  2312. #define IEnumHNetIcsPublicConnections_Next(This,cElt,rgElt,pcEltFetched) \
  2313. (This)->lpVtbl -> Next(This,cElt,rgElt,pcEltFetched)
  2314. #define IEnumHNetIcsPublicConnections_Skip(This,cElt) \
  2315. (This)->lpVtbl -> Skip(This,cElt)
  2316. #define IEnumHNetIcsPublicConnections_Reset(This) \
  2317. (This)->lpVtbl -> Reset(This)
  2318. #define IEnumHNetIcsPublicConnections_Clone(This,ppEnum) \
  2319. (This)->lpVtbl -> Clone(This,ppEnum)
  2320. #endif /* COBJMACROS */
  2321. #endif /* C style interface */
  2322. HRESULT STDMETHODCALLTYPE IEnumHNetIcsPublicConnections_Next_Proxy(
  2323. IEnumHNetIcsPublicConnections * This,
  2324. /* [in] */ ULONG cElt,
  2325. /* [length_is][size_is][out] */ IHNetIcsPublicConnection **rgElt,
  2326. /* [out] */ ULONG *pcEltFetched);
  2327. void __RPC_STUB IEnumHNetIcsPublicConnections_Next_Stub(
  2328. IRpcStubBuffer *This,
  2329. IRpcChannelBuffer *_pRpcChannelBuffer,
  2330. PRPC_MESSAGE _pRpcMessage,
  2331. DWORD *_pdwStubPhase);
  2332. HRESULT STDMETHODCALLTYPE IEnumHNetIcsPublicConnections_Skip_Proxy(
  2333. IEnumHNetIcsPublicConnections * This,
  2334. /* [in] */ ULONG cElt);
  2335. void __RPC_STUB IEnumHNetIcsPublicConnections_Skip_Stub(
  2336. IRpcStubBuffer *This,
  2337. IRpcChannelBuffer *_pRpcChannelBuffer,
  2338. PRPC_MESSAGE _pRpcMessage,
  2339. DWORD *_pdwStubPhase);
  2340. HRESULT STDMETHODCALLTYPE IEnumHNetIcsPublicConnections_Reset_Proxy(
  2341. IEnumHNetIcsPublicConnections * This);
  2342. void __RPC_STUB IEnumHNetIcsPublicConnections_Reset_Stub(
  2343. IRpcStubBuffer *This,
  2344. IRpcChannelBuffer *_pRpcChannelBuffer,
  2345. PRPC_MESSAGE _pRpcMessage,
  2346. DWORD *_pdwStubPhase);
  2347. HRESULT STDMETHODCALLTYPE IEnumHNetIcsPublicConnections_Clone_Proxy(
  2348. IEnumHNetIcsPublicConnections * This,
  2349. /* [out] */ IEnumHNetIcsPublicConnections **ppEnum);
  2350. void __RPC_STUB IEnumHNetIcsPublicConnections_Clone_Stub(
  2351. IRpcStubBuffer *This,
  2352. IRpcChannelBuffer *_pRpcChannelBuffer,
  2353. PRPC_MESSAGE _pRpcMessage,
  2354. DWORD *_pdwStubPhase);
  2355. #endif /* __IEnumHNetIcsPublicConnections_INTERFACE_DEFINED__ */
  2356. #ifndef __IEnumHNetIcsPrivateConnections_INTERFACE_DEFINED__
  2357. #define __IEnumHNetIcsPrivateConnections_INTERFACE_DEFINED__
  2358. /* interface IEnumHNetIcsPrivateConnections */
  2359. /* [unique][uuid][object][local] */
  2360. EXTERN_C const IID IID_IEnumHNetIcsPrivateConnections;
  2361. #if defined(__cplusplus) && !defined(CINTERFACE)
  2362. MIDL_INTERFACE("85D18B7A-3032-11D4-9348-00C04F8EEB71")
  2363. IEnumHNetIcsPrivateConnections : public IUnknown
  2364. {
  2365. public:
  2366. virtual HRESULT STDMETHODCALLTYPE Next(
  2367. /* [in] */ ULONG cElt,
  2368. /* [length_is][size_is][out] */ IHNetIcsPrivateConnection **rgElt,
  2369. /* [out] */ ULONG *pcEltFetched) = 0;
  2370. virtual HRESULT STDMETHODCALLTYPE Skip(
  2371. /* [in] */ ULONG cElt) = 0;
  2372. virtual HRESULT STDMETHODCALLTYPE Reset( void) = 0;
  2373. virtual HRESULT STDMETHODCALLTYPE Clone(
  2374. /* [out] */ IEnumHNetIcsPrivateConnections **ppEnum) = 0;
  2375. };
  2376. #else /* C style interface */
  2377. typedef struct IEnumHNetIcsPrivateConnectionsVtbl
  2378. {
  2379. BEGIN_INTERFACE
  2380. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  2381. IEnumHNetIcsPrivateConnections * This,
  2382. /* [in] */ REFIID riid,
  2383. /* [iid_is][out] */ void **ppvObject);
  2384. ULONG ( STDMETHODCALLTYPE *AddRef )(
  2385. IEnumHNetIcsPrivateConnections * This);
  2386. ULONG ( STDMETHODCALLTYPE *Release )(
  2387. IEnumHNetIcsPrivateConnections * This);
  2388. HRESULT ( STDMETHODCALLTYPE *Next )(
  2389. IEnumHNetIcsPrivateConnections * This,
  2390. /* [in] */ ULONG cElt,
  2391. /* [length_is][size_is][out] */ IHNetIcsPrivateConnection **rgElt,
  2392. /* [out] */ ULONG *pcEltFetched);
  2393. HRESULT ( STDMETHODCALLTYPE *Skip )(
  2394. IEnumHNetIcsPrivateConnections * This,
  2395. /* [in] */ ULONG cElt);
  2396. HRESULT ( STDMETHODCALLTYPE *Reset )(
  2397. IEnumHNetIcsPrivateConnections * This);
  2398. HRESULT ( STDMETHODCALLTYPE *Clone )(
  2399. IEnumHNetIcsPrivateConnections * This,
  2400. /* [out] */ IEnumHNetIcsPrivateConnections **ppEnum);
  2401. END_INTERFACE
  2402. } IEnumHNetIcsPrivateConnectionsVtbl;
  2403. interface IEnumHNetIcsPrivateConnections
  2404. {
  2405. CONST_VTBL struct IEnumHNetIcsPrivateConnectionsVtbl *lpVtbl;
  2406. };
  2407. #ifdef COBJMACROS
  2408. #define IEnumHNetIcsPrivateConnections_QueryInterface(This,riid,ppvObject) \
  2409. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  2410. #define IEnumHNetIcsPrivateConnections_AddRef(This) \
  2411. (This)->lpVtbl -> AddRef(This)
  2412. #define IEnumHNetIcsPrivateConnections_Release(This) \
  2413. (This)->lpVtbl -> Release(This)
  2414. #define IEnumHNetIcsPrivateConnections_Next(This,cElt,rgElt,pcEltFetched) \
  2415. (This)->lpVtbl -> Next(This,cElt,rgElt,pcEltFetched)
  2416. #define IEnumHNetIcsPrivateConnections_Skip(This,cElt) \
  2417. (This)->lpVtbl -> Skip(This,cElt)
  2418. #define IEnumHNetIcsPrivateConnections_Reset(This) \
  2419. (This)->lpVtbl -> Reset(This)
  2420. #define IEnumHNetIcsPrivateConnections_Clone(This,ppEnum) \
  2421. (This)->lpVtbl -> Clone(This,ppEnum)
  2422. #endif /* COBJMACROS */
  2423. #endif /* C style interface */
  2424. HRESULT STDMETHODCALLTYPE IEnumHNetIcsPrivateConnections_Next_Proxy(
  2425. IEnumHNetIcsPrivateConnections * This,
  2426. /* [in] */ ULONG cElt,
  2427. /* [length_is][size_is][out] */ IHNetIcsPrivateConnection **rgElt,
  2428. /* [out] */ ULONG *pcEltFetched);
  2429. void __RPC_STUB IEnumHNetIcsPrivateConnections_Next_Stub(
  2430. IRpcStubBuffer *This,
  2431. IRpcChannelBuffer *_pRpcChannelBuffer,
  2432. PRPC_MESSAGE _pRpcMessage,
  2433. DWORD *_pdwStubPhase);
  2434. HRESULT STDMETHODCALLTYPE IEnumHNetIcsPrivateConnections_Skip_Proxy(
  2435. IEnumHNetIcsPrivateConnections * This,
  2436. /* [in] */ ULONG cElt);
  2437. void __RPC_STUB IEnumHNetIcsPrivateConnections_Skip_Stub(
  2438. IRpcStubBuffer *This,
  2439. IRpcChannelBuffer *_pRpcChannelBuffer,
  2440. PRPC_MESSAGE _pRpcMessage,
  2441. DWORD *_pdwStubPhase);
  2442. HRESULT STDMETHODCALLTYPE IEnumHNetIcsPrivateConnections_Reset_Proxy(
  2443. IEnumHNetIcsPrivateConnections * This);
  2444. void __RPC_STUB IEnumHNetIcsPrivateConnections_Reset_Stub(
  2445. IRpcStubBuffer *This,
  2446. IRpcChannelBuffer *_pRpcChannelBuffer,
  2447. PRPC_MESSAGE _pRpcMessage,
  2448. DWORD *_pdwStubPhase);
  2449. HRESULT STDMETHODCALLTYPE IEnumHNetIcsPrivateConnections_Clone_Proxy(
  2450. IEnumHNetIcsPrivateConnections * This,
  2451. /* [out] */ IEnumHNetIcsPrivateConnections **ppEnum);
  2452. void __RPC_STUB IEnumHNetIcsPrivateConnections_Clone_Stub(
  2453. IRpcStubBuffer *This,
  2454. IRpcChannelBuffer *_pRpcChannelBuffer,
  2455. PRPC_MESSAGE _pRpcMessage,
  2456. DWORD *_pdwStubPhase);
  2457. #endif /* __IEnumHNetIcsPrivateConnections_INTERFACE_DEFINED__ */
  2458. #ifndef __IEnumHNetApplicationProtocols_INTERFACE_DEFINED__
  2459. #define __IEnumHNetApplicationProtocols_INTERFACE_DEFINED__
  2460. /* interface IEnumHNetApplicationProtocols */
  2461. /* [unique][uuid][object][local] */
  2462. EXTERN_C const IID IID_IEnumHNetApplicationProtocols;
  2463. #if defined(__cplusplus) && !defined(CINTERFACE)
  2464. MIDL_INTERFACE("85D18B7B-3032-11D4-9348-00C04F8EEB71")
  2465. IEnumHNetApplicationProtocols : public IUnknown
  2466. {
  2467. public:
  2468. virtual HRESULT STDMETHODCALLTYPE Next(
  2469. /* [in] */ ULONG cElt,
  2470. /* [length_is][size_is][out] */ IHNetApplicationProtocol **rgElt,
  2471. /* [out] */ ULONG *pcEltFetched) = 0;
  2472. virtual HRESULT STDMETHODCALLTYPE Skip(
  2473. /* [in] */ ULONG cElt) = 0;
  2474. virtual HRESULT STDMETHODCALLTYPE Reset( void) = 0;
  2475. virtual HRESULT STDMETHODCALLTYPE Clone(
  2476. /* [out] */ IEnumHNetApplicationProtocols **ppEnum) = 0;
  2477. };
  2478. #else /* C style interface */
  2479. typedef struct IEnumHNetApplicationProtocolsVtbl
  2480. {
  2481. BEGIN_INTERFACE
  2482. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  2483. IEnumHNetApplicationProtocols * This,
  2484. /* [in] */ REFIID riid,
  2485. /* [iid_is][out] */ void **ppvObject);
  2486. ULONG ( STDMETHODCALLTYPE *AddRef )(
  2487. IEnumHNetApplicationProtocols * This);
  2488. ULONG ( STDMETHODCALLTYPE *Release )(
  2489. IEnumHNetApplicationProtocols * This);
  2490. HRESULT ( STDMETHODCALLTYPE *Next )(
  2491. IEnumHNetApplicationProtocols * This,
  2492. /* [in] */ ULONG cElt,
  2493. /* [length_is][size_is][out] */ IHNetApplicationProtocol **rgElt,
  2494. /* [out] */ ULONG *pcEltFetched);
  2495. HRESULT ( STDMETHODCALLTYPE *Skip )(
  2496. IEnumHNetApplicationProtocols * This,
  2497. /* [in] */ ULONG cElt);
  2498. HRESULT ( STDMETHODCALLTYPE *Reset )(
  2499. IEnumHNetApplicationProtocols * This);
  2500. HRESULT ( STDMETHODCALLTYPE *Clone )(
  2501. IEnumHNetApplicationProtocols * This,
  2502. /* [out] */ IEnumHNetApplicationProtocols **ppEnum);
  2503. END_INTERFACE
  2504. } IEnumHNetApplicationProtocolsVtbl;
  2505. interface IEnumHNetApplicationProtocols
  2506. {
  2507. CONST_VTBL struct IEnumHNetApplicationProtocolsVtbl *lpVtbl;
  2508. };
  2509. #ifdef COBJMACROS
  2510. #define IEnumHNetApplicationProtocols_QueryInterface(This,riid,ppvObject) \
  2511. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  2512. #define IEnumHNetApplicationProtocols_AddRef(This) \
  2513. (This)->lpVtbl -> AddRef(This)
  2514. #define IEnumHNetApplicationProtocols_Release(This) \
  2515. (This)->lpVtbl -> Release(This)
  2516. #define IEnumHNetApplicationProtocols_Next(This,cElt,rgElt,pcEltFetched) \
  2517. (This)->lpVtbl -> Next(This,cElt,rgElt,pcEltFetched)
  2518. #define IEnumHNetApplicationProtocols_Skip(This,cElt) \
  2519. (This)->lpVtbl -> Skip(This,cElt)
  2520. #define IEnumHNetApplicationProtocols_Reset(This) \
  2521. (This)->lpVtbl -> Reset(This)
  2522. #define IEnumHNetApplicationProtocols_Clone(This,ppEnum) \
  2523. (This)->lpVtbl -> Clone(This,ppEnum)
  2524. #endif /* COBJMACROS */
  2525. #endif /* C style interface */
  2526. HRESULT STDMETHODCALLTYPE IEnumHNetApplicationProtocols_Next_Proxy(
  2527. IEnumHNetApplicationProtocols * This,
  2528. /* [in] */ ULONG cElt,
  2529. /* [length_is][size_is][out] */ IHNetApplicationProtocol **rgElt,
  2530. /* [out] */ ULONG *pcEltFetched);
  2531. void __RPC_STUB IEnumHNetApplicationProtocols_Next_Stub(
  2532. IRpcStubBuffer *This,
  2533. IRpcChannelBuffer *_pRpcChannelBuffer,
  2534. PRPC_MESSAGE _pRpcMessage,
  2535. DWORD *_pdwStubPhase);
  2536. HRESULT STDMETHODCALLTYPE IEnumHNetApplicationProtocols_Skip_Proxy(
  2537. IEnumHNetApplicationProtocols * This,
  2538. /* [in] */ ULONG cElt);
  2539. void __RPC_STUB IEnumHNetApplicationProtocols_Skip_Stub(
  2540. IRpcStubBuffer *This,
  2541. IRpcChannelBuffer *_pRpcChannelBuffer,
  2542. PRPC_MESSAGE _pRpcMessage,
  2543. DWORD *_pdwStubPhase);
  2544. HRESULT STDMETHODCALLTYPE IEnumHNetApplicationProtocols_Reset_Proxy(
  2545. IEnumHNetApplicationProtocols * This);
  2546. void __RPC_STUB IEnumHNetApplicationProtocols_Reset_Stub(
  2547. IRpcStubBuffer *This,
  2548. IRpcChannelBuffer *_pRpcChannelBuffer,
  2549. PRPC_MESSAGE _pRpcMessage,
  2550. DWORD *_pdwStubPhase);
  2551. HRESULT STDMETHODCALLTYPE IEnumHNetApplicationProtocols_Clone_Proxy(
  2552. IEnumHNetApplicationProtocols * This,
  2553. /* [out] */ IEnumHNetApplicationProtocols **ppEnum);
  2554. void __RPC_STUB IEnumHNetApplicationProtocols_Clone_Stub(
  2555. IRpcStubBuffer *This,
  2556. IRpcChannelBuffer *_pRpcChannelBuffer,
  2557. PRPC_MESSAGE _pRpcMessage,
  2558. DWORD *_pdwStubPhase);
  2559. #endif /* __IEnumHNetApplicationProtocols_INTERFACE_DEFINED__ */
  2560. #ifndef __IEnumHNetPortMappingProtocols_INTERFACE_DEFINED__
  2561. #define __IEnumHNetPortMappingProtocols_INTERFACE_DEFINED__
  2562. /* interface IEnumHNetPortMappingProtocols */
  2563. /* [unique][uuid][object][local] */
  2564. EXTERN_C const IID IID_IEnumHNetPortMappingProtocols;
  2565. #if defined(__cplusplus) && !defined(CINTERFACE)
  2566. MIDL_INTERFACE("85D18B7C-3032-11D4-9348-00C04F8EEB71")
  2567. IEnumHNetPortMappingProtocols : public IUnknown
  2568. {
  2569. public:
  2570. virtual HRESULT STDMETHODCALLTYPE Next(
  2571. /* [in] */ ULONG cElt,
  2572. /* [length_is][size_is][out] */ IHNetPortMappingProtocol **rgElt,
  2573. /* [out] */ ULONG *pcEltFetched) = 0;
  2574. virtual HRESULT STDMETHODCALLTYPE Skip(
  2575. /* [in] */ ULONG cElt) = 0;
  2576. virtual HRESULT STDMETHODCALLTYPE Reset( void) = 0;
  2577. virtual HRESULT STDMETHODCALLTYPE Clone(
  2578. /* [out] */ IEnumHNetPortMappingProtocols **ppEnum) = 0;
  2579. };
  2580. #else /* C style interface */
  2581. typedef struct IEnumHNetPortMappingProtocolsVtbl
  2582. {
  2583. BEGIN_INTERFACE
  2584. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  2585. IEnumHNetPortMappingProtocols * This,
  2586. /* [in] */ REFIID riid,
  2587. /* [iid_is][out] */ void **ppvObject);
  2588. ULONG ( STDMETHODCALLTYPE *AddRef )(
  2589. IEnumHNetPortMappingProtocols * This);
  2590. ULONG ( STDMETHODCALLTYPE *Release )(
  2591. IEnumHNetPortMappingProtocols * This);
  2592. HRESULT ( STDMETHODCALLTYPE *Next )(
  2593. IEnumHNetPortMappingProtocols * This,
  2594. /* [in] */ ULONG cElt,
  2595. /* [length_is][size_is][out] */ IHNetPortMappingProtocol **rgElt,
  2596. /* [out] */ ULONG *pcEltFetched);
  2597. HRESULT ( STDMETHODCALLTYPE *Skip )(
  2598. IEnumHNetPortMappingProtocols * This,
  2599. /* [in] */ ULONG cElt);
  2600. HRESULT ( STDMETHODCALLTYPE *Reset )(
  2601. IEnumHNetPortMappingProtocols * This);
  2602. HRESULT ( STDMETHODCALLTYPE *Clone )(
  2603. IEnumHNetPortMappingProtocols * This,
  2604. /* [out] */ IEnumHNetPortMappingProtocols **ppEnum);
  2605. END_INTERFACE
  2606. } IEnumHNetPortMappingProtocolsVtbl;
  2607. interface IEnumHNetPortMappingProtocols
  2608. {
  2609. CONST_VTBL struct IEnumHNetPortMappingProtocolsVtbl *lpVtbl;
  2610. };
  2611. #ifdef COBJMACROS
  2612. #define IEnumHNetPortMappingProtocols_QueryInterface(This,riid,ppvObject) \
  2613. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  2614. #define IEnumHNetPortMappingProtocols_AddRef(This) \
  2615. (This)->lpVtbl -> AddRef(This)
  2616. #define IEnumHNetPortMappingProtocols_Release(This) \
  2617. (This)->lpVtbl -> Release(This)
  2618. #define IEnumHNetPortMappingProtocols_Next(This,cElt,rgElt,pcEltFetched) \
  2619. (This)->lpVtbl -> Next(This,cElt,rgElt,pcEltFetched)
  2620. #define IEnumHNetPortMappingProtocols_Skip(This,cElt) \
  2621. (This)->lpVtbl -> Skip(This,cElt)
  2622. #define IEnumHNetPortMappingProtocols_Reset(This) \
  2623. (This)->lpVtbl -> Reset(This)
  2624. #define IEnumHNetPortMappingProtocols_Clone(This,ppEnum) \
  2625. (This)->lpVtbl -> Clone(This,ppEnum)
  2626. #endif /* COBJMACROS */
  2627. #endif /* C style interface */
  2628. HRESULT STDMETHODCALLTYPE IEnumHNetPortMappingProtocols_Next_Proxy(
  2629. IEnumHNetPortMappingProtocols * This,
  2630. /* [in] */ ULONG cElt,
  2631. /* [length_is][size_is][out] */ IHNetPortMappingProtocol **rgElt,
  2632. /* [out] */ ULONG *pcEltFetched);
  2633. void __RPC_STUB IEnumHNetPortMappingProtocols_Next_Stub(
  2634. IRpcStubBuffer *This,
  2635. IRpcChannelBuffer *_pRpcChannelBuffer,
  2636. PRPC_MESSAGE _pRpcMessage,
  2637. DWORD *_pdwStubPhase);
  2638. HRESULT STDMETHODCALLTYPE IEnumHNetPortMappingProtocols_Skip_Proxy(
  2639. IEnumHNetPortMappingProtocols * This,
  2640. /* [in] */ ULONG cElt);
  2641. void __RPC_STUB IEnumHNetPortMappingProtocols_Skip_Stub(
  2642. IRpcStubBuffer *This,
  2643. IRpcChannelBuffer *_pRpcChannelBuffer,
  2644. PRPC_MESSAGE _pRpcMessage,
  2645. DWORD *_pdwStubPhase);
  2646. HRESULT STDMETHODCALLTYPE IEnumHNetPortMappingProtocols_Reset_Proxy(
  2647. IEnumHNetPortMappingProtocols * This);
  2648. void __RPC_STUB IEnumHNetPortMappingProtocols_Reset_Stub(
  2649. IRpcStubBuffer *This,
  2650. IRpcChannelBuffer *_pRpcChannelBuffer,
  2651. PRPC_MESSAGE _pRpcMessage,
  2652. DWORD *_pdwStubPhase);
  2653. HRESULT STDMETHODCALLTYPE IEnumHNetPortMappingProtocols_Clone_Proxy(
  2654. IEnumHNetPortMappingProtocols * This,
  2655. /* [out] */ IEnumHNetPortMappingProtocols **ppEnum);
  2656. void __RPC_STUB IEnumHNetPortMappingProtocols_Clone_Stub(
  2657. IRpcStubBuffer *This,
  2658. IRpcChannelBuffer *_pRpcChannelBuffer,
  2659. PRPC_MESSAGE _pRpcMessage,
  2660. DWORD *_pdwStubPhase);
  2661. #endif /* __IEnumHNetPortMappingProtocols_INTERFACE_DEFINED__ */
  2662. #ifndef __IEnumHNetPortMappingBindings_INTERFACE_DEFINED__
  2663. #define __IEnumHNetPortMappingBindings_INTERFACE_DEFINED__
  2664. /* interface IEnumHNetPortMappingBindings */
  2665. /* [unique][uuid][object][local] */
  2666. EXTERN_C const IID IID_IEnumHNetPortMappingBindings;
  2667. #if defined(__cplusplus) && !defined(CINTERFACE)
  2668. MIDL_INTERFACE("85D18B81-3032-11D4-9348-00C04F8EEB71")
  2669. IEnumHNetPortMappingBindings : public IUnknown
  2670. {
  2671. public:
  2672. virtual HRESULT STDMETHODCALLTYPE Next(
  2673. /* [in] */ ULONG cElt,
  2674. /* [length_is][size_is][out] */ IHNetPortMappingBinding **rgElt,
  2675. /* [out] */ ULONG *pcEltFetched) = 0;
  2676. virtual HRESULT STDMETHODCALLTYPE Skip(
  2677. /* [in] */ ULONG cElt) = 0;
  2678. virtual HRESULT STDMETHODCALLTYPE Reset( void) = 0;
  2679. virtual HRESULT STDMETHODCALLTYPE Clone(
  2680. /* [out] */ IEnumHNetPortMappingBindings **ppEnum) = 0;
  2681. };
  2682. #else /* C style interface */
  2683. typedef struct IEnumHNetPortMappingBindingsVtbl
  2684. {
  2685. BEGIN_INTERFACE
  2686. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  2687. IEnumHNetPortMappingBindings * This,
  2688. /* [in] */ REFIID riid,
  2689. /* [iid_is][out] */ void **ppvObject);
  2690. ULONG ( STDMETHODCALLTYPE *AddRef )(
  2691. IEnumHNetPortMappingBindings * This);
  2692. ULONG ( STDMETHODCALLTYPE *Release )(
  2693. IEnumHNetPortMappingBindings * This);
  2694. HRESULT ( STDMETHODCALLTYPE *Next )(
  2695. IEnumHNetPortMappingBindings * This,
  2696. /* [in] */ ULONG cElt,
  2697. /* [length_is][size_is][out] */ IHNetPortMappingBinding **rgElt,
  2698. /* [out] */ ULONG *pcEltFetched);
  2699. HRESULT ( STDMETHODCALLTYPE *Skip )(
  2700. IEnumHNetPortMappingBindings * This,
  2701. /* [in] */ ULONG cElt);
  2702. HRESULT ( STDMETHODCALLTYPE *Reset )(
  2703. IEnumHNetPortMappingBindings * This);
  2704. HRESULT ( STDMETHODCALLTYPE *Clone )(
  2705. IEnumHNetPortMappingBindings * This,
  2706. /* [out] */ IEnumHNetPortMappingBindings **ppEnum);
  2707. END_INTERFACE
  2708. } IEnumHNetPortMappingBindingsVtbl;
  2709. interface IEnumHNetPortMappingBindings
  2710. {
  2711. CONST_VTBL struct IEnumHNetPortMappingBindingsVtbl *lpVtbl;
  2712. };
  2713. #ifdef COBJMACROS
  2714. #define IEnumHNetPortMappingBindings_QueryInterface(This,riid,ppvObject) \
  2715. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  2716. #define IEnumHNetPortMappingBindings_AddRef(This) \
  2717. (This)->lpVtbl -> AddRef(This)
  2718. #define IEnumHNetPortMappingBindings_Release(This) \
  2719. (This)->lpVtbl -> Release(This)
  2720. #define IEnumHNetPortMappingBindings_Next(This,cElt,rgElt,pcEltFetched) \
  2721. (This)->lpVtbl -> Next(This,cElt,rgElt,pcEltFetched)
  2722. #define IEnumHNetPortMappingBindings_Skip(This,cElt) \
  2723. (This)->lpVtbl -> Skip(This,cElt)
  2724. #define IEnumHNetPortMappingBindings_Reset(This) \
  2725. (This)->lpVtbl -> Reset(This)
  2726. #define IEnumHNetPortMappingBindings_Clone(This,ppEnum) \
  2727. (This)->lpVtbl -> Clone(This,ppEnum)
  2728. #endif /* COBJMACROS */
  2729. #endif /* C style interface */
  2730. HRESULT STDMETHODCALLTYPE IEnumHNetPortMappingBindings_Next_Proxy(
  2731. IEnumHNetPortMappingBindings * This,
  2732. /* [in] */ ULONG cElt,
  2733. /* [length_is][size_is][out] */ IHNetPortMappingBinding **rgElt,
  2734. /* [out] */ ULONG *pcEltFetched);
  2735. void __RPC_STUB IEnumHNetPortMappingBindings_Next_Stub(
  2736. IRpcStubBuffer *This,
  2737. IRpcChannelBuffer *_pRpcChannelBuffer,
  2738. PRPC_MESSAGE _pRpcMessage,
  2739. DWORD *_pdwStubPhase);
  2740. HRESULT STDMETHODCALLTYPE IEnumHNetPortMappingBindings_Skip_Proxy(
  2741. IEnumHNetPortMappingBindings * This,
  2742. /* [in] */ ULONG cElt);
  2743. void __RPC_STUB IEnumHNetPortMappingBindings_Skip_Stub(
  2744. IRpcStubBuffer *This,
  2745. IRpcChannelBuffer *_pRpcChannelBuffer,
  2746. PRPC_MESSAGE _pRpcMessage,
  2747. DWORD *_pdwStubPhase);
  2748. HRESULT STDMETHODCALLTYPE IEnumHNetPortMappingBindings_Reset_Proxy(
  2749. IEnumHNetPortMappingBindings * This);
  2750. void __RPC_STUB IEnumHNetPortMappingBindings_Reset_Stub(
  2751. IRpcStubBuffer *This,
  2752. IRpcChannelBuffer *_pRpcChannelBuffer,
  2753. PRPC_MESSAGE _pRpcMessage,
  2754. DWORD *_pdwStubPhase);
  2755. HRESULT STDMETHODCALLTYPE IEnumHNetPortMappingBindings_Clone_Proxy(
  2756. IEnumHNetPortMappingBindings * This,
  2757. /* [out] */ IEnumHNetPortMappingBindings **ppEnum);
  2758. void __RPC_STUB IEnumHNetPortMappingBindings_Clone_Stub(
  2759. IRpcStubBuffer *This,
  2760. IRpcChannelBuffer *_pRpcChannelBuffer,
  2761. PRPC_MESSAGE _pRpcMessage,
  2762. DWORD *_pdwStubPhase);
  2763. #endif /* __IEnumHNetPortMappingBindings_INTERFACE_DEFINED__ */
  2764. #ifndef __IEnumHNetBridgedConnections_INTERFACE_DEFINED__
  2765. #define __IEnumHNetBridgedConnections_INTERFACE_DEFINED__
  2766. /* interface IEnumHNetBridgedConnections */
  2767. /* [unique][uuid][object][local] */
  2768. EXTERN_C const IID IID_IEnumHNetBridgedConnections;
  2769. #if defined(__cplusplus) && !defined(CINTERFACE)
  2770. MIDL_INTERFACE("85D18B7D-3032-11D4-9348-00C04F8EEB71")
  2771. IEnumHNetBridgedConnections : public IUnknown
  2772. {
  2773. public:
  2774. virtual HRESULT STDMETHODCALLTYPE Next(
  2775. /* [in] */ ULONG cElt,
  2776. /* [length_is][size_is][out] */ IHNetBridgedConnection **rgElt,
  2777. /* [out] */ ULONG *pcEltFetched) = 0;
  2778. virtual HRESULT STDMETHODCALLTYPE Skip(
  2779. /* [in] */ ULONG cElt) = 0;
  2780. virtual HRESULT STDMETHODCALLTYPE Reset( void) = 0;
  2781. virtual HRESULT STDMETHODCALLTYPE Clone(
  2782. /* [out] */ IEnumHNetBridgedConnections **ppEnum) = 0;
  2783. };
  2784. #else /* C style interface */
  2785. typedef struct IEnumHNetBridgedConnectionsVtbl
  2786. {
  2787. BEGIN_INTERFACE
  2788. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  2789. IEnumHNetBridgedConnections * This,
  2790. /* [in] */ REFIID riid,
  2791. /* [iid_is][out] */ void **ppvObject);
  2792. ULONG ( STDMETHODCALLTYPE *AddRef )(
  2793. IEnumHNetBridgedConnections * This);
  2794. ULONG ( STDMETHODCALLTYPE *Release )(
  2795. IEnumHNetBridgedConnections * This);
  2796. HRESULT ( STDMETHODCALLTYPE *Next )(
  2797. IEnumHNetBridgedConnections * This,
  2798. /* [in] */ ULONG cElt,
  2799. /* [length_is][size_is][out] */ IHNetBridgedConnection **rgElt,
  2800. /* [out] */ ULONG *pcEltFetched);
  2801. HRESULT ( STDMETHODCALLTYPE *Skip )(
  2802. IEnumHNetBridgedConnections * This,
  2803. /* [in] */ ULONG cElt);
  2804. HRESULT ( STDMETHODCALLTYPE *Reset )(
  2805. IEnumHNetBridgedConnections * This);
  2806. HRESULT ( STDMETHODCALLTYPE *Clone )(
  2807. IEnumHNetBridgedConnections * This,
  2808. /* [out] */ IEnumHNetBridgedConnections **ppEnum);
  2809. END_INTERFACE
  2810. } IEnumHNetBridgedConnectionsVtbl;
  2811. interface IEnumHNetBridgedConnections
  2812. {
  2813. CONST_VTBL struct IEnumHNetBridgedConnectionsVtbl *lpVtbl;
  2814. };
  2815. #ifdef COBJMACROS
  2816. #define IEnumHNetBridgedConnections_QueryInterface(This,riid,ppvObject) \
  2817. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  2818. #define IEnumHNetBridgedConnections_AddRef(This) \
  2819. (This)->lpVtbl -> AddRef(This)
  2820. #define IEnumHNetBridgedConnections_Release(This) \
  2821. (This)->lpVtbl -> Release(This)
  2822. #define IEnumHNetBridgedConnections_Next(This,cElt,rgElt,pcEltFetched) \
  2823. (This)->lpVtbl -> Next(This,cElt,rgElt,pcEltFetched)
  2824. #define IEnumHNetBridgedConnections_Skip(This,cElt) \
  2825. (This)->lpVtbl -> Skip(This,cElt)
  2826. #define IEnumHNetBridgedConnections_Reset(This) \
  2827. (This)->lpVtbl -> Reset(This)
  2828. #define IEnumHNetBridgedConnections_Clone(This,ppEnum) \
  2829. (This)->lpVtbl -> Clone(This,ppEnum)
  2830. #endif /* COBJMACROS */
  2831. #endif /* C style interface */
  2832. HRESULT STDMETHODCALLTYPE IEnumHNetBridgedConnections_Next_Proxy(
  2833. IEnumHNetBridgedConnections * This,
  2834. /* [in] */ ULONG cElt,
  2835. /* [length_is][size_is][out] */ IHNetBridgedConnection **rgElt,
  2836. /* [out] */ ULONG *pcEltFetched);
  2837. void __RPC_STUB IEnumHNetBridgedConnections_Next_Stub(
  2838. IRpcStubBuffer *This,
  2839. IRpcChannelBuffer *_pRpcChannelBuffer,
  2840. PRPC_MESSAGE _pRpcMessage,
  2841. DWORD *_pdwStubPhase);
  2842. HRESULT STDMETHODCALLTYPE IEnumHNetBridgedConnections_Skip_Proxy(
  2843. IEnumHNetBridgedConnections * This,
  2844. /* [in] */ ULONG cElt);
  2845. void __RPC_STUB IEnumHNetBridgedConnections_Skip_Stub(
  2846. IRpcStubBuffer *This,
  2847. IRpcChannelBuffer *_pRpcChannelBuffer,
  2848. PRPC_MESSAGE _pRpcMessage,
  2849. DWORD *_pdwStubPhase);
  2850. HRESULT STDMETHODCALLTYPE IEnumHNetBridgedConnections_Reset_Proxy(
  2851. IEnumHNetBridgedConnections * This);
  2852. void __RPC_STUB IEnumHNetBridgedConnections_Reset_Stub(
  2853. IRpcStubBuffer *This,
  2854. IRpcChannelBuffer *_pRpcChannelBuffer,
  2855. PRPC_MESSAGE _pRpcMessage,
  2856. DWORD *_pdwStubPhase);
  2857. HRESULT STDMETHODCALLTYPE IEnumHNetBridgedConnections_Clone_Proxy(
  2858. IEnumHNetBridgedConnections * This,
  2859. /* [out] */ IEnumHNetBridgedConnections **ppEnum);
  2860. void __RPC_STUB IEnumHNetBridgedConnections_Clone_Stub(
  2861. IRpcStubBuffer *This,
  2862. IRpcChannelBuffer *_pRpcChannelBuffer,
  2863. PRPC_MESSAGE _pRpcMessage,
  2864. DWORD *_pdwStubPhase);
  2865. #endif /* __IEnumHNetBridgedConnections_INTERFACE_DEFINED__ */
  2866. /* interface __MIDL_itf_hnetcfg_0178 */
  2867. /* [local] */
  2868. #ifndef NOTIFYFORMATBUFFERSIZE
  2869. #define NOTIFYFORMATBUFFERSIZE 1024
  2870. #endif
  2871. #ifndef HNWCALLBACKBUFFERSIZE
  2872. #define HNWCALLBACKBUFFERSIZE 1024
  2873. #endif
  2874. typedef VOID (STDMETHODCALLTYPE HNWCALLBACK)(LPCWSTR pszLogEntry, LPARAM lParam);
  2875. typedef HNWCALLBACK *LPHNWCALLBACK;
  2876. HRESULT APIENTRY
  2877. HNetGetShareAndBridgeSettings(
  2878. OUT INetConnection **ppNetPublicConnection,
  2879. OUT INetConnection ***ppNetPrivateConnection,
  2880. OUT BOOLEAN *pbSharePublicConnection,
  2881. OUT BOOLEAN *pbFirewallPublicConnection
  2882. );
  2883. HRESULT APIENTRY
  2884. HNetSetShareAndBridgeSettings(
  2885. IN INetConnection *pNetPublicConnection,
  2886. IN INetConnection *pNetPrivateConnection[],
  2887. IN BOOLEAN bSharePublicConnection,
  2888. IN BOOLEAN bFirewallPublicConnection,
  2889. IN LPHNWCALLBACK lpHnwCallback,
  2890. IN LPARAM lpContext,
  2891. OUT INetConnection **pNetPrivateInterface
  2892. );
  2893. typedef HRESULT (APIENTRY *LPFNHNETSETSHAREANDBRIDGESETTINGS)(
  2894. INetConnection *pNetPublicConnection,
  2895. INetConnection *pNetPrivateConnection[],
  2896. BOOLEAN bSharePublicConnection,
  2897. BOOLEAN bFirewallPublicConnection,
  2898. LPHNWCALLBACK lpHnwCallback,
  2899. LPARAM lpContext,
  2900. INetConnection **pNetPrivateInterface );
  2901. HRESULT APIENTRY
  2902. ObtainIcsErrorConditions(
  2903. IN LPHNWCALLBACK lpHnwCallback,
  2904. IN LPARAM lpContext );
  2905. BOOL APIENTRY
  2906. HNetSharedAccessSettingsDlg(
  2907. IN BOOL fSharedAccessMode,
  2908. IN HWND hwndOwner );
  2909. BOOL APIENTRY
  2910. HNetSharingAndFirewallSettingsDlg(
  2911. IN HWND hwndOwner,
  2912. IN IHNetCfgMgr *pHNetCfgMgr,
  2913. IN BOOL fShowFwOnlySettings,
  2914. IN OPTIONAL IHNetConnection *pHNetConn);
  2915. extern RPC_IF_HANDLE __MIDL_itf_hnetcfg_0178_v0_0_c_ifspec;
  2916. extern RPC_IF_HANDLE __MIDL_itf_hnetcfg_0178_v0_0_s_ifspec;
  2917. /* Additional Prototypes for ALL interfaces */
  2918. /* end of Additional Prototypes */
  2919. #ifdef __cplusplus
  2920. }
  2921. #endif
  2922. #endif