alg.h 61 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600
  1. /*** Autogenerated by WIDL 7.7 from include/alg.idl - Do not edit ***/
  2. #ifdef _WIN32
  3. #ifndef __REQUIRED_RPCNDR_H_VERSION__
  4. #define __REQUIRED_RPCNDR_H_VERSION__ 475
  5. #endif
  6. #include <rpc.h>
  7. #include <rpcndr.h>
  8. #endif
  9. #ifndef COM_NO_WINDOWS_H
  10. #include <windows.h>
  11. #include <ole2.h>
  12. #endif
  13. #ifndef __alg_h__
  14. #define __alg_h__
  15. /* Forward declarations */
  16. #ifndef __IAdapterInfo_FWD_DEFINED__
  17. #define __IAdapterInfo_FWD_DEFINED__
  18. typedef interface IAdapterInfo IAdapterInfo;
  19. #ifdef __cplusplus
  20. interface IAdapterInfo;
  21. #endif /* __cplusplus */
  22. #endif
  23. #ifndef __IPendingProxyConnection_FWD_DEFINED__
  24. #define __IPendingProxyConnection_FWD_DEFINED__
  25. typedef interface IPendingProxyConnection IPendingProxyConnection;
  26. #ifdef __cplusplus
  27. interface IPendingProxyConnection;
  28. #endif /* __cplusplus */
  29. #endif
  30. #ifndef __IDataChannel_FWD_DEFINED__
  31. #define __IDataChannel_FWD_DEFINED__
  32. typedef interface IDataChannel IDataChannel;
  33. #ifdef __cplusplus
  34. interface IDataChannel;
  35. #endif /* __cplusplus */
  36. #endif
  37. #ifndef __IPersistentDataChannel_FWD_DEFINED__
  38. #define __IPersistentDataChannel_FWD_DEFINED__
  39. typedef interface IPersistentDataChannel IPersistentDataChannel;
  40. #ifdef __cplusplus
  41. interface IPersistentDataChannel;
  42. #endif /* __cplusplus */
  43. #endif
  44. #ifndef __IPrimaryControlChannel_FWD_DEFINED__
  45. #define __IPrimaryControlChannel_FWD_DEFINED__
  46. typedef interface IPrimaryControlChannel IPrimaryControlChannel;
  47. #ifdef __cplusplus
  48. interface IPrimaryControlChannel;
  49. #endif /* __cplusplus */
  50. #endif
  51. #ifndef __ISecondaryControlChannel_FWD_DEFINED__
  52. #define __ISecondaryControlChannel_FWD_DEFINED__
  53. typedef interface ISecondaryControlChannel ISecondaryControlChannel;
  54. #ifdef __cplusplus
  55. interface ISecondaryControlChannel;
  56. #endif /* __cplusplus */
  57. #endif
  58. #ifndef __IEnumAdapterInfo_FWD_DEFINED__
  59. #define __IEnumAdapterInfo_FWD_DEFINED__
  60. typedef interface IEnumAdapterInfo IEnumAdapterInfo;
  61. #ifdef __cplusplus
  62. interface IEnumAdapterInfo;
  63. #endif /* __cplusplus */
  64. #endif
  65. #ifndef __IAdapterNotificationSink_FWD_DEFINED__
  66. #define __IAdapterNotificationSink_FWD_DEFINED__
  67. typedef interface IAdapterNotificationSink IAdapterNotificationSink;
  68. #ifdef __cplusplus
  69. interface IAdapterNotificationSink;
  70. #endif /* __cplusplus */
  71. #endif
  72. #ifndef __IApplicationGatewayServices_FWD_DEFINED__
  73. #define __IApplicationGatewayServices_FWD_DEFINED__
  74. typedef interface IApplicationGatewayServices IApplicationGatewayServices;
  75. #ifdef __cplusplus
  76. interface IApplicationGatewayServices;
  77. #endif /* __cplusplus */
  78. #endif
  79. #ifndef __IApplicationGateway_FWD_DEFINED__
  80. #define __IApplicationGateway_FWD_DEFINED__
  81. typedef interface IApplicationGateway IApplicationGateway;
  82. #ifdef __cplusplus
  83. interface IApplicationGateway;
  84. #endif /* __cplusplus */
  85. #endif
  86. #ifndef __ApplicationGatewayServices_FWD_DEFINED__
  87. #define __ApplicationGatewayServices_FWD_DEFINED__
  88. #ifdef __cplusplus
  89. typedef class ApplicationGatewayServices ApplicationGatewayServices;
  90. #else
  91. typedef struct ApplicationGatewayServices ApplicationGatewayServices;
  92. #endif /* defined __cplusplus */
  93. #endif /* defined __ApplicationGatewayServices_FWD_DEFINED__ */
  94. #ifndef __PrimaryControlChannel_FWD_DEFINED__
  95. #define __PrimaryControlChannel_FWD_DEFINED__
  96. #ifdef __cplusplus
  97. typedef class PrimaryControlChannel PrimaryControlChannel;
  98. #else
  99. typedef struct PrimaryControlChannel PrimaryControlChannel;
  100. #endif /* defined __cplusplus */
  101. #endif /* defined __PrimaryControlChannel_FWD_DEFINED__ */
  102. #ifndef __SecondaryControlChannel_FWD_DEFINED__
  103. #define __SecondaryControlChannel_FWD_DEFINED__
  104. #ifdef __cplusplus
  105. typedef class SecondaryControlChannel SecondaryControlChannel;
  106. #else
  107. typedef struct SecondaryControlChannel SecondaryControlChannel;
  108. #endif /* defined __cplusplus */
  109. #endif /* defined __SecondaryControlChannel_FWD_DEFINED__ */
  110. #ifndef __AdapterInfo_FWD_DEFINED__
  111. #define __AdapterInfo_FWD_DEFINED__
  112. #ifdef __cplusplus
  113. typedef class AdapterInfo AdapterInfo;
  114. #else
  115. typedef struct AdapterInfo AdapterInfo;
  116. #endif /* defined __cplusplus */
  117. #endif /* defined __AdapterInfo_FWD_DEFINED__ */
  118. #ifndef __EnumAdapterInfo_FWD_DEFINED__
  119. #define __EnumAdapterInfo_FWD_DEFINED__
  120. #ifdef __cplusplus
  121. typedef class EnumAdapterInfo EnumAdapterInfo;
  122. #else
  123. typedef struct EnumAdapterInfo EnumAdapterInfo;
  124. #endif /* defined __cplusplus */
  125. #endif /* defined __EnumAdapterInfo_FWD_DEFINED__ */
  126. #ifndef __PendingProxyConnection_FWD_DEFINED__
  127. #define __PendingProxyConnection_FWD_DEFINED__
  128. #ifdef __cplusplus
  129. typedef class PendingProxyConnection PendingProxyConnection;
  130. #else
  131. typedef struct PendingProxyConnection PendingProxyConnection;
  132. #endif /* defined __cplusplus */
  133. #endif /* defined __PendingProxyConnection_FWD_DEFINED__ */
  134. #ifndef __DataChannel_FWD_DEFINED__
  135. #define __DataChannel_FWD_DEFINED__
  136. #ifdef __cplusplus
  137. typedef class DataChannel DataChannel;
  138. #else
  139. typedef struct DataChannel DataChannel;
  140. #endif /* defined __cplusplus */
  141. #endif /* defined __DataChannel_FWD_DEFINED__ */
  142. #ifndef __PersistentDataChannel_FWD_DEFINED__
  143. #define __PersistentDataChannel_FWD_DEFINED__
  144. #ifdef __cplusplus
  145. typedef class PersistentDataChannel PersistentDataChannel;
  146. #else
  147. typedef struct PersistentDataChannel PersistentDataChannel;
  148. #endif /* defined __cplusplus */
  149. #endif /* defined __PersistentDataChannel_FWD_DEFINED__ */
  150. /* Headers for imported files */
  151. #include <oaidl.h>
  152. #include <ocidl.h>
  153. #ifdef __cplusplus
  154. extern "C" {
  155. #endif
  156. #include <winapifamily.h>
  157. #if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)
  158. typedef enum _ALG_ADAPTER_TYPE {
  159. eALG_PRIVATE = 0x1,
  160. eALG_BOUNDARY = 0x2,
  161. eALG_FIREWALLED = 0x4
  162. } ALG_ADAPTER_TYPE;
  163. typedef enum _ALG_CAPTURE {
  164. eALG_SOURCE_CAPTURE = 0x1,
  165. eALG_DESTINATION_CAPTURE = 0x2
  166. } ALG_CAPTURE;
  167. typedef enum _ALG_DIRECTION {
  168. eALG_INBOUND = 0x1,
  169. eALG_OUTBOUND = 0x2,
  170. eALG_BOTH = 0x3
  171. } ALG_DIRECTION;
  172. typedef enum _ALG_NOTIFICATION {
  173. eALG_NONE = 0x0,
  174. eALG_SESSION_CREATION = 0x1,
  175. eALG_SESSION_DELETION = 0x2,
  176. eALG_SESSION_BOTH = 0x3
  177. } ALG_NOTIFICATION;
  178. typedef enum _ALG_PROTOCOL {
  179. eALG_TCP = 0x1,
  180. eALG_UDP = 0x2
  181. } ALG_PROTOCOL;
  182. typedef struct _ALG_PRIMARY_CHANNEL_PROPERTIES {
  183. ALG_PROTOCOL eProtocol;
  184. USHORT usCapturePort;
  185. ALG_CAPTURE eCaptureType;
  186. WINBOOL fCaptureInbound;
  187. ULONG ulListeningAddress;
  188. USHORT usListeningPort;
  189. ULONG ulAdapterIndex;
  190. } ALG_PRIMARY_CHANNEL_PROPERTIES;
  191. typedef struct _ALG_SECONDARY_CHANNEL_PROPERTIES {
  192. ALG_PROTOCOL eProtocol;
  193. ULONG ulPrivateAddress;
  194. USHORT usPrivatePort;
  195. ULONG ulPublicAddress;
  196. USHORT usPublicPort;
  197. ULONG ulRemoteAddress;
  198. USHORT usRemotePort;
  199. ULONG ulListenAddress;
  200. USHORT usListenPort;
  201. ALG_DIRECTION eDirection;
  202. WINBOOL fPersistent;
  203. } ALG_SECONDARY_CHANNEL_PROPERTIES;
  204. typedef struct _ALG_DATA_CHANNEL_PROPERTIES {
  205. ALG_PROTOCOL eProtocol;
  206. ULONG ulPrivateAddress;
  207. USHORT usPrivatePort;
  208. ULONG ulPublicAddress;
  209. USHORT usPublicPort;
  210. ULONG ulRemoteAddress;
  211. USHORT usRemotePort;
  212. ALG_DIRECTION eDirection;
  213. ALG_NOTIFICATION eDesiredNotification;
  214. } ALG_DATA_CHANNEL_PROPERTIES;
  215. typedef struct _ALG_PERSISTENT_DATA_CHANNEL_PROPERTIES {
  216. ALG_PROTOCOL eProtocol;
  217. ULONG ulPrivateAddress;
  218. USHORT usPrivatePort;
  219. ULONG ulPublicAddress;
  220. USHORT usPublicPort;
  221. ULONG ulRemoteAddress;
  222. USHORT usRemotePort;
  223. ALG_DIRECTION eDirection;
  224. } ALG_PERSISTENT_DATA_CHANNEL_PROPERTIES;
  225. #define ALG_MAXIMUM_PORT_RANGE_SIZE (10)
  226. /*****************************************************************************
  227. * IAdapterInfo interface
  228. */
  229. #ifndef __IAdapterInfo_INTERFACE_DEFINED__
  230. #define __IAdapterInfo_INTERFACE_DEFINED__
  231. DEFINE_GUID(IID_IAdapterInfo, 0x480bf94a, 0x09fd, 0x4f8a, 0xa3,0xe0, 0xb0,0x70,0x02,0x82,0xd8,0x4d);
  232. #if defined(__cplusplus) && !defined(CINTERFACE)
  233. MIDL_INTERFACE("480bf94a-09fd-4f8a-a3e0-b0700282d84d")
  234. IAdapterInfo : public IUnknown
  235. {
  236. virtual HRESULT STDMETHODCALLTYPE GetAdapterIndex(
  237. ULONG *pulIndex) = 0;
  238. virtual HRESULT STDMETHODCALLTYPE GetAdapterType(
  239. ALG_ADAPTER_TYPE *pAdapterType) = 0;
  240. virtual HRESULT STDMETHODCALLTYPE GetAdapterAddresses(
  241. ULONG *pulAddressCount,
  242. ULONG **prgAddresses) = 0;
  243. };
  244. #ifdef __CRT_UUID_DECL
  245. __CRT_UUID_DECL(IAdapterInfo, 0x480bf94a, 0x09fd, 0x4f8a, 0xa3,0xe0, 0xb0,0x70,0x02,0x82,0xd8,0x4d)
  246. #endif
  247. #else
  248. typedef struct IAdapterInfoVtbl {
  249. BEGIN_INTERFACE
  250. /*** IUnknown methods ***/
  251. HRESULT (STDMETHODCALLTYPE *QueryInterface)(
  252. IAdapterInfo *This,
  253. REFIID riid,
  254. void **ppvObject);
  255. ULONG (STDMETHODCALLTYPE *AddRef)(
  256. IAdapterInfo *This);
  257. ULONG (STDMETHODCALLTYPE *Release)(
  258. IAdapterInfo *This);
  259. /*** IAdapterInfo methods ***/
  260. HRESULT (STDMETHODCALLTYPE *GetAdapterIndex)(
  261. IAdapterInfo *This,
  262. ULONG *pulIndex);
  263. HRESULT (STDMETHODCALLTYPE *GetAdapterType)(
  264. IAdapterInfo *This,
  265. ALG_ADAPTER_TYPE *pAdapterType);
  266. HRESULT (STDMETHODCALLTYPE *GetAdapterAddresses)(
  267. IAdapterInfo *This,
  268. ULONG *pulAddressCount,
  269. ULONG **prgAddresses);
  270. END_INTERFACE
  271. } IAdapterInfoVtbl;
  272. interface IAdapterInfo {
  273. CONST_VTBL IAdapterInfoVtbl* lpVtbl;
  274. };
  275. #ifdef COBJMACROS
  276. #ifndef WIDL_C_INLINE_WRAPPERS
  277. /*** IUnknown methods ***/
  278. #define IAdapterInfo_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
  279. #define IAdapterInfo_AddRef(This) (This)->lpVtbl->AddRef(This)
  280. #define IAdapterInfo_Release(This) (This)->lpVtbl->Release(This)
  281. /*** IAdapterInfo methods ***/
  282. #define IAdapterInfo_GetAdapterIndex(This,pulIndex) (This)->lpVtbl->GetAdapterIndex(This,pulIndex)
  283. #define IAdapterInfo_GetAdapterType(This,pAdapterType) (This)->lpVtbl->GetAdapterType(This,pAdapterType)
  284. #define IAdapterInfo_GetAdapterAddresses(This,pulAddressCount,prgAddresses) (This)->lpVtbl->GetAdapterAddresses(This,pulAddressCount,prgAddresses)
  285. #else
  286. /*** IUnknown methods ***/
  287. static FORCEINLINE HRESULT IAdapterInfo_QueryInterface(IAdapterInfo* This,REFIID riid,void **ppvObject) {
  288. return This->lpVtbl->QueryInterface(This,riid,ppvObject);
  289. }
  290. static FORCEINLINE ULONG IAdapterInfo_AddRef(IAdapterInfo* This) {
  291. return This->lpVtbl->AddRef(This);
  292. }
  293. static FORCEINLINE ULONG IAdapterInfo_Release(IAdapterInfo* This) {
  294. return This->lpVtbl->Release(This);
  295. }
  296. /*** IAdapterInfo methods ***/
  297. static FORCEINLINE HRESULT IAdapterInfo_GetAdapterIndex(IAdapterInfo* This,ULONG *pulIndex) {
  298. return This->lpVtbl->GetAdapterIndex(This,pulIndex);
  299. }
  300. static FORCEINLINE HRESULT IAdapterInfo_GetAdapterType(IAdapterInfo* This,ALG_ADAPTER_TYPE *pAdapterType) {
  301. return This->lpVtbl->GetAdapterType(This,pAdapterType);
  302. }
  303. static FORCEINLINE HRESULT IAdapterInfo_GetAdapterAddresses(IAdapterInfo* This,ULONG *pulAddressCount,ULONG **prgAddresses) {
  304. return This->lpVtbl->GetAdapterAddresses(This,pulAddressCount,prgAddresses);
  305. }
  306. #endif
  307. #endif
  308. #endif
  309. #endif /* __IAdapterInfo_INTERFACE_DEFINED__ */
  310. /*****************************************************************************
  311. * IPendingProxyConnection interface
  312. */
  313. #ifndef __IPendingProxyConnection_INTERFACE_DEFINED__
  314. #define __IPendingProxyConnection_INTERFACE_DEFINED__
  315. DEFINE_GUID(IID_IPendingProxyConnection, 0xb68e5043, 0x3e3d, 0x4cc2, 0xb9,0xc1, 0x5f,0x8f,0x88,0xfe,0xe8,0x1c);
  316. #if defined(__cplusplus) && !defined(CINTERFACE)
  317. MIDL_INTERFACE("b68e5043-3e3d-4cc2-b9c1-5f8f88fee81c")
  318. IPendingProxyConnection : public IUnknown
  319. {
  320. virtual HRESULT STDMETHODCALLTYPE Cancel(
  321. ) = 0;
  322. };
  323. #ifdef __CRT_UUID_DECL
  324. __CRT_UUID_DECL(IPendingProxyConnection, 0xb68e5043, 0x3e3d, 0x4cc2, 0xb9,0xc1, 0x5f,0x8f,0x88,0xfe,0xe8,0x1c)
  325. #endif
  326. #else
  327. typedef struct IPendingProxyConnectionVtbl {
  328. BEGIN_INTERFACE
  329. /*** IUnknown methods ***/
  330. HRESULT (STDMETHODCALLTYPE *QueryInterface)(
  331. IPendingProxyConnection *This,
  332. REFIID riid,
  333. void **ppvObject);
  334. ULONG (STDMETHODCALLTYPE *AddRef)(
  335. IPendingProxyConnection *This);
  336. ULONG (STDMETHODCALLTYPE *Release)(
  337. IPendingProxyConnection *This);
  338. /*** IPendingProxyConnection methods ***/
  339. HRESULT (STDMETHODCALLTYPE *Cancel)(
  340. IPendingProxyConnection *This);
  341. END_INTERFACE
  342. } IPendingProxyConnectionVtbl;
  343. interface IPendingProxyConnection {
  344. CONST_VTBL IPendingProxyConnectionVtbl* lpVtbl;
  345. };
  346. #ifdef COBJMACROS
  347. #ifndef WIDL_C_INLINE_WRAPPERS
  348. /*** IUnknown methods ***/
  349. #define IPendingProxyConnection_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
  350. #define IPendingProxyConnection_AddRef(This) (This)->lpVtbl->AddRef(This)
  351. #define IPendingProxyConnection_Release(This) (This)->lpVtbl->Release(This)
  352. /*** IPendingProxyConnection methods ***/
  353. #define IPendingProxyConnection_Cancel(This) (This)->lpVtbl->Cancel(This)
  354. #else
  355. /*** IUnknown methods ***/
  356. static FORCEINLINE HRESULT IPendingProxyConnection_QueryInterface(IPendingProxyConnection* This,REFIID riid,void **ppvObject) {
  357. return This->lpVtbl->QueryInterface(This,riid,ppvObject);
  358. }
  359. static FORCEINLINE ULONG IPendingProxyConnection_AddRef(IPendingProxyConnection* This) {
  360. return This->lpVtbl->AddRef(This);
  361. }
  362. static FORCEINLINE ULONG IPendingProxyConnection_Release(IPendingProxyConnection* This) {
  363. return This->lpVtbl->Release(This);
  364. }
  365. /*** IPendingProxyConnection methods ***/
  366. static FORCEINLINE HRESULT IPendingProxyConnection_Cancel(IPendingProxyConnection* This) {
  367. return This->lpVtbl->Cancel(This);
  368. }
  369. #endif
  370. #endif
  371. #endif
  372. #endif /* __IPendingProxyConnection_INTERFACE_DEFINED__ */
  373. /*****************************************************************************
  374. * IDataChannel interface
  375. */
  376. #ifndef __IDataChannel_INTERFACE_DEFINED__
  377. #define __IDataChannel_INTERFACE_DEFINED__
  378. DEFINE_GUID(IID_IDataChannel, 0xad42d12a, 0x4ad0, 0x4856, 0x91,0x9e, 0xe8,0x54,0xc9,0x1d,0x18,0x56);
  379. #if defined(__cplusplus) && !defined(CINTERFACE)
  380. MIDL_INTERFACE("ad42d12a-4ad0-4856-919e-e854c91d1856")
  381. IDataChannel : public IUnknown
  382. {
  383. virtual HRESULT STDMETHODCALLTYPE Cancel(
  384. ) = 0;
  385. virtual HRESULT STDMETHODCALLTYPE GetChannelProperties(
  386. ALG_DATA_CHANNEL_PROPERTIES **ppProperties) = 0;
  387. virtual HRESULT STDMETHODCALLTYPE GetSessionCreationEventHandle(
  388. HANDLE *pHandle) = 0;
  389. virtual HRESULT STDMETHODCALLTYPE GetSessionDeletionEventHandle(
  390. HANDLE *pHandle) = 0;
  391. };
  392. #ifdef __CRT_UUID_DECL
  393. __CRT_UUID_DECL(IDataChannel, 0xad42d12a, 0x4ad0, 0x4856, 0x91,0x9e, 0xe8,0x54,0xc9,0x1d,0x18,0x56)
  394. #endif
  395. #else
  396. typedef struct IDataChannelVtbl {
  397. BEGIN_INTERFACE
  398. /*** IUnknown methods ***/
  399. HRESULT (STDMETHODCALLTYPE *QueryInterface)(
  400. IDataChannel *This,
  401. REFIID riid,
  402. void **ppvObject);
  403. ULONG (STDMETHODCALLTYPE *AddRef)(
  404. IDataChannel *This);
  405. ULONG (STDMETHODCALLTYPE *Release)(
  406. IDataChannel *This);
  407. /*** IDataChannel methods ***/
  408. HRESULT (STDMETHODCALLTYPE *Cancel)(
  409. IDataChannel *This);
  410. HRESULT (STDMETHODCALLTYPE *GetChannelProperties)(
  411. IDataChannel *This,
  412. ALG_DATA_CHANNEL_PROPERTIES **ppProperties);
  413. HRESULT (STDMETHODCALLTYPE *GetSessionCreationEventHandle)(
  414. IDataChannel *This,
  415. HANDLE *pHandle);
  416. HRESULT (STDMETHODCALLTYPE *GetSessionDeletionEventHandle)(
  417. IDataChannel *This,
  418. HANDLE *pHandle);
  419. END_INTERFACE
  420. } IDataChannelVtbl;
  421. interface IDataChannel {
  422. CONST_VTBL IDataChannelVtbl* lpVtbl;
  423. };
  424. #ifdef COBJMACROS
  425. #ifndef WIDL_C_INLINE_WRAPPERS
  426. /*** IUnknown methods ***/
  427. #define IDataChannel_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
  428. #define IDataChannel_AddRef(This) (This)->lpVtbl->AddRef(This)
  429. #define IDataChannel_Release(This) (This)->lpVtbl->Release(This)
  430. /*** IDataChannel methods ***/
  431. #define IDataChannel_Cancel(This) (This)->lpVtbl->Cancel(This)
  432. #define IDataChannel_GetChannelProperties(This,ppProperties) (This)->lpVtbl->GetChannelProperties(This,ppProperties)
  433. #define IDataChannel_GetSessionCreationEventHandle(This,pHandle) (This)->lpVtbl->GetSessionCreationEventHandle(This,pHandle)
  434. #define IDataChannel_GetSessionDeletionEventHandle(This,pHandle) (This)->lpVtbl->GetSessionDeletionEventHandle(This,pHandle)
  435. #else
  436. /*** IUnknown methods ***/
  437. static FORCEINLINE HRESULT IDataChannel_QueryInterface(IDataChannel* This,REFIID riid,void **ppvObject) {
  438. return This->lpVtbl->QueryInterface(This,riid,ppvObject);
  439. }
  440. static FORCEINLINE ULONG IDataChannel_AddRef(IDataChannel* This) {
  441. return This->lpVtbl->AddRef(This);
  442. }
  443. static FORCEINLINE ULONG IDataChannel_Release(IDataChannel* This) {
  444. return This->lpVtbl->Release(This);
  445. }
  446. /*** IDataChannel methods ***/
  447. static FORCEINLINE HRESULT IDataChannel_Cancel(IDataChannel* This) {
  448. return This->lpVtbl->Cancel(This);
  449. }
  450. static FORCEINLINE HRESULT IDataChannel_GetChannelProperties(IDataChannel* This,ALG_DATA_CHANNEL_PROPERTIES **ppProperties) {
  451. return This->lpVtbl->GetChannelProperties(This,ppProperties);
  452. }
  453. static FORCEINLINE HRESULT IDataChannel_GetSessionCreationEventHandle(IDataChannel* This,HANDLE *pHandle) {
  454. return This->lpVtbl->GetSessionCreationEventHandle(This,pHandle);
  455. }
  456. static FORCEINLINE HRESULT IDataChannel_GetSessionDeletionEventHandle(IDataChannel* This,HANDLE *pHandle) {
  457. return This->lpVtbl->GetSessionDeletionEventHandle(This,pHandle);
  458. }
  459. #endif
  460. #endif
  461. #endif
  462. #endif /* __IDataChannel_INTERFACE_DEFINED__ */
  463. /*****************************************************************************
  464. * IPersistentDataChannel interface
  465. */
  466. #ifndef __IPersistentDataChannel_INTERFACE_DEFINED__
  467. #define __IPersistentDataChannel_INTERFACE_DEFINED__
  468. DEFINE_GUID(IID_IPersistentDataChannel, 0xa180e934, 0xd92a, 0x415d, 0x91,0x44, 0x75,0x9f,0x80,0x54,0xe8,0xf6);
  469. #if defined(__cplusplus) && !defined(CINTERFACE)
  470. MIDL_INTERFACE("a180e934-d92a-415d-9144-759f8054e8f6")
  471. IPersistentDataChannel : public IUnknown
  472. {
  473. virtual HRESULT STDMETHODCALLTYPE Cancel(
  474. ) = 0;
  475. virtual HRESULT STDMETHODCALLTYPE GetChannelProperties(
  476. ALG_PERSISTENT_DATA_CHANNEL_PROPERTIES **ppProperties) = 0;
  477. };
  478. #ifdef __CRT_UUID_DECL
  479. __CRT_UUID_DECL(IPersistentDataChannel, 0xa180e934, 0xd92a, 0x415d, 0x91,0x44, 0x75,0x9f,0x80,0x54,0xe8,0xf6)
  480. #endif
  481. #else
  482. typedef struct IPersistentDataChannelVtbl {
  483. BEGIN_INTERFACE
  484. /*** IUnknown methods ***/
  485. HRESULT (STDMETHODCALLTYPE *QueryInterface)(
  486. IPersistentDataChannel *This,
  487. REFIID riid,
  488. void **ppvObject);
  489. ULONG (STDMETHODCALLTYPE *AddRef)(
  490. IPersistentDataChannel *This);
  491. ULONG (STDMETHODCALLTYPE *Release)(
  492. IPersistentDataChannel *This);
  493. /*** IPersistentDataChannel methods ***/
  494. HRESULT (STDMETHODCALLTYPE *Cancel)(
  495. IPersistentDataChannel *This);
  496. HRESULT (STDMETHODCALLTYPE *GetChannelProperties)(
  497. IPersistentDataChannel *This,
  498. ALG_PERSISTENT_DATA_CHANNEL_PROPERTIES **ppProperties);
  499. END_INTERFACE
  500. } IPersistentDataChannelVtbl;
  501. interface IPersistentDataChannel {
  502. CONST_VTBL IPersistentDataChannelVtbl* lpVtbl;
  503. };
  504. #ifdef COBJMACROS
  505. #ifndef WIDL_C_INLINE_WRAPPERS
  506. /*** IUnknown methods ***/
  507. #define IPersistentDataChannel_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
  508. #define IPersistentDataChannel_AddRef(This) (This)->lpVtbl->AddRef(This)
  509. #define IPersistentDataChannel_Release(This) (This)->lpVtbl->Release(This)
  510. /*** IPersistentDataChannel methods ***/
  511. #define IPersistentDataChannel_Cancel(This) (This)->lpVtbl->Cancel(This)
  512. #define IPersistentDataChannel_GetChannelProperties(This,ppProperties) (This)->lpVtbl->GetChannelProperties(This,ppProperties)
  513. #else
  514. /*** IUnknown methods ***/
  515. static FORCEINLINE HRESULT IPersistentDataChannel_QueryInterface(IPersistentDataChannel* This,REFIID riid,void **ppvObject) {
  516. return This->lpVtbl->QueryInterface(This,riid,ppvObject);
  517. }
  518. static FORCEINLINE ULONG IPersistentDataChannel_AddRef(IPersistentDataChannel* This) {
  519. return This->lpVtbl->AddRef(This);
  520. }
  521. static FORCEINLINE ULONG IPersistentDataChannel_Release(IPersistentDataChannel* This) {
  522. return This->lpVtbl->Release(This);
  523. }
  524. /*** IPersistentDataChannel methods ***/
  525. static FORCEINLINE HRESULT IPersistentDataChannel_Cancel(IPersistentDataChannel* This) {
  526. return This->lpVtbl->Cancel(This);
  527. }
  528. static FORCEINLINE HRESULT IPersistentDataChannel_GetChannelProperties(IPersistentDataChannel* This,ALG_PERSISTENT_DATA_CHANNEL_PROPERTIES **ppProperties) {
  529. return This->lpVtbl->GetChannelProperties(This,ppProperties);
  530. }
  531. #endif
  532. #endif
  533. #endif
  534. #endif /* __IPersistentDataChannel_INTERFACE_DEFINED__ */
  535. /*****************************************************************************
  536. * IPrimaryControlChannel interface
  537. */
  538. #ifndef __IPrimaryControlChannel_INTERFACE_DEFINED__
  539. #define __IPrimaryControlChannel_INTERFACE_DEFINED__
  540. DEFINE_GUID(IID_IPrimaryControlChannel, 0x1a2e8b62, 0x9012, 0x4be6, 0x84,0xae, 0x32,0xbd,0x66,0xba,0x65,0x7a);
  541. #if defined(__cplusplus) && !defined(CINTERFACE)
  542. MIDL_INTERFACE("1a2e8b62-9012-4be6-84ae-32bd66ba657a")
  543. IPrimaryControlChannel : public IUnknown
  544. {
  545. virtual HRESULT STDMETHODCALLTYPE Cancel(
  546. ) = 0;
  547. virtual HRESULT STDMETHODCALLTYPE GetChannelProperties(
  548. ALG_PRIMARY_CHANNEL_PROPERTIES **ppProperties) = 0;
  549. virtual HRESULT STDMETHODCALLTYPE GetOriginalDestinationInformation(
  550. ULONG ulSourceAddress,
  551. USHORT usSourcePort,
  552. ULONG *pulOriginalDestinationAddress,
  553. USHORT *pusOriginalDestinationPort,
  554. ULONG *pulRemapDestinationAddress,
  555. USHORT *pulRemapDestinationPort,
  556. IAdapterInfo **ppReceiveAdapter) = 0;
  557. };
  558. #ifdef __CRT_UUID_DECL
  559. __CRT_UUID_DECL(IPrimaryControlChannel, 0x1a2e8b62, 0x9012, 0x4be6, 0x84,0xae, 0x32,0xbd,0x66,0xba,0x65,0x7a)
  560. #endif
  561. #else
  562. typedef struct IPrimaryControlChannelVtbl {
  563. BEGIN_INTERFACE
  564. /*** IUnknown methods ***/
  565. HRESULT (STDMETHODCALLTYPE *QueryInterface)(
  566. IPrimaryControlChannel *This,
  567. REFIID riid,
  568. void **ppvObject);
  569. ULONG (STDMETHODCALLTYPE *AddRef)(
  570. IPrimaryControlChannel *This);
  571. ULONG (STDMETHODCALLTYPE *Release)(
  572. IPrimaryControlChannel *This);
  573. /*** IPrimaryControlChannel methods ***/
  574. HRESULT (STDMETHODCALLTYPE *Cancel)(
  575. IPrimaryControlChannel *This);
  576. HRESULT (STDMETHODCALLTYPE *GetChannelProperties)(
  577. IPrimaryControlChannel *This,
  578. ALG_PRIMARY_CHANNEL_PROPERTIES **ppProperties);
  579. HRESULT (STDMETHODCALLTYPE *GetOriginalDestinationInformation)(
  580. IPrimaryControlChannel *This,
  581. ULONG ulSourceAddress,
  582. USHORT usSourcePort,
  583. ULONG *pulOriginalDestinationAddress,
  584. USHORT *pusOriginalDestinationPort,
  585. ULONG *pulRemapDestinationAddress,
  586. USHORT *pulRemapDestinationPort,
  587. IAdapterInfo **ppReceiveAdapter);
  588. END_INTERFACE
  589. } IPrimaryControlChannelVtbl;
  590. interface IPrimaryControlChannel {
  591. CONST_VTBL IPrimaryControlChannelVtbl* lpVtbl;
  592. };
  593. #ifdef COBJMACROS
  594. #ifndef WIDL_C_INLINE_WRAPPERS
  595. /*** IUnknown methods ***/
  596. #define IPrimaryControlChannel_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
  597. #define IPrimaryControlChannel_AddRef(This) (This)->lpVtbl->AddRef(This)
  598. #define IPrimaryControlChannel_Release(This) (This)->lpVtbl->Release(This)
  599. /*** IPrimaryControlChannel methods ***/
  600. #define IPrimaryControlChannel_Cancel(This) (This)->lpVtbl->Cancel(This)
  601. #define IPrimaryControlChannel_GetChannelProperties(This,ppProperties) (This)->lpVtbl->GetChannelProperties(This,ppProperties)
  602. #define IPrimaryControlChannel_GetOriginalDestinationInformation(This,ulSourceAddress,usSourcePort,pulOriginalDestinationAddress,pusOriginalDestinationPort,pulRemapDestinationAddress,pulRemapDestinationPort,ppReceiveAdapter) (This)->lpVtbl->GetOriginalDestinationInformation(This,ulSourceAddress,usSourcePort,pulOriginalDestinationAddress,pusOriginalDestinationPort,pulRemapDestinationAddress,pulRemapDestinationPort,ppReceiveAdapter)
  603. #else
  604. /*** IUnknown methods ***/
  605. static FORCEINLINE HRESULT IPrimaryControlChannel_QueryInterface(IPrimaryControlChannel* This,REFIID riid,void **ppvObject) {
  606. return This->lpVtbl->QueryInterface(This,riid,ppvObject);
  607. }
  608. static FORCEINLINE ULONG IPrimaryControlChannel_AddRef(IPrimaryControlChannel* This) {
  609. return This->lpVtbl->AddRef(This);
  610. }
  611. static FORCEINLINE ULONG IPrimaryControlChannel_Release(IPrimaryControlChannel* This) {
  612. return This->lpVtbl->Release(This);
  613. }
  614. /*** IPrimaryControlChannel methods ***/
  615. static FORCEINLINE HRESULT IPrimaryControlChannel_Cancel(IPrimaryControlChannel* This) {
  616. return This->lpVtbl->Cancel(This);
  617. }
  618. static FORCEINLINE HRESULT IPrimaryControlChannel_GetChannelProperties(IPrimaryControlChannel* This,ALG_PRIMARY_CHANNEL_PROPERTIES **ppProperties) {
  619. return This->lpVtbl->GetChannelProperties(This,ppProperties);
  620. }
  621. static FORCEINLINE HRESULT IPrimaryControlChannel_GetOriginalDestinationInformation(IPrimaryControlChannel* This,ULONG ulSourceAddress,USHORT usSourcePort,ULONG *pulOriginalDestinationAddress,USHORT *pusOriginalDestinationPort,ULONG *pulRemapDestinationAddress,USHORT *pulRemapDestinationPort,IAdapterInfo **ppReceiveAdapter) {
  622. return This->lpVtbl->GetOriginalDestinationInformation(This,ulSourceAddress,usSourcePort,pulOriginalDestinationAddress,pusOriginalDestinationPort,pulRemapDestinationAddress,pulRemapDestinationPort,ppReceiveAdapter);
  623. }
  624. #endif
  625. #endif
  626. #endif
  627. #endif /* __IPrimaryControlChannel_INTERFACE_DEFINED__ */
  628. /*****************************************************************************
  629. * ISecondaryControlChannel interface
  630. */
  631. #ifndef __ISecondaryControlChannel_INTERFACE_DEFINED__
  632. #define __ISecondaryControlChannel_INTERFACE_DEFINED__
  633. DEFINE_GUID(IID_ISecondaryControlChannel, 0xa23f9d10, 0x714c, 0x41fe, 0x84,0x71, 0xff,0xb1,0x9b,0xc2,0x84,0x54);
  634. #if defined(__cplusplus) && !defined(CINTERFACE)
  635. MIDL_INTERFACE("a23f9d10-714c-41fe-8471-ffb19bc28454")
  636. ISecondaryControlChannel : public IUnknown
  637. {
  638. virtual HRESULT STDMETHODCALLTYPE Cancel(
  639. ) = 0;
  640. virtual HRESULT STDMETHODCALLTYPE GetChannelProperties(
  641. ALG_SECONDARY_CHANNEL_PROPERTIES **ppProperties) = 0;
  642. virtual HRESULT STDMETHODCALLTYPE GetOriginalDestinationInformation(
  643. ULONG ulSourceAddress,
  644. USHORT usSourcePort,
  645. ULONG *pulOriginalDestinationAddress,
  646. USHORT *pusOriginalDestinationPort,
  647. IAdapterInfo **ppReceiveAdapter) = 0;
  648. };
  649. #ifdef __CRT_UUID_DECL
  650. __CRT_UUID_DECL(ISecondaryControlChannel, 0xa23f9d10, 0x714c, 0x41fe, 0x84,0x71, 0xff,0xb1,0x9b,0xc2,0x84,0x54)
  651. #endif
  652. #else
  653. typedef struct ISecondaryControlChannelVtbl {
  654. BEGIN_INTERFACE
  655. /*** IUnknown methods ***/
  656. HRESULT (STDMETHODCALLTYPE *QueryInterface)(
  657. ISecondaryControlChannel *This,
  658. REFIID riid,
  659. void **ppvObject);
  660. ULONG (STDMETHODCALLTYPE *AddRef)(
  661. ISecondaryControlChannel *This);
  662. ULONG (STDMETHODCALLTYPE *Release)(
  663. ISecondaryControlChannel *This);
  664. /*** ISecondaryControlChannel methods ***/
  665. HRESULT (STDMETHODCALLTYPE *Cancel)(
  666. ISecondaryControlChannel *This);
  667. HRESULT (STDMETHODCALLTYPE *GetChannelProperties)(
  668. ISecondaryControlChannel *This,
  669. ALG_SECONDARY_CHANNEL_PROPERTIES **ppProperties);
  670. HRESULT (STDMETHODCALLTYPE *GetOriginalDestinationInformation)(
  671. ISecondaryControlChannel *This,
  672. ULONG ulSourceAddress,
  673. USHORT usSourcePort,
  674. ULONG *pulOriginalDestinationAddress,
  675. USHORT *pusOriginalDestinationPort,
  676. IAdapterInfo **ppReceiveAdapter);
  677. END_INTERFACE
  678. } ISecondaryControlChannelVtbl;
  679. interface ISecondaryControlChannel {
  680. CONST_VTBL ISecondaryControlChannelVtbl* lpVtbl;
  681. };
  682. #ifdef COBJMACROS
  683. #ifndef WIDL_C_INLINE_WRAPPERS
  684. /*** IUnknown methods ***/
  685. #define ISecondaryControlChannel_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
  686. #define ISecondaryControlChannel_AddRef(This) (This)->lpVtbl->AddRef(This)
  687. #define ISecondaryControlChannel_Release(This) (This)->lpVtbl->Release(This)
  688. /*** ISecondaryControlChannel methods ***/
  689. #define ISecondaryControlChannel_Cancel(This) (This)->lpVtbl->Cancel(This)
  690. #define ISecondaryControlChannel_GetChannelProperties(This,ppProperties) (This)->lpVtbl->GetChannelProperties(This,ppProperties)
  691. #define ISecondaryControlChannel_GetOriginalDestinationInformation(This,ulSourceAddress,usSourcePort,pulOriginalDestinationAddress,pusOriginalDestinationPort,ppReceiveAdapter) (This)->lpVtbl->GetOriginalDestinationInformation(This,ulSourceAddress,usSourcePort,pulOriginalDestinationAddress,pusOriginalDestinationPort,ppReceiveAdapter)
  692. #else
  693. /*** IUnknown methods ***/
  694. static FORCEINLINE HRESULT ISecondaryControlChannel_QueryInterface(ISecondaryControlChannel* This,REFIID riid,void **ppvObject) {
  695. return This->lpVtbl->QueryInterface(This,riid,ppvObject);
  696. }
  697. static FORCEINLINE ULONG ISecondaryControlChannel_AddRef(ISecondaryControlChannel* This) {
  698. return This->lpVtbl->AddRef(This);
  699. }
  700. static FORCEINLINE ULONG ISecondaryControlChannel_Release(ISecondaryControlChannel* This) {
  701. return This->lpVtbl->Release(This);
  702. }
  703. /*** ISecondaryControlChannel methods ***/
  704. static FORCEINLINE HRESULT ISecondaryControlChannel_Cancel(ISecondaryControlChannel* This) {
  705. return This->lpVtbl->Cancel(This);
  706. }
  707. static FORCEINLINE HRESULT ISecondaryControlChannel_GetChannelProperties(ISecondaryControlChannel* This,ALG_SECONDARY_CHANNEL_PROPERTIES **ppProperties) {
  708. return This->lpVtbl->GetChannelProperties(This,ppProperties);
  709. }
  710. static FORCEINLINE HRESULT ISecondaryControlChannel_GetOriginalDestinationInformation(ISecondaryControlChannel* This,ULONG ulSourceAddress,USHORT usSourcePort,ULONG *pulOriginalDestinationAddress,USHORT *pusOriginalDestinationPort,IAdapterInfo **ppReceiveAdapter) {
  711. return This->lpVtbl->GetOriginalDestinationInformation(This,ulSourceAddress,usSourcePort,pulOriginalDestinationAddress,pusOriginalDestinationPort,ppReceiveAdapter);
  712. }
  713. #endif
  714. #endif
  715. #endif
  716. #endif /* __ISecondaryControlChannel_INTERFACE_DEFINED__ */
  717. /*****************************************************************************
  718. * IEnumAdapterInfo interface
  719. */
  720. #ifndef __IEnumAdapterInfo_INTERFACE_DEFINED__
  721. #define __IEnumAdapterInfo_INTERFACE_DEFINED__
  722. DEFINE_GUID(IID_IEnumAdapterInfo, 0xa23f9d11, 0x714c, 0x41fe, 0x84,0x71, 0xff,0xb1,0x9b,0xc2,0x84,0x54);
  723. #if defined(__cplusplus) && !defined(CINTERFACE)
  724. MIDL_INTERFACE("a23f9d11-714c-41fe-8471-ffb19bc28454")
  725. IEnumAdapterInfo : public IUnknown
  726. {
  727. virtual HRESULT STDMETHODCALLTYPE Next(
  728. ULONG celt,
  729. IAdapterInfo **rgAI,
  730. ULONG *pCeltFetched) = 0;
  731. virtual HRESULT STDMETHODCALLTYPE Skip(
  732. ULONG celt) = 0;
  733. virtual HRESULT STDMETHODCALLTYPE Reset(
  734. ) = 0;
  735. virtual HRESULT STDMETHODCALLTYPE Clone(
  736. IEnumAdapterInfo **ppEnum) = 0;
  737. };
  738. #ifdef __CRT_UUID_DECL
  739. __CRT_UUID_DECL(IEnumAdapterInfo, 0xa23f9d11, 0x714c, 0x41fe, 0x84,0x71, 0xff,0xb1,0x9b,0xc2,0x84,0x54)
  740. #endif
  741. #else
  742. typedef struct IEnumAdapterInfoVtbl {
  743. BEGIN_INTERFACE
  744. /*** IUnknown methods ***/
  745. HRESULT (STDMETHODCALLTYPE *QueryInterface)(
  746. IEnumAdapterInfo *This,
  747. REFIID riid,
  748. void **ppvObject);
  749. ULONG (STDMETHODCALLTYPE *AddRef)(
  750. IEnumAdapterInfo *This);
  751. ULONG (STDMETHODCALLTYPE *Release)(
  752. IEnumAdapterInfo *This);
  753. /*** IEnumAdapterInfo methods ***/
  754. HRESULT (STDMETHODCALLTYPE *Next)(
  755. IEnumAdapterInfo *This,
  756. ULONG celt,
  757. IAdapterInfo **rgAI,
  758. ULONG *pCeltFetched);
  759. HRESULT (STDMETHODCALLTYPE *Skip)(
  760. IEnumAdapterInfo *This,
  761. ULONG celt);
  762. HRESULT (STDMETHODCALLTYPE *Reset)(
  763. IEnumAdapterInfo *This);
  764. HRESULT (STDMETHODCALLTYPE *Clone)(
  765. IEnumAdapterInfo *This,
  766. IEnumAdapterInfo **ppEnum);
  767. END_INTERFACE
  768. } IEnumAdapterInfoVtbl;
  769. interface IEnumAdapterInfo {
  770. CONST_VTBL IEnumAdapterInfoVtbl* lpVtbl;
  771. };
  772. #ifdef COBJMACROS
  773. #ifndef WIDL_C_INLINE_WRAPPERS
  774. /*** IUnknown methods ***/
  775. #define IEnumAdapterInfo_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
  776. #define IEnumAdapterInfo_AddRef(This) (This)->lpVtbl->AddRef(This)
  777. #define IEnumAdapterInfo_Release(This) (This)->lpVtbl->Release(This)
  778. /*** IEnumAdapterInfo methods ***/
  779. #define IEnumAdapterInfo_Next(This,celt,rgAI,pCeltFetched) (This)->lpVtbl->Next(This,celt,rgAI,pCeltFetched)
  780. #define IEnumAdapterInfo_Skip(This,celt) (This)->lpVtbl->Skip(This,celt)
  781. #define IEnumAdapterInfo_Reset(This) (This)->lpVtbl->Reset(This)
  782. #define IEnumAdapterInfo_Clone(This,ppEnum) (This)->lpVtbl->Clone(This,ppEnum)
  783. #else
  784. /*** IUnknown methods ***/
  785. static FORCEINLINE HRESULT IEnumAdapterInfo_QueryInterface(IEnumAdapterInfo* This,REFIID riid,void **ppvObject) {
  786. return This->lpVtbl->QueryInterface(This,riid,ppvObject);
  787. }
  788. static FORCEINLINE ULONG IEnumAdapterInfo_AddRef(IEnumAdapterInfo* This) {
  789. return This->lpVtbl->AddRef(This);
  790. }
  791. static FORCEINLINE ULONG IEnumAdapterInfo_Release(IEnumAdapterInfo* This) {
  792. return This->lpVtbl->Release(This);
  793. }
  794. /*** IEnumAdapterInfo methods ***/
  795. static FORCEINLINE HRESULT IEnumAdapterInfo_Next(IEnumAdapterInfo* This,ULONG celt,IAdapterInfo **rgAI,ULONG *pCeltFetched) {
  796. return This->lpVtbl->Next(This,celt,rgAI,pCeltFetched);
  797. }
  798. static FORCEINLINE HRESULT IEnumAdapterInfo_Skip(IEnumAdapterInfo* This,ULONG celt) {
  799. return This->lpVtbl->Skip(This,celt);
  800. }
  801. static FORCEINLINE HRESULT IEnumAdapterInfo_Reset(IEnumAdapterInfo* This) {
  802. return This->lpVtbl->Reset(This);
  803. }
  804. static FORCEINLINE HRESULT IEnumAdapterInfo_Clone(IEnumAdapterInfo* This,IEnumAdapterInfo **ppEnum) {
  805. return This->lpVtbl->Clone(This,ppEnum);
  806. }
  807. #endif
  808. #endif
  809. #endif
  810. #endif /* __IEnumAdapterInfo_INTERFACE_DEFINED__ */
  811. /*****************************************************************************
  812. * IAdapterNotificationSink interface
  813. */
  814. #ifndef __IAdapterNotificationSink_INTERFACE_DEFINED__
  815. #define __IAdapterNotificationSink_INTERFACE_DEFINED__
  816. DEFINE_GUID(IID_IAdapterNotificationSink, 0x44ab2dc3, 0x23b2, 0x47de, 0x82,0x28, 0x2e,0x1c,0xce,0xeb,0x99,0x11);
  817. #if defined(__cplusplus) && !defined(CINTERFACE)
  818. MIDL_INTERFACE("44ab2dc3-23b2-47de-8228-2e1cceeb9911")
  819. IAdapterNotificationSink : public IUnknown
  820. {
  821. virtual HRESULT STDMETHODCALLTYPE AdapterAdded(
  822. IAdapterInfo *pAdapter) = 0;
  823. virtual HRESULT STDMETHODCALLTYPE AdapterRemoved(
  824. IAdapterInfo *pAdapter) = 0;
  825. virtual HRESULT STDMETHODCALLTYPE AdapterModified(
  826. IAdapterInfo *pAdapter) = 0;
  827. virtual HRESULT STDMETHODCALLTYPE AdapterUpdatePortMapping(
  828. IAdapterInfo *pAdapter) = 0;
  829. };
  830. #ifdef __CRT_UUID_DECL
  831. __CRT_UUID_DECL(IAdapterNotificationSink, 0x44ab2dc3, 0x23b2, 0x47de, 0x82,0x28, 0x2e,0x1c,0xce,0xeb,0x99,0x11)
  832. #endif
  833. #else
  834. typedef struct IAdapterNotificationSinkVtbl {
  835. BEGIN_INTERFACE
  836. /*** IUnknown methods ***/
  837. HRESULT (STDMETHODCALLTYPE *QueryInterface)(
  838. IAdapterNotificationSink *This,
  839. REFIID riid,
  840. void **ppvObject);
  841. ULONG (STDMETHODCALLTYPE *AddRef)(
  842. IAdapterNotificationSink *This);
  843. ULONG (STDMETHODCALLTYPE *Release)(
  844. IAdapterNotificationSink *This);
  845. /*** IAdapterNotificationSink methods ***/
  846. HRESULT (STDMETHODCALLTYPE *AdapterAdded)(
  847. IAdapterNotificationSink *This,
  848. IAdapterInfo *pAdapter);
  849. HRESULT (STDMETHODCALLTYPE *AdapterRemoved)(
  850. IAdapterNotificationSink *This,
  851. IAdapterInfo *pAdapter);
  852. HRESULT (STDMETHODCALLTYPE *AdapterModified)(
  853. IAdapterNotificationSink *This,
  854. IAdapterInfo *pAdapter);
  855. HRESULT (STDMETHODCALLTYPE *AdapterUpdatePortMapping)(
  856. IAdapterNotificationSink *This,
  857. IAdapterInfo *pAdapter);
  858. END_INTERFACE
  859. } IAdapterNotificationSinkVtbl;
  860. interface IAdapterNotificationSink {
  861. CONST_VTBL IAdapterNotificationSinkVtbl* lpVtbl;
  862. };
  863. #ifdef COBJMACROS
  864. #ifndef WIDL_C_INLINE_WRAPPERS
  865. /*** IUnknown methods ***/
  866. #define IAdapterNotificationSink_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
  867. #define IAdapterNotificationSink_AddRef(This) (This)->lpVtbl->AddRef(This)
  868. #define IAdapterNotificationSink_Release(This) (This)->lpVtbl->Release(This)
  869. /*** IAdapterNotificationSink methods ***/
  870. #define IAdapterNotificationSink_AdapterAdded(This,pAdapter) (This)->lpVtbl->AdapterAdded(This,pAdapter)
  871. #define IAdapterNotificationSink_AdapterRemoved(This,pAdapter) (This)->lpVtbl->AdapterRemoved(This,pAdapter)
  872. #define IAdapterNotificationSink_AdapterModified(This,pAdapter) (This)->lpVtbl->AdapterModified(This,pAdapter)
  873. #define IAdapterNotificationSink_AdapterUpdatePortMapping(This,pAdapter) (This)->lpVtbl->AdapterUpdatePortMapping(This,pAdapter)
  874. #else
  875. /*** IUnknown methods ***/
  876. static FORCEINLINE HRESULT IAdapterNotificationSink_QueryInterface(IAdapterNotificationSink* This,REFIID riid,void **ppvObject) {
  877. return This->lpVtbl->QueryInterface(This,riid,ppvObject);
  878. }
  879. static FORCEINLINE ULONG IAdapterNotificationSink_AddRef(IAdapterNotificationSink* This) {
  880. return This->lpVtbl->AddRef(This);
  881. }
  882. static FORCEINLINE ULONG IAdapterNotificationSink_Release(IAdapterNotificationSink* This) {
  883. return This->lpVtbl->Release(This);
  884. }
  885. /*** IAdapterNotificationSink methods ***/
  886. static FORCEINLINE HRESULT IAdapterNotificationSink_AdapterAdded(IAdapterNotificationSink* This,IAdapterInfo *pAdapter) {
  887. return This->lpVtbl->AdapterAdded(This,pAdapter);
  888. }
  889. static FORCEINLINE HRESULT IAdapterNotificationSink_AdapterRemoved(IAdapterNotificationSink* This,IAdapterInfo *pAdapter) {
  890. return This->lpVtbl->AdapterRemoved(This,pAdapter);
  891. }
  892. static FORCEINLINE HRESULT IAdapterNotificationSink_AdapterModified(IAdapterNotificationSink* This,IAdapterInfo *pAdapter) {
  893. return This->lpVtbl->AdapterModified(This,pAdapter);
  894. }
  895. static FORCEINLINE HRESULT IAdapterNotificationSink_AdapterUpdatePortMapping(IAdapterNotificationSink* This,IAdapterInfo *pAdapter) {
  896. return This->lpVtbl->AdapterUpdatePortMapping(This,pAdapter);
  897. }
  898. #endif
  899. #endif
  900. #endif
  901. #endif /* __IAdapterNotificationSink_INTERFACE_DEFINED__ */
  902. /*****************************************************************************
  903. * IApplicationGatewayServices interface
  904. */
  905. #ifndef __IApplicationGatewayServices_INTERFACE_DEFINED__
  906. #define __IApplicationGatewayServices_INTERFACE_DEFINED__
  907. DEFINE_GUID(IID_IApplicationGatewayServices, 0x5134842a, 0xfdce, 0x485d, 0x93,0xcd, 0xde,0x16,0x40,0x64,0x3b,0xbe);
  908. #if defined(__cplusplus) && !defined(CINTERFACE)
  909. MIDL_INTERFACE("5134842a-fdce-485d-93cd-de1640643bbe")
  910. IApplicationGatewayServices : public IUnknown
  911. {
  912. virtual HRESULT STDMETHODCALLTYPE CreatePrimaryControlChannel(
  913. ULONG uAdapterIndex,
  914. ALG_PROTOCOL eProtocol,
  915. USHORT usPortToCapture,
  916. ALG_CAPTURE eCaptureType,
  917. WINBOOL fCaptureInbound,
  918. ULONG ulListenAddress,
  919. USHORT usListenPort,
  920. IPrimaryControlChannel **ppIControlChannel) = 0;
  921. virtual HRESULT STDMETHODCALLTYPE CreateSecondaryControlChannel(
  922. ALG_PROTOCOL eProtocol,
  923. ULONG ulPrivateAddress,
  924. USHORT usPrivatePort,
  925. ULONG ulPublicAddress,
  926. USHORT usPublicPort,
  927. ULONG ulRemoteAddress,
  928. USHORT usRemotePort,
  929. ULONG ulListenAddress,
  930. USHORT usListenPort,
  931. ALG_DIRECTION eDirection,
  932. WINBOOL fPersistent,
  933. ISecondaryControlChannel **ppControlChannel) = 0;
  934. virtual HRESULT STDMETHODCALLTYPE GetBestSourceAddressForDestinationAddress(
  935. ULONG ulDstAddress,
  936. WINBOOL fDemandDial,
  937. ULONG *pulBestSrcAddress) = 0;
  938. virtual HRESULT STDMETHODCALLTYPE PrepareProxyConnection(
  939. ALG_PROTOCOL eProtocol,
  940. ULONG ulSrcAddress,
  941. USHORT usSrcPort,
  942. ULONG ulDstAddress,
  943. USHORT usDstPort,
  944. WINBOOL fNoTimeout,
  945. IPendingProxyConnection **ppPendingConnection) = 0;
  946. virtual HRESULT STDMETHODCALLTYPE PrepareSourceModifiedProxyConnection(
  947. ALG_PROTOCOL eProtocol,
  948. ULONG ulSrcAddress,
  949. USHORT usSrcPort,
  950. ULONG ulDstAddress,
  951. USHORT usDstPort,
  952. ULONG ulNewSrcAddress,
  953. USHORT usNewSourcePort,
  954. IPendingProxyConnection **ppPendingConnection) = 0;
  955. virtual HRESULT STDMETHODCALLTYPE CreateDataChannel(
  956. ALG_PROTOCOL eProtocol,
  957. ULONG ulPrivateAddress,
  958. USHORT usPrivatePort,
  959. ULONG ulPublicAddress,
  960. USHORT usPublicPort,
  961. ULONG ulRemoteAddress,
  962. USHORT usRemotePort,
  963. ALG_DIRECTION eDirection,
  964. ALG_NOTIFICATION eDesiredNotification,
  965. WINBOOL fNoTimeout,
  966. IDataChannel **ppDataChannel) = 0;
  967. virtual HRESULT STDMETHODCALLTYPE CreatePersistentDataChannel(
  968. ALG_PROTOCOL eProtocol,
  969. ULONG ulPrivateAddress,
  970. USHORT usPrivatePort,
  971. ULONG ulPublicAddress,
  972. USHORT usPublicPort,
  973. ULONG ulRemoteAddress,
  974. USHORT usRemotePort,
  975. ALG_DIRECTION eDirection,
  976. IPersistentDataChannel **ppIPersistentDataChannel) = 0;
  977. virtual HRESULT STDMETHODCALLTYPE ReservePort(
  978. USHORT usPortCount,
  979. USHORT *pusReservedPort) = 0;
  980. virtual HRESULT STDMETHODCALLTYPE ReleaseReservedPort(
  981. USHORT usReservedPortBase,
  982. USHORT usPortCount) = 0;
  983. virtual HRESULT STDMETHODCALLTYPE EnumerateAdapters(
  984. IEnumAdapterInfo **ppIEnumAdapterInfo) = 0;
  985. virtual HRESULT STDMETHODCALLTYPE StartAdapterNotifications(
  986. IAdapterNotificationSink *pSink,
  987. DWORD *pdwCookie) = 0;
  988. virtual HRESULT STDMETHODCALLTYPE StopAdapterNotifications(
  989. DWORD dwCookieOfSink) = 0;
  990. virtual HRESULT STDMETHODCALLTYPE LookupAdapterPortMapping(
  991. ULONG ulAdapterIndex,
  992. UCHAR Protocol,
  993. ULONG ulDestinationAddress,
  994. USHORT usDestinationPort,
  995. ULONG *pulRemapAddress,
  996. USHORT *pusRemapPort) = 0;
  997. };
  998. #ifdef __CRT_UUID_DECL
  999. __CRT_UUID_DECL(IApplicationGatewayServices, 0x5134842a, 0xfdce, 0x485d, 0x93,0xcd, 0xde,0x16,0x40,0x64,0x3b,0xbe)
  1000. #endif
  1001. #else
  1002. typedef struct IApplicationGatewayServicesVtbl {
  1003. BEGIN_INTERFACE
  1004. /*** IUnknown methods ***/
  1005. HRESULT (STDMETHODCALLTYPE *QueryInterface)(
  1006. IApplicationGatewayServices *This,
  1007. REFIID riid,
  1008. void **ppvObject);
  1009. ULONG (STDMETHODCALLTYPE *AddRef)(
  1010. IApplicationGatewayServices *This);
  1011. ULONG (STDMETHODCALLTYPE *Release)(
  1012. IApplicationGatewayServices *This);
  1013. /*** IApplicationGatewayServices methods ***/
  1014. HRESULT (STDMETHODCALLTYPE *CreatePrimaryControlChannel)(
  1015. IApplicationGatewayServices *This,
  1016. ULONG uAdapterIndex,
  1017. ALG_PROTOCOL eProtocol,
  1018. USHORT usPortToCapture,
  1019. ALG_CAPTURE eCaptureType,
  1020. WINBOOL fCaptureInbound,
  1021. ULONG ulListenAddress,
  1022. USHORT usListenPort,
  1023. IPrimaryControlChannel **ppIControlChannel);
  1024. HRESULT (STDMETHODCALLTYPE *CreateSecondaryControlChannel)(
  1025. IApplicationGatewayServices *This,
  1026. ALG_PROTOCOL eProtocol,
  1027. ULONG ulPrivateAddress,
  1028. USHORT usPrivatePort,
  1029. ULONG ulPublicAddress,
  1030. USHORT usPublicPort,
  1031. ULONG ulRemoteAddress,
  1032. USHORT usRemotePort,
  1033. ULONG ulListenAddress,
  1034. USHORT usListenPort,
  1035. ALG_DIRECTION eDirection,
  1036. WINBOOL fPersistent,
  1037. ISecondaryControlChannel **ppControlChannel);
  1038. HRESULT (STDMETHODCALLTYPE *GetBestSourceAddressForDestinationAddress)(
  1039. IApplicationGatewayServices *This,
  1040. ULONG ulDstAddress,
  1041. WINBOOL fDemandDial,
  1042. ULONG *pulBestSrcAddress);
  1043. HRESULT (STDMETHODCALLTYPE *PrepareProxyConnection)(
  1044. IApplicationGatewayServices *This,
  1045. ALG_PROTOCOL eProtocol,
  1046. ULONG ulSrcAddress,
  1047. USHORT usSrcPort,
  1048. ULONG ulDstAddress,
  1049. USHORT usDstPort,
  1050. WINBOOL fNoTimeout,
  1051. IPendingProxyConnection **ppPendingConnection);
  1052. HRESULT (STDMETHODCALLTYPE *PrepareSourceModifiedProxyConnection)(
  1053. IApplicationGatewayServices *This,
  1054. ALG_PROTOCOL eProtocol,
  1055. ULONG ulSrcAddress,
  1056. USHORT usSrcPort,
  1057. ULONG ulDstAddress,
  1058. USHORT usDstPort,
  1059. ULONG ulNewSrcAddress,
  1060. USHORT usNewSourcePort,
  1061. IPendingProxyConnection **ppPendingConnection);
  1062. HRESULT (STDMETHODCALLTYPE *CreateDataChannel)(
  1063. IApplicationGatewayServices *This,
  1064. ALG_PROTOCOL eProtocol,
  1065. ULONG ulPrivateAddress,
  1066. USHORT usPrivatePort,
  1067. ULONG ulPublicAddress,
  1068. USHORT usPublicPort,
  1069. ULONG ulRemoteAddress,
  1070. USHORT usRemotePort,
  1071. ALG_DIRECTION eDirection,
  1072. ALG_NOTIFICATION eDesiredNotification,
  1073. WINBOOL fNoTimeout,
  1074. IDataChannel **ppDataChannel);
  1075. HRESULT (STDMETHODCALLTYPE *CreatePersistentDataChannel)(
  1076. IApplicationGatewayServices *This,
  1077. ALG_PROTOCOL eProtocol,
  1078. ULONG ulPrivateAddress,
  1079. USHORT usPrivatePort,
  1080. ULONG ulPublicAddress,
  1081. USHORT usPublicPort,
  1082. ULONG ulRemoteAddress,
  1083. USHORT usRemotePort,
  1084. ALG_DIRECTION eDirection,
  1085. IPersistentDataChannel **ppIPersistentDataChannel);
  1086. HRESULT (STDMETHODCALLTYPE *ReservePort)(
  1087. IApplicationGatewayServices *This,
  1088. USHORT usPortCount,
  1089. USHORT *pusReservedPort);
  1090. HRESULT (STDMETHODCALLTYPE *ReleaseReservedPort)(
  1091. IApplicationGatewayServices *This,
  1092. USHORT usReservedPortBase,
  1093. USHORT usPortCount);
  1094. HRESULT (STDMETHODCALLTYPE *EnumerateAdapters)(
  1095. IApplicationGatewayServices *This,
  1096. IEnumAdapterInfo **ppIEnumAdapterInfo);
  1097. HRESULT (STDMETHODCALLTYPE *StartAdapterNotifications)(
  1098. IApplicationGatewayServices *This,
  1099. IAdapterNotificationSink *pSink,
  1100. DWORD *pdwCookie);
  1101. HRESULT (STDMETHODCALLTYPE *StopAdapterNotifications)(
  1102. IApplicationGatewayServices *This,
  1103. DWORD dwCookieOfSink);
  1104. HRESULT (STDMETHODCALLTYPE *LookupAdapterPortMapping)(
  1105. IApplicationGatewayServices *This,
  1106. ULONG ulAdapterIndex,
  1107. UCHAR Protocol,
  1108. ULONG ulDestinationAddress,
  1109. USHORT usDestinationPort,
  1110. ULONG *pulRemapAddress,
  1111. USHORT *pusRemapPort);
  1112. END_INTERFACE
  1113. } IApplicationGatewayServicesVtbl;
  1114. interface IApplicationGatewayServices {
  1115. CONST_VTBL IApplicationGatewayServicesVtbl* lpVtbl;
  1116. };
  1117. #ifdef COBJMACROS
  1118. #ifndef WIDL_C_INLINE_WRAPPERS
  1119. /*** IUnknown methods ***/
  1120. #define IApplicationGatewayServices_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
  1121. #define IApplicationGatewayServices_AddRef(This) (This)->lpVtbl->AddRef(This)
  1122. #define IApplicationGatewayServices_Release(This) (This)->lpVtbl->Release(This)
  1123. /*** IApplicationGatewayServices methods ***/
  1124. #define IApplicationGatewayServices_CreatePrimaryControlChannel(This,uAdapterIndex,eProtocol,usPortToCapture,eCaptureType,fCaptureInbound,ulListenAddress,usListenPort,ppIControlChannel) (This)->lpVtbl->CreatePrimaryControlChannel(This,uAdapterIndex,eProtocol,usPortToCapture,eCaptureType,fCaptureInbound,ulListenAddress,usListenPort,ppIControlChannel)
  1125. #define IApplicationGatewayServices_CreateSecondaryControlChannel(This,eProtocol,ulPrivateAddress,usPrivatePort,ulPublicAddress,usPublicPort,ulRemoteAddress,usRemotePort,ulListenAddress,usListenPort,eDirection,fPersistent,ppControlChannel) (This)->lpVtbl->CreateSecondaryControlChannel(This,eProtocol,ulPrivateAddress,usPrivatePort,ulPublicAddress,usPublicPort,ulRemoteAddress,usRemotePort,ulListenAddress,usListenPort,eDirection,fPersistent,ppControlChannel)
  1126. #define IApplicationGatewayServices_GetBestSourceAddressForDestinationAddress(This,ulDstAddress,fDemandDial,pulBestSrcAddress) (This)->lpVtbl->GetBestSourceAddressForDestinationAddress(This,ulDstAddress,fDemandDial,pulBestSrcAddress)
  1127. #define IApplicationGatewayServices_PrepareProxyConnection(This,eProtocol,ulSrcAddress,usSrcPort,ulDstAddress,usDstPort,fNoTimeout,ppPendingConnection) (This)->lpVtbl->PrepareProxyConnection(This,eProtocol,ulSrcAddress,usSrcPort,ulDstAddress,usDstPort,fNoTimeout,ppPendingConnection)
  1128. #define IApplicationGatewayServices_PrepareSourceModifiedProxyConnection(This,eProtocol,ulSrcAddress,usSrcPort,ulDstAddress,usDstPort,ulNewSrcAddress,usNewSourcePort,ppPendingConnection) (This)->lpVtbl->PrepareSourceModifiedProxyConnection(This,eProtocol,ulSrcAddress,usSrcPort,ulDstAddress,usDstPort,ulNewSrcAddress,usNewSourcePort,ppPendingConnection)
  1129. #define IApplicationGatewayServices_CreateDataChannel(This,eProtocol,ulPrivateAddress,usPrivatePort,ulPublicAddress,usPublicPort,ulRemoteAddress,usRemotePort,eDirection,eDesiredNotification,fNoTimeout,ppDataChannel) (This)->lpVtbl->CreateDataChannel(This,eProtocol,ulPrivateAddress,usPrivatePort,ulPublicAddress,usPublicPort,ulRemoteAddress,usRemotePort,eDirection,eDesiredNotification,fNoTimeout,ppDataChannel)
  1130. #define IApplicationGatewayServices_CreatePersistentDataChannel(This,eProtocol,ulPrivateAddress,usPrivatePort,ulPublicAddress,usPublicPort,ulRemoteAddress,usRemotePort,eDirection,ppIPersistentDataChannel) (This)->lpVtbl->CreatePersistentDataChannel(This,eProtocol,ulPrivateAddress,usPrivatePort,ulPublicAddress,usPublicPort,ulRemoteAddress,usRemotePort,eDirection,ppIPersistentDataChannel)
  1131. #define IApplicationGatewayServices_ReservePort(This,usPortCount,pusReservedPort) (This)->lpVtbl->ReservePort(This,usPortCount,pusReservedPort)
  1132. #define IApplicationGatewayServices_ReleaseReservedPort(This,usReservedPortBase,usPortCount) (This)->lpVtbl->ReleaseReservedPort(This,usReservedPortBase,usPortCount)
  1133. #define IApplicationGatewayServices_EnumerateAdapters(This,ppIEnumAdapterInfo) (This)->lpVtbl->EnumerateAdapters(This,ppIEnumAdapterInfo)
  1134. #define IApplicationGatewayServices_StartAdapterNotifications(This,pSink,pdwCookie) (This)->lpVtbl->StartAdapterNotifications(This,pSink,pdwCookie)
  1135. #define IApplicationGatewayServices_StopAdapterNotifications(This,dwCookieOfSink) (This)->lpVtbl->StopAdapterNotifications(This,dwCookieOfSink)
  1136. #define IApplicationGatewayServices_LookupAdapterPortMapping(This,ulAdapterIndex,Protocol,ulDestinationAddress,usDestinationPort,pulRemapAddress,pusRemapPort) (This)->lpVtbl->LookupAdapterPortMapping(This,ulAdapterIndex,Protocol,ulDestinationAddress,usDestinationPort,pulRemapAddress,pusRemapPort)
  1137. #else
  1138. /*** IUnknown methods ***/
  1139. static FORCEINLINE HRESULT IApplicationGatewayServices_QueryInterface(IApplicationGatewayServices* This,REFIID riid,void **ppvObject) {
  1140. return This->lpVtbl->QueryInterface(This,riid,ppvObject);
  1141. }
  1142. static FORCEINLINE ULONG IApplicationGatewayServices_AddRef(IApplicationGatewayServices* This) {
  1143. return This->lpVtbl->AddRef(This);
  1144. }
  1145. static FORCEINLINE ULONG IApplicationGatewayServices_Release(IApplicationGatewayServices* This) {
  1146. return This->lpVtbl->Release(This);
  1147. }
  1148. /*** IApplicationGatewayServices methods ***/
  1149. static FORCEINLINE HRESULT IApplicationGatewayServices_CreatePrimaryControlChannel(IApplicationGatewayServices* This,ULONG uAdapterIndex,ALG_PROTOCOL eProtocol,USHORT usPortToCapture,ALG_CAPTURE eCaptureType,WINBOOL fCaptureInbound,ULONG ulListenAddress,USHORT usListenPort,IPrimaryControlChannel **ppIControlChannel) {
  1150. return This->lpVtbl->CreatePrimaryControlChannel(This,uAdapterIndex,eProtocol,usPortToCapture,eCaptureType,fCaptureInbound,ulListenAddress,usListenPort,ppIControlChannel);
  1151. }
  1152. static FORCEINLINE HRESULT IApplicationGatewayServices_CreateSecondaryControlChannel(IApplicationGatewayServices* This,ALG_PROTOCOL eProtocol,ULONG ulPrivateAddress,USHORT usPrivatePort,ULONG ulPublicAddress,USHORT usPublicPort,ULONG ulRemoteAddress,USHORT usRemotePort,ULONG ulListenAddress,USHORT usListenPort,ALG_DIRECTION eDirection,WINBOOL fPersistent,ISecondaryControlChannel **ppControlChannel) {
  1153. return This->lpVtbl->CreateSecondaryControlChannel(This,eProtocol,ulPrivateAddress,usPrivatePort,ulPublicAddress,usPublicPort,ulRemoteAddress,usRemotePort,ulListenAddress,usListenPort,eDirection,fPersistent,ppControlChannel);
  1154. }
  1155. static FORCEINLINE HRESULT IApplicationGatewayServices_GetBestSourceAddressForDestinationAddress(IApplicationGatewayServices* This,ULONG ulDstAddress,WINBOOL fDemandDial,ULONG *pulBestSrcAddress) {
  1156. return This->lpVtbl->GetBestSourceAddressForDestinationAddress(This,ulDstAddress,fDemandDial,pulBestSrcAddress);
  1157. }
  1158. static FORCEINLINE HRESULT IApplicationGatewayServices_PrepareProxyConnection(IApplicationGatewayServices* This,ALG_PROTOCOL eProtocol,ULONG ulSrcAddress,USHORT usSrcPort,ULONG ulDstAddress,USHORT usDstPort,WINBOOL fNoTimeout,IPendingProxyConnection **ppPendingConnection) {
  1159. return This->lpVtbl->PrepareProxyConnection(This,eProtocol,ulSrcAddress,usSrcPort,ulDstAddress,usDstPort,fNoTimeout,ppPendingConnection);
  1160. }
  1161. static FORCEINLINE HRESULT IApplicationGatewayServices_PrepareSourceModifiedProxyConnection(IApplicationGatewayServices* This,ALG_PROTOCOL eProtocol,ULONG ulSrcAddress,USHORT usSrcPort,ULONG ulDstAddress,USHORT usDstPort,ULONG ulNewSrcAddress,USHORT usNewSourcePort,IPendingProxyConnection **ppPendingConnection) {
  1162. return This->lpVtbl->PrepareSourceModifiedProxyConnection(This,eProtocol,ulSrcAddress,usSrcPort,ulDstAddress,usDstPort,ulNewSrcAddress,usNewSourcePort,ppPendingConnection);
  1163. }
  1164. static FORCEINLINE HRESULT IApplicationGatewayServices_CreateDataChannel(IApplicationGatewayServices* This,ALG_PROTOCOL eProtocol,ULONG ulPrivateAddress,USHORT usPrivatePort,ULONG ulPublicAddress,USHORT usPublicPort,ULONG ulRemoteAddress,USHORT usRemotePort,ALG_DIRECTION eDirection,ALG_NOTIFICATION eDesiredNotification,WINBOOL fNoTimeout,IDataChannel **ppDataChannel) {
  1165. return This->lpVtbl->CreateDataChannel(This,eProtocol,ulPrivateAddress,usPrivatePort,ulPublicAddress,usPublicPort,ulRemoteAddress,usRemotePort,eDirection,eDesiredNotification,fNoTimeout,ppDataChannel);
  1166. }
  1167. static FORCEINLINE HRESULT IApplicationGatewayServices_CreatePersistentDataChannel(IApplicationGatewayServices* This,ALG_PROTOCOL eProtocol,ULONG ulPrivateAddress,USHORT usPrivatePort,ULONG ulPublicAddress,USHORT usPublicPort,ULONG ulRemoteAddress,USHORT usRemotePort,ALG_DIRECTION eDirection,IPersistentDataChannel **ppIPersistentDataChannel) {
  1168. return This->lpVtbl->CreatePersistentDataChannel(This,eProtocol,ulPrivateAddress,usPrivatePort,ulPublicAddress,usPublicPort,ulRemoteAddress,usRemotePort,eDirection,ppIPersistentDataChannel);
  1169. }
  1170. static FORCEINLINE HRESULT IApplicationGatewayServices_ReservePort(IApplicationGatewayServices* This,USHORT usPortCount,USHORT *pusReservedPort) {
  1171. return This->lpVtbl->ReservePort(This,usPortCount,pusReservedPort);
  1172. }
  1173. static FORCEINLINE HRESULT IApplicationGatewayServices_ReleaseReservedPort(IApplicationGatewayServices* This,USHORT usReservedPortBase,USHORT usPortCount) {
  1174. return This->lpVtbl->ReleaseReservedPort(This,usReservedPortBase,usPortCount);
  1175. }
  1176. static FORCEINLINE HRESULT IApplicationGatewayServices_EnumerateAdapters(IApplicationGatewayServices* This,IEnumAdapterInfo **ppIEnumAdapterInfo) {
  1177. return This->lpVtbl->EnumerateAdapters(This,ppIEnumAdapterInfo);
  1178. }
  1179. static FORCEINLINE HRESULT IApplicationGatewayServices_StartAdapterNotifications(IApplicationGatewayServices* This,IAdapterNotificationSink *pSink,DWORD *pdwCookie) {
  1180. return This->lpVtbl->StartAdapterNotifications(This,pSink,pdwCookie);
  1181. }
  1182. static FORCEINLINE HRESULT IApplicationGatewayServices_StopAdapterNotifications(IApplicationGatewayServices* This,DWORD dwCookieOfSink) {
  1183. return This->lpVtbl->StopAdapterNotifications(This,dwCookieOfSink);
  1184. }
  1185. static FORCEINLINE HRESULT IApplicationGatewayServices_LookupAdapterPortMapping(IApplicationGatewayServices* This,ULONG ulAdapterIndex,UCHAR Protocol,ULONG ulDestinationAddress,USHORT usDestinationPort,ULONG *pulRemapAddress,USHORT *pusRemapPort) {
  1186. return This->lpVtbl->LookupAdapterPortMapping(This,ulAdapterIndex,Protocol,ulDestinationAddress,usDestinationPort,pulRemapAddress,pusRemapPort);
  1187. }
  1188. #endif
  1189. #endif
  1190. #endif
  1191. #endif /* __IApplicationGatewayServices_INTERFACE_DEFINED__ */
  1192. /*****************************************************************************
  1193. * IApplicationGateway interface
  1194. */
  1195. #ifndef __IApplicationGateway_INTERFACE_DEFINED__
  1196. #define __IApplicationGateway_INTERFACE_DEFINED__
  1197. DEFINE_GUID(IID_IApplicationGateway, 0x5134842b, 0xfdce, 0x485d, 0x93,0xcd, 0xde,0x16,0x40,0x64,0x3b,0xbe);
  1198. #if defined(__cplusplus) && !defined(CINTERFACE)
  1199. MIDL_INTERFACE("5134842b-fdce-485d-93cd-de1640643bbe")
  1200. IApplicationGateway : public IUnknown
  1201. {
  1202. virtual HRESULT STDMETHODCALLTYPE Initialize(
  1203. IApplicationGatewayServices *pAlgServices) = 0;
  1204. virtual HRESULT STDMETHODCALLTYPE Stop(
  1205. ) = 0;
  1206. };
  1207. #ifdef __CRT_UUID_DECL
  1208. __CRT_UUID_DECL(IApplicationGateway, 0x5134842b, 0xfdce, 0x485d, 0x93,0xcd, 0xde,0x16,0x40,0x64,0x3b,0xbe)
  1209. #endif
  1210. #else
  1211. typedef struct IApplicationGatewayVtbl {
  1212. BEGIN_INTERFACE
  1213. /*** IUnknown methods ***/
  1214. HRESULT (STDMETHODCALLTYPE *QueryInterface)(
  1215. IApplicationGateway *This,
  1216. REFIID riid,
  1217. void **ppvObject);
  1218. ULONG (STDMETHODCALLTYPE *AddRef)(
  1219. IApplicationGateway *This);
  1220. ULONG (STDMETHODCALLTYPE *Release)(
  1221. IApplicationGateway *This);
  1222. /*** IApplicationGateway methods ***/
  1223. HRESULT (STDMETHODCALLTYPE *Initialize)(
  1224. IApplicationGateway *This,
  1225. IApplicationGatewayServices *pAlgServices);
  1226. HRESULT (STDMETHODCALLTYPE *Stop)(
  1227. IApplicationGateway *This);
  1228. END_INTERFACE
  1229. } IApplicationGatewayVtbl;
  1230. interface IApplicationGateway {
  1231. CONST_VTBL IApplicationGatewayVtbl* lpVtbl;
  1232. };
  1233. #ifdef COBJMACROS
  1234. #ifndef WIDL_C_INLINE_WRAPPERS
  1235. /*** IUnknown methods ***/
  1236. #define IApplicationGateway_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
  1237. #define IApplicationGateway_AddRef(This) (This)->lpVtbl->AddRef(This)
  1238. #define IApplicationGateway_Release(This) (This)->lpVtbl->Release(This)
  1239. /*** IApplicationGateway methods ***/
  1240. #define IApplicationGateway_Initialize(This,pAlgServices) (This)->lpVtbl->Initialize(This,pAlgServices)
  1241. #define IApplicationGateway_Stop(This) (This)->lpVtbl->Stop(This)
  1242. #else
  1243. /*** IUnknown methods ***/
  1244. static FORCEINLINE HRESULT IApplicationGateway_QueryInterface(IApplicationGateway* This,REFIID riid,void **ppvObject) {
  1245. return This->lpVtbl->QueryInterface(This,riid,ppvObject);
  1246. }
  1247. static FORCEINLINE ULONG IApplicationGateway_AddRef(IApplicationGateway* This) {
  1248. return This->lpVtbl->AddRef(This);
  1249. }
  1250. static FORCEINLINE ULONG IApplicationGateway_Release(IApplicationGateway* This) {
  1251. return This->lpVtbl->Release(This);
  1252. }
  1253. /*** IApplicationGateway methods ***/
  1254. static FORCEINLINE HRESULT IApplicationGateway_Initialize(IApplicationGateway* This,IApplicationGatewayServices *pAlgServices) {
  1255. return This->lpVtbl->Initialize(This,pAlgServices);
  1256. }
  1257. static FORCEINLINE HRESULT IApplicationGateway_Stop(IApplicationGateway* This) {
  1258. return This->lpVtbl->Stop(This);
  1259. }
  1260. #endif
  1261. #endif
  1262. #endif
  1263. #endif /* __IApplicationGateway_INTERFACE_DEFINED__ */
  1264. #ifndef __ALGLib_LIBRARY_DEFINED__
  1265. #define __ALGLib_LIBRARY_DEFINED__
  1266. DEFINE_GUID(LIBID_ALGLib, 0xb6d1d098, 0xe235, 0x4b99, 0xba,0x98, 0x7c,0x62,0x4f,0xd8,0x75,0xdb);
  1267. /*****************************************************************************
  1268. * ApplicationGatewayServices coclass
  1269. */
  1270. DEFINE_GUID(CLSID_ApplicationGatewayServices, 0xf8ade1d3, 0x49df, 0x4b75, 0x90,0x05, 0xef,0x95,0x08,0xe6,0xa3,0x37);
  1271. #ifdef __cplusplus
  1272. class DECLSPEC_UUID("f8ade1d3-49df-4b75-9005-ef9508e6a337") ApplicationGatewayServices;
  1273. #ifdef __CRT_UUID_DECL
  1274. __CRT_UUID_DECL(ApplicationGatewayServices, 0xf8ade1d3, 0x49df, 0x4b75, 0x90,0x05, 0xef,0x95,0x08,0xe6,0xa3,0x37)
  1275. #endif
  1276. #endif
  1277. /*****************************************************************************
  1278. * PrimaryControlChannel coclass
  1279. */
  1280. DEFINE_GUID(CLSID_PrimaryControlChannel, 0x3ceb5509, 0xc1cd, 0x432f, 0x9d,0x8f, 0x65,0xd1,0xe2,0x86,0xaa,0x80);
  1281. #ifdef __cplusplus
  1282. class DECLSPEC_UUID("3ceb5509-c1cd-432f-9d8f-65d1e286aa80") PrimaryControlChannel;
  1283. #ifdef __CRT_UUID_DECL
  1284. __CRT_UUID_DECL(PrimaryControlChannel, 0x3ceb5509, 0xc1cd, 0x432f, 0x9d,0x8f, 0x65,0xd1,0xe2,0x86,0xaa,0x80)
  1285. #endif
  1286. #endif
  1287. /*****************************************************************************
  1288. * SecondaryControlChannel coclass
  1289. */
  1290. DEFINE_GUID(CLSID_SecondaryControlChannel, 0x7b3181a0, 0xc92f, 0x4567, 0xb0,0xfa, 0xcd,0x9a,0x10,0xec,0xd7,0xd1);
  1291. #ifdef __cplusplus
  1292. class DECLSPEC_UUID("7b3181a0-c92f-4567-b0fa-cd9a10ecd7d1") SecondaryControlChannel;
  1293. #ifdef __CRT_UUID_DECL
  1294. __CRT_UUID_DECL(SecondaryControlChannel, 0x7b3181a0, 0xc92f, 0x4567, 0xb0,0xfa, 0xcd,0x9a,0x10,0xec,0xd7,0xd1)
  1295. #endif
  1296. #endif
  1297. /*****************************************************************************
  1298. * AdapterInfo coclass
  1299. */
  1300. DEFINE_GUID(CLSID_AdapterInfo, 0x6f9942c9, 0xc1b1, 0x4ab5, 0x93,0xda, 0x60,0x58,0x99,0x1d,0xc8,0xf3);
  1301. #ifdef __cplusplus
  1302. class DECLSPEC_UUID("6f9942c9-c1b1-4ab5-93da-6058991dc8f3") AdapterInfo;
  1303. #ifdef __CRT_UUID_DECL
  1304. __CRT_UUID_DECL(AdapterInfo, 0x6f9942c9, 0xc1b1, 0x4ab5, 0x93,0xda, 0x60,0x58,0x99,0x1d,0xc8,0xf3)
  1305. #endif
  1306. #endif
  1307. /*****************************************************************************
  1308. * EnumAdapterInfo coclass
  1309. */
  1310. DEFINE_GUID(CLSID_EnumAdapterInfo, 0x6f9942ca, 0xc1b1, 0x4ab5, 0x93,0xda, 0x60,0x58,0x99,0x1d,0xc8,0xf3);
  1311. #ifdef __cplusplus
  1312. class DECLSPEC_UUID("6f9942ca-c1b1-4ab5-93da-6058991dc8f3") EnumAdapterInfo;
  1313. #ifdef __CRT_UUID_DECL
  1314. __CRT_UUID_DECL(EnumAdapterInfo, 0x6f9942ca, 0xc1b1, 0x4ab5, 0x93,0xda, 0x60,0x58,0x99,0x1d,0xc8,0xf3)
  1315. #endif
  1316. #endif
  1317. /*****************************************************************************
  1318. * PendingProxyConnection coclass
  1319. */
  1320. DEFINE_GUID(CLSID_PendingProxyConnection, 0xd8a68e5e, 0x2b37, 0x426c, 0xa3,0x29, 0xc1,0x17,0xc1,0x4c,0x42,0x9e);
  1321. #ifdef __cplusplus
  1322. class DECLSPEC_UUID("d8a68e5e-2b37-426c-a329-c117c14c429e") PendingProxyConnection;
  1323. #ifdef __CRT_UUID_DECL
  1324. __CRT_UUID_DECL(PendingProxyConnection, 0xd8a68e5e, 0x2b37, 0x426c, 0xa3,0x29, 0xc1,0x17,0xc1,0x4c,0x42,0x9e)
  1325. #endif
  1326. #endif
  1327. /*****************************************************************************
  1328. * DataChannel coclass
  1329. */
  1330. DEFINE_GUID(CLSID_DataChannel, 0xbbb36f15, 0x408d, 0x4056, 0x8c,0x27, 0x92,0x08,0x43,0xd4,0x0b,0xe5);
  1331. #ifdef __cplusplus
  1332. class DECLSPEC_UUID("bbb36f15-408d-4056-8c27-920843d40be5") DataChannel;
  1333. #ifdef __CRT_UUID_DECL
  1334. __CRT_UUID_DECL(DataChannel, 0xbbb36f15, 0x408d, 0x4056, 0x8c,0x27, 0x92,0x08,0x43,0xd4,0x0b,0xe5)
  1335. #endif
  1336. #endif
  1337. /*****************************************************************************
  1338. * PersistentDataChannel coclass
  1339. */
  1340. DEFINE_GUID(CLSID_PersistentDataChannel, 0xbc9b54ab, 0x7883, 0x4c13, 0x90,0x9f, 0x03,0x3d,0x03,0x26,0x79,0x90);
  1341. #ifdef __cplusplus
  1342. class DECLSPEC_UUID("bc9b54ab-7883-4c13-909f-033d03267990") PersistentDataChannel;
  1343. #ifdef __CRT_UUID_DECL
  1344. __CRT_UUID_DECL(PersistentDataChannel, 0xbc9b54ab, 0x7883, 0x4c13, 0x90,0x9f, 0x03,0x3d,0x03,0x26,0x79,0x90)
  1345. #endif
  1346. #endif
  1347. #endif /* __ALGLib_LIBRARY_DEFINED__ */
  1348. #endif
  1349. /* Begin additional prototypes for all interfaces */
  1350. /* End additional prototypes */
  1351. #ifdef __cplusplus
  1352. }
  1353. #endif
  1354. #endif /* __alg_h__ */