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

619 lines
22 KiB

  1. /*==========================================================================;
  2. *
  3. * Copyright (C) 2000-2002 Microsoft Corporation. All Rights Reserved.
  4. *
  5. * File: dpaddr.h
  6. * Content: DirectPlayAddress include file
  7. //@@BEGIN_MSINTERNAL
  8. * History:
  9. * Date By Reason
  10. * ==========================
  11. * 01/31/2000 rmt created
  12. * 02/12/2000 rmt Split Get into GetByIndex and GetByName
  13. * 02/14/2000 vanceo Hid remaining references to Internal
  14. * 02/17/2000 rmt Added dnet header def and removed error codes (see dplay8.h for error codes for them)
  15. * 02/21/2000 rmt Cleared out redundant interfaces, added defines, added new macros
  16. * 03/22/2000 rmt Updated to add SetEqual, BuildFromDPAddress and new ANSI data type
  17. * 03/24/2000 rmt Added IsEqual function
  18. * 05/04/2000 rmt Bug #34155 - Incorrect defines
  19. * 06/09/00 rmt Updates to split CLSID and allow whistler compat and support external create funcs
  20. * 08/03/2000 rmt Bug #41246 - Remove IP versions of Duplicate, SetEqual, IsEqual, BuildURL
  21. * 08/07/2000 rmt Bug #41185 - Header Cleanup
  22. * 03/17/2001 rmt WINBUG #342420 - Commented out create functions
  23. * 10/08/2001 vanceo Add scope component
  24. * 11/06/2001 vanceo Add processor component
  25. //@@END_MSINTERNAL
  26. ***************************************************************************/
  27. #ifndef __DIRECTPLAYADDRESS__
  28. #define __DIRECTPLAYADDRESS__
  29. //@@BEGIN_MSINTERNAL
  30. #ifdef _XBOX
  31. #ifdef XBOX_ON_DESKTOP
  32. #include <ole2.h> // for DECLARE_INTERFACE_ and HRESULT
  33. #endif // XBOX_ON_DESKTOP
  34. #undef DECLARE_INTERFACE_
  35. #define DECLARE_INTERFACE_(iface, baseiface) DECLARE_INTERFACE(iface)
  36. #else // ! _XBOX
  37. //@@END_MSINTERNAL
  38. #include <ole2.h> // for DECLARE_INTERFACE_ and HRESULT
  39. //@@BEGIN_MSINTERNAL
  40. #endif // ! _XBOX
  41. //@@END_MSINTERNAL
  42. #ifdef __cplusplus
  43. extern "C" {
  44. #endif
  45. #include "dplay8.h"
  46. //@@BEGIN_MSINTERNAL
  47. #ifndef _XBOX
  48. //@@END_MSINTERNAL
  49. /****************************************************************************
  50. *
  51. * DirectPlay8Address CLSIDs
  52. *
  53. ****************************************************************************/
  54. // {934A9523-A3CA-4bc5-ADA0-D6D95D979421}
  55. DEFINE_GUID(CLSID_DirectPlay8Address,
  56. 0x934a9523, 0xa3ca, 0x4bc5, 0xad, 0xa0, 0xd6, 0xd9, 0x5d, 0x97, 0x94, 0x21);
  57. //@@BEGIN_MSINTERNAL
  58. #endif // ! _XBOX
  59. //@@END_MSINTERNAL
  60. /****************************************************************************
  61. *
  62. * DirectPlay8Address Interface IIDs
  63. *
  64. ****************************************************************************/
  65. //@@BEGIN_MSINTERNAL
  66. #ifdef _XBOX
  67. typedef DWORD DPNAREFIID;
  68. #define IID_IDirectPlay8Address 0x80000001
  69. #define IID_IDirectPlay8AddressIP 0x80000002
  70. #else // ! _XBOX
  71. //@@END_MSINTERNAL
  72. typedef REFIID DPNAREFIID;
  73. // {83783300-4063-4c8a-9DB3-82830A7FEB31}
  74. DEFINE_GUID(IID_IDirectPlay8Address,
  75. 0x83783300, 0x4063, 0x4c8a, 0x9d, 0xb3, 0x82, 0x83, 0xa, 0x7f, 0xeb, 0x31);
  76. // {E5A0E990-2BAD-430b-87DA-A142CF75DE58}
  77. DEFINE_GUID(IID_IDirectPlay8AddressIP,
  78. 0xe5a0e990, 0x2bad, 0x430b, 0x87, 0xda, 0xa1, 0x42, 0xcf, 0x75, 0xde, 0x58);
  79. //@@BEGIN_MSINTERNAL
  80. #endif // ! _XBOX
  81. //@@END_MSINTERNAL
  82. /****************************************************************************
  83. *
  84. * DirectPlay8Address Interface Pointer definitions
  85. *
  86. ****************************************************************************/
  87. typedef struct IDirectPlay8Address *PDIRECTPLAY8ADDRESS, *LPDIRECTPLAY8ADDRESS;
  88. typedef struct IDirectPlay8AddressIP *PDIRECTPLAY8ADDRESSIP, *LPDIRECTPLAY8ADDRESSIP;
  89. /****************************************************************************
  90. *
  91. * DirectPlay8Address Forward Declarations For External Types
  92. *
  93. ****************************************************************************/
  94. typedef struct sockaddr SOCKADDR;
  95. //@@BEGIN_MSINTERNAL
  96. #ifdef XBOX_ON_DESKTOP
  97. typedef struct _XNADDR XNADDR;
  98. #endif // XBOX_ON_DESKTOP
  99. //@@END_MSINTERNAL
  100. /****************************************************************************
  101. *
  102. * DirectPlay8Address Constants
  103. *
  104. ****************************************************************************/
  105. //
  106. // Asynchronous operation flags
  107. //
  108. #define DPNA_DATATYPE_STRING 0x00000001
  109. #define DPNA_DATATYPE_DWORD 0x00000002
  110. #define DPNA_DATATYPE_GUID 0x00000003
  111. #define DPNA_DATATYPE_BINARY 0x00000004
  112. #define DPNA_DATATYPE_STRING_ANSI 0x00000005
  113. #define DPNA_DPNSVR_PORT 6073
  114. #define DPNA_INDEX_INVALID 0xFFFFFFFF
  115. /****************************************************************************
  116. *
  117. * DirectPlay8Address Address Elements
  118. *
  119. ****************************************************************************/
  120. #define DPNA_SEPARATOR_KEYVALUE L'='
  121. #define DPNA_SEPARATOR_USERDATA L'#'
  122. #define DPNA_SEPARATOR_COMPONENT L';'
  123. #define DPNA_ESCAPECHAR L'%'
  124. // Header
  125. #define DPNA_HEADER L"x-directplay:/"
  126. // key names for address components
  127. //@@BEGIN_MSINTERNAL
  128. #ifndef DPNBUILD_NOLOBBY
  129. //@@END_MSINTERNAL
  130. #define DPNA_KEY_APPLICATION_INSTANCE L"applicationinstance"
  131. //@@BEGIN_MSINTERNAL
  132. #endif // ! DPNBUILD_NOLOBBY
  133. #ifndef DPNBUILD_ONLYONEADAPTER
  134. //@@END_MSINTERNAL
  135. #define DPNA_KEY_DEVICE L"device"
  136. //@@BEGIN_MSINTERNAL
  137. #endif // ! DPNBUILD_ONLYONEADAPTER
  138. //@@END_MSINTERNAL
  139. #define DPNA_KEY_HOSTNAME L"hostname"
  140. #define DPNA_KEY_PORT L"port"
  141. //@@BEGIN_MSINTERNAL
  142. #ifndef DPNBUILD_ONLYONEPROCESSOR
  143. //@@END_MSINTERNAL
  144. #define DPNA_KEY_PROCESSOR L"processor"
  145. //@@BEGIN_MSINTERNAL
  146. #endif // ! DPNBUILD_ONLYONEPROCESSOR
  147. #ifndef DPNBUILD_NOLOBBY
  148. //@@END_MSINTERNAL
  149. #define DPNA_KEY_PROGRAM L"program"
  150. //@@BEGIN_MSINTERNAL
  151. #endif // ! DPNBUILD_NOLOBBY
  152. //@@END_MSINTERNAL
  153. #define DPNA_KEY_PROVIDER L"provider"
  154. //@@BEGIN_MSINTERNAL
  155. #ifndef DPNBUILD_NOMULTICAST
  156. //@@END_MSINTERNAL
  157. #define DPNA_KEY_SCOPE L"scope"
  158. //@@BEGIN_MSINTERNAL
  159. #endif // ! DPNBUILD_NOMULTICAST
  160. #ifndef DPNBUILD_NONATHELP
  161. //@@END_MSINTERNAL
  162. #define DPNA_KEY_TRAVERSALMODE L"traversalmode"
  163. //@@BEGIN_MSINTERNAL
  164. #endif // ! DPNBUILD_NONATHELP
  165. //@@END_MSINTERNAL
  166. //@@BEGIN_MSINTERNAL
  167. #ifndef DPNBUILD_NOSERIALSP
  168. //@@END_MSINTERNAL
  169. #define DPNA_KEY_BAUD L"baud"
  170. #define DPNA_KEY_FLOWCONTROL L"flowcontrol"
  171. #define DPNA_KEY_PARITY L"parity"
  172. #define DPNA_KEY_PHONENUMBER L"phonenumber"
  173. #define DPNA_KEY_STOPBITS L"stopbits"
  174. // values for baud rate
  175. #define DPNA_BAUD_RATE_9600 9600
  176. #define DPNA_BAUD_RATE_14400 14400
  177. #define DPNA_BAUD_RATE_19200 19200
  178. #define DPNA_BAUD_RATE_38400 38400
  179. #define DPNA_BAUD_RATE_56000 56000
  180. #define DPNA_BAUD_RATE_57600 57600
  181. #define DPNA_BAUD_RATE_115200 115200
  182. // values for stop bits
  183. #define DPNA_STOP_BITS_ONE L"1"
  184. #define DPNA_STOP_BITS_ONE_FIVE L"1.5"
  185. #define DPNA_STOP_BITS_TWO L"2"
  186. // values for parity
  187. #define DPNA_PARITY_NONE L"NONE"
  188. #define DPNA_PARITY_EVEN L"EVEN"
  189. #define DPNA_PARITY_ODD L"ODD"
  190. #define DPNA_PARITY_MARK L"MARK"
  191. #define DPNA_PARITY_SPACE L"SPACE"
  192. // values for flow control
  193. #define DPNA_FLOW_CONTROL_NONE L"NONE"
  194. #define DPNA_FLOW_CONTROL_XONXOFF L"XONXOFF"
  195. #define DPNA_FLOW_CONTROL_RTS L"RTS"
  196. #define DPNA_FLOW_CONTROL_DTR L"DTR"
  197. #define DPNA_FLOW_CONTROL_RTSDTR L"RTSDTR"
  198. //@@BEGIN_MSINTERNAL
  199. #endif // ! DPNBUILD_NOSERIALSP
  200. #ifndef DPNBUILD_NONATHELP
  201. //@@END_MSINTERNAL
  202. // values for traversal mode
  203. #define DPNA_TRAVERSALMODE_NONE 0
  204. #define DPNA_TRAVERSALMODE_PORTREQUIRED 1
  205. #define DPNA_TRAVERSALMODE_PORTRECOMMENDED 2
  206. //@@BEGIN_MSINTERNAL
  207. #endif // ! DPNBUILD_NONATHELP
  208. //@@END_MSINTERNAL
  209. //@@BEGIN_MSINTERNAL
  210. #ifndef DPNBUILD_ONLYONESP
  211. //@@END_MSINTERNAL
  212. // Shortcut values
  213. //
  214. // These can be used instead of the corresponding CLSID_DP8SP_XXXX guids
  215. //
  216. #define DPNA_VALUE_TCPIPPROVIDER L"IP"
  217. //@@BEGIN_MSINTERNAL
  218. #ifndef DPNBUILD_NOIPX
  219. //@@END_MSINTERNAL
  220. #define DPNA_VALUE_IPXPROVIDER L"IPX"
  221. //@@BEGIN_MSINTERNAL
  222. #endif // ! DPNBUILD_NOIPX
  223. //@@END_MSINTERNAL
  224. //@@BEGIN_MSINTERNAL
  225. #ifndef DPNBUILD_NOSERIALSP
  226. //@@END_MSINTERNAL
  227. #define DPNA_VALUE_MODEMPROVIDER L"MODEM"
  228. #define DPNA_VALUE_SERIALPROVIDER L"SERIAL"
  229. //@@BEGIN_MSINTERNAL
  230. #endif // ! DPNBUILD_NOSERIALSP
  231. #endif // ! DPNBUILD_ONLYONESP
  232. //@@END_MSINTERNAL
  233. //// ANSI DEFINITIONS
  234. // Header
  235. #define DPNA_HEADER_A "x-directplay:/"
  236. #define DPNA_SEPARATOR_KEYVALUE_A '='
  237. #define DPNA_SEPARATOR_USERDATA_A '#'
  238. #define DPNA_SEPARATOR_COMPONENT_A ';'
  239. #define DPNA_ESCAPECHAR_A '%'
  240. // key names for address components
  241. //@@BEGIN_MSINTERNAL
  242. #ifndef DPNBUILD_NOLOBBY
  243. //@@END_MSINTERNAL
  244. #define DPNA_KEY_APPLICATION_INSTANCE_A "applicationinstance"
  245. //@@BEGIN_MSINTERNAL
  246. #endif // ! DPNBUILD_NOLOBBY
  247. #ifndef DPNBUILD_ONLYONEADAPTER
  248. //@@END_MSINTERNAL
  249. #define DPNA_KEY_DEVICE_A "device"
  250. //@@BEGIN_MSINTERNAL
  251. #endif // ! DPNBUILD_ONLYONEADAPTER
  252. //@@END_MSINTERNAL
  253. #define DPNA_KEY_HOSTNAME_A "hostname"
  254. #define DPNA_KEY_PORT_A "port"
  255. //@@BEGIN_MSINTERNAL
  256. #ifndef DPNBUILD_ONLYONEPROCESSOR
  257. //@@END_MSINTERNAL
  258. #define DPNA_KEY_PROCESSOR_A "processor"
  259. //@@BEGIN_MSINTERNAL
  260. #endif // ! DPNBUILD_ONLYONEPROCESSOR
  261. #ifndef DPNBUILD_NOLOBBY
  262. //@@END_MSINTERNAL
  263. #define DPNA_KEY_PROGRAM_A "program"
  264. //@@BEGIN_MSINTERNAL
  265. #endif // ! DPNBUILD_NOLOBBY
  266. //@@END_MSINTERNAL
  267. #define DPNA_KEY_PROVIDER_A "provider"
  268. //@@BEGIN_MSINTERNAL
  269. #ifndef DPNBUILD_NOMULTICAST
  270. //@@END_MSINTERNAL
  271. #define DPNA_KEY_SCOPE_A "scope"
  272. //@@BEGIN_MSINTERNAL
  273. #endif // ! DPNBUILD_NOMULTICAST
  274. #ifndef DPNBUILD_NONATHELP
  275. //@@END_MSINTERNAL
  276. #define DPNA_KEY_TRAVERSALMODE_A "traversalmode"
  277. //@@BEGIN_MSINTERNAL
  278. #endif // ! DPNBUILD_NONATHELP
  279. //@@END_MSINTERNAL
  280. //@@BEGIN_MSINTERNAL
  281. #ifndef DPNBUILD_NOSERIALSP
  282. //@@END_MSINTERNAL
  283. #define DPNA_KEY_BAUD_A "baud"
  284. #define DPNA_KEY_FLOWCONTROL_A "flowcontrol"
  285. #define DPNA_KEY_PARITY_A "parity"
  286. #define DPNA_KEY_PHONENUMBER_A "phonenumber"
  287. #define DPNA_KEY_STOPBITS_A "stopbits"
  288. // values for stop bits
  289. #define DPNA_STOP_BITS_ONE_A "1"
  290. #define DPNA_STOP_BITS_ONE_FIVE_A "1.5"
  291. #define DPNA_STOP_BITS_TWO_A "2"
  292. // values for parity
  293. #define DPNA_PARITY_NONE_A "NONE"
  294. #define DPNA_PARITY_EVEN_A "EVEN"
  295. #define DPNA_PARITY_ODD_A "ODD"
  296. #define DPNA_PARITY_MARK_A "MARK"
  297. #define DPNA_PARITY_SPACE_A "SPACE"
  298. // values for flow control
  299. #define DPNA_FLOW_CONTROL_NONE_A "NONE"
  300. #define DPNA_FLOW_CONTROL_XONXOFF_A "XONXOFF"
  301. #define DPNA_FLOW_CONTROL_RTS_A "RTS"
  302. #define DPNA_FLOW_CONTROL_DTR_A "DTR"
  303. #define DPNA_FLOW_CONTROL_RTSDTR_A "RTSDTR"
  304. //@@BEGIN_MSINTERNAL
  305. #endif // ! DPNBUILD_NOSERIALSP
  306. //@@END_MSINTERNAL
  307. //@@BEGIN_MSINTERNAL
  308. #ifndef DPNBUILD_ONLYONESP
  309. //@@END_MSINTERNAL
  310. // Shortcut values
  311. //
  312. // These can be used instead of the corresponding CLSID_DP8SP_XXXX guids
  313. //
  314. #define DPNA_VALUE_TCPIPPROVIDER_A "IP"
  315. //@@BEGIN_MSINTERNAL
  316. #ifndef DPNBUILD_NOIPX
  317. //@@END_MSINTERNAL
  318. #define DPNA_VALUE_IPXPROVIDER_A "IPX"
  319. //@@BEGIN_MSINTERNAL
  320. #endif // ! DPNBUILD_NOIPX
  321. //@@END_MSINTERNAL
  322. //@@BEGIN_MSINTERNAL
  323. #ifndef DPNBUILD_NOSERIALSP
  324. //@@END_MSINTERNAL
  325. #define DPNA_VALUE_MODEMPROVIDER_A "MODEM"
  326. #define DPNA_VALUE_SERIALPROVIDER_A "SERIAL"
  327. //@@BEGIN_MSINTERNAL
  328. #endif // ! DPNBUILD_NOSERIALSP
  329. #endif // ! DPNBUILD_ONLYONESP
  330. //@@END_MSINTERNAL
  331. /****************************************************************************
  332. *
  333. * DirectPlay8Address Functions
  334. *
  335. ****************************************************************************/
  336. //@@BEGIN_MSINTERNAL
  337. #ifdef _XBOX
  338. extern HRESULT WINAPI XDirectPlay8AddressCreate( DPNAREFIID riid, void **ppvInterface );
  339. extern HRESULT WINAPI XDirectPlay8AddressCreateFromXnAddr( XNADDR *pxnaddr, IDirectPlay8Address **ppInterface );
  340. #else // ! _XBOX
  341. //@@END_MSINTERNAL
  342. /*
  343. *
  344. * This function is no longer supported. It is recommended that CoCreateInstance be used to create
  345. * DirectPlay8 address objects.
  346. *
  347. * HRESULT WINAPI DirectPlay8AddressCreate( const GUID * pcIID, void **ppvInterface, IUnknown *pUnknown);
  348. *
  349. */
  350. //@@BEGIN_MSINTERNAL
  351. #endif // ! _XBOX
  352. //@@END_MSINTERNAL
  353. /****************************************************************************
  354. *
  355. * DirectPlay8Address Application Interfaces
  356. *
  357. ****************************************************************************/
  358. //
  359. // COM definition for IDirectPlay8Address Generic Interface
  360. //
  361. #undef INTERFACE // External COM Implementation
  362. #define INTERFACE IDirectPlay8Address
  363. DECLARE_INTERFACE_(IDirectPlay8Address,IUnknown)
  364. {
  365. /*** IUnknown methods ***/
  366. STDMETHOD(QueryInterface) (THIS_ DPNAREFIID, LPVOID *) PURE;
  367. STDMETHOD_(ULONG,AddRef) (THIS) PURE;
  368. STDMETHOD_(ULONG,Release) (THIS) PURE;
  369. /*** IDirectPlay8Address methods ***/
  370. STDMETHOD(BuildFromURLW)(THIS_ WCHAR *pwszSourceURL ) PURE;
  371. STDMETHOD(BuildFromURLA)(THIS_ CHAR *pszSourceURL ) PURE;
  372. STDMETHOD(Duplicate)(THIS_ PDIRECTPLAY8ADDRESS *ppdpaNewAddress ) PURE;
  373. STDMETHOD(SetEqual)(THIS_ PDIRECTPLAY8ADDRESS pdpaAddress ) PURE;
  374. STDMETHOD(IsEqual)(THIS_ PDIRECTPLAY8ADDRESS pdpaAddress ) PURE;
  375. STDMETHOD(Clear)(THIS ) PURE;
  376. STDMETHOD(GetURLW)(THIS_ WCHAR *pwszURL, PDWORD pdwNumChars ) PURE;
  377. STDMETHOD(GetURLA)(THIS_ CHAR *pszURL, PDWORD pdwNumChars) PURE;
  378. STDMETHOD(GetSP)(THIS_ GUID *pguidSP ) PURE;
  379. STDMETHOD(GetUserData)(THIS_ void *pvUserData, PDWORD pdwBufferSize) PURE;
  380. STDMETHOD(SetSP)(THIS_ const GUID * const pguidSP ) PURE;
  381. STDMETHOD(SetUserData)(THIS_ const void * const pvUserData, const DWORD dwDataSize) PURE;
  382. STDMETHOD(GetNumComponents)(THIS_ PDWORD pdwNumComponents ) PURE;
  383. STDMETHOD(GetComponentByName)(THIS_ const WCHAR * const pwszName, void *pvBuffer, PDWORD pdwBufferSize, PDWORD pdwDataType ) PURE;
  384. STDMETHOD(GetComponentByIndex)(THIS_ const DWORD dwComponentID, WCHAR * pwszName, PDWORD pdwNameLen, void *pvBuffer, PDWORD pdwBufferSize, PDWORD pdwDataType ) PURE;
  385. STDMETHOD(AddComponent)(THIS_ const WCHAR * const pwszName, const void * const lpvData, const DWORD dwDataSize, const DWORD dwDataType ) PURE;
  386. STDMETHOD(GetDevice)(THIS_ GUID * ) PURE;
  387. STDMETHOD(SetDevice)(THIS_ const GUID * const) PURE;
  388. STDMETHOD(BuildFromDPADDRESS)( THIS_ LPVOID pvAddress, DWORD dwDataSize ) PURE;
  389. };
  390. //
  391. // COM definition for IDirectPlay8AddressIP Generic Interface
  392. //
  393. #undef INTERFACE // External COM Implementation
  394. #define INTERFACE IDirectPlay8AddressIP
  395. DECLARE_INTERFACE_(IDirectPlay8AddressIP,IUnknown)
  396. {
  397. /*** IUnknown methods ***/
  398. STDMETHOD(QueryInterface) (THIS_ DPNAREFIID, PVOID *) PURE;
  399. STDMETHOD_(ULONG,AddRef) (THIS) PURE;
  400. STDMETHOD_(ULONG,Release) (THIS) PURE;
  401. /*** IDirectPlay8AddressIP methods ***/
  402. // Constructs a IDirectPlay8 TCP Address from a SOCKADDR structure
  403. STDMETHOD(BuildFromSockAddr)(THIS_ const SOCKADDR * const ) PURE;
  404. // Constructs a TCP Address from a string (hostname) and port
  405. STDMETHOD(BuildAddress)(THIS_ const WCHAR * const wszAddress, const USHORT usPort ) PURE;
  406. // Builds a local TCP Address
  407. STDMETHOD(BuildLocalAddress)(THIS_ const GUID * const pguidAdapter, const USHORT usPort ) PURE;
  408. // Gets the address from the structure in SOCKADR format
  409. STDMETHOD(GetSockAddress)(THIS_ SOCKADDR *, PDWORD ) PURE;
  410. // Gets the local afddress
  411. STDMETHOD(GetLocalAddress)(THIS_ GUID *pguidAdapter, USHORT *pusPort ) PURE;
  412. // Gets the remote address
  413. STDMETHOD(GetAddress)(THIS_ WCHAR *wszAddress, PDWORD pdwAddressLength, USHORT *psPort ) PURE;
  414. };
  415. /****************************************************************************
  416. *
  417. * IDirectPlay8 application interface macros
  418. *
  419. ****************************************************************************/
  420. #if !defined(__cplusplus) || defined(CINTERFACE)
  421. #define IDirectPlay8Address_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
  422. #define IDirectPlay8Address_AddRef(p) (p)->lpVtbl->AddRef(p)
  423. #define IDirectPlay8Address_Release(p) (p)->lpVtbl->Release(p)
  424. #define IDirectPlay8Address_BuildFromURLW(p,a) (p)->lpVtbl->BuildFromURLW(p,a)
  425. #define IDirectPlay8Address_BuildFromURLA(p,a) (p)->lpVtbl->BuildFromURLA(p,a)
  426. #define IDirectPlay8Address_Duplicate(p,a) (p)->lpVtbl->Duplicate(p,a)
  427. #define IDirectPlay8Address_SetEqual(p,a) (p)->lpVtbl->SetEqual(p,a)
  428. #define IDirectPlay8Address_IsEqual(p,a) (p)->lpVtbl->IsEqual(p,a)
  429. #define IDirectPlay8Address_Clear(p) (p)->lpVtbl->Clear(p)
  430. #define IDirectPlay8Address_GetURLW(p,a,b) (p)->lpVtbl->GetURLW(p,a,b)
  431. #define IDirectPlay8Address_GetURLA(p,a,b) (p)->lpVtbl->GetURLA(p,a,b)
  432. //@@BEGIN_MSINTERNAL
  433. #ifndef DPNBUILD_ONLYONESP
  434. //@@END_MSINTERNAL
  435. #define IDirectPlay8Address_GetSP(p,a) (p)->lpVtbl->GetSP(p,a)
  436. //@@BEGIN_MSINTERNAL
  437. #endif // ! DPNBUILD_ONLYONESP
  438. //@@END_MSINTERNAL
  439. #define IDirectPlay8Address_GetUserData(p,a,b) (p)->lpVtbl->GetUserData(p,a,b)
  440. //@@BEGIN_MSINTERNAL
  441. #ifndef DPNBUILD_ONLYONESP
  442. //@@END_MSINTERNAL
  443. #define IDirectPlay8Address_SetSP(p,a) (p)->lpVtbl->SetSP(p,a)
  444. //@@BEGIN_MSINTERNAL
  445. #endif // ! DPNBUILD_ONLYONESP
  446. //@@END_MSINTERNAL
  447. #define IDirectPlay8Address_SetUserData(p,a,b) (p)->lpVtbl->SetUserData(p,a,b)
  448. #define IDirectPlay8Address_GetNumComponents(p,a) (p)->lpVtbl->GetNumComponents(p,a)
  449. #define IDirectPlay8Address_GetComponentByName(p,a,b,c,d) (p)->lpVtbl->GetComponentByName(p,a,b,c,d)
  450. #define IDirectPlay8Address_GetComponentByIndex(p,a,b,c,d,e,f) (p)->lpVtbl->GetComponentByIndex(p,a,b,c,d,e,f)
  451. #define IDirectPlay8Address_AddComponent(p,a,b,c,d) (p)->lpVtbl->AddComponent(p,a,b,c,d)
  452. //@@BEGIN_MSINTERNAL
  453. #ifndef DPNBUILD_ONLYONEADAPTER
  454. //@@END_MSINTERNAL
  455. #define IDirectPlay8Address_SetDevice(p,a) (p)->lpVtbl->SetDevice(p,a)
  456. #define IDirectPlay8Address_GetDevice(p,a) (p)->lpVtbl->GetDevice(p,a)
  457. //@@BEGIN_MSINTERNAL
  458. #endif // ! DPNBUILD_ONLYONEADAPTER
  459. #ifndef DPNBUILD_NOLEGACYDP
  460. //@@END_MSINTERNAL
  461. #define IDirectPlay8Address_BuildFromDirectPlay4Address(p,a,b) (p)->lpVtbl->BuildFromDirectPlay4Address(p,a,b)
  462. //@@BEGIN_MSINTERNAL
  463. #endif // ! DPNBUILD_NOLEGACYDP
  464. //@@END_MSINTERNAL
  465. #define IDirectPlay8AddressIP_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
  466. #define IDirectPlay8AddressIP_AddRef(p) (p)->lpVtbl->AddRef(p)
  467. #define IDirectPlay8AddressIP_Release(p) (p)->lpVtbl->Release(p)
  468. #define IDirectPlay8AddressIP_BuildFromSockAddr(p,a) (p)->lpVtbl->BuildFromSockAddr(p,a)
  469. #define IDirectPlay8AddressIP_BuildAddress(p,a,b) (p)->lpVtbl->BuildAddress(p,a,b)
  470. #define IDirectPlay8AddressIP_BuildLocalAddress(p,a,b) (p)->lpVtbl->BuildLocalAddress(p,a,b)
  471. #define IDirectPlay8AddressIP_GetSockAddress(p,a,b) (p)->lpVtbl->GetSockAddress(p,a,b)
  472. #define IDirectPlay8AddressIP_GetLocalAddress(p,a,b) (p)->lpVtbl->GetLocalAddress(p,a,b)
  473. #define IDirectPlay8AddressIP_GetAddress(p,a,b,c) (p)->lpVtbl->GetAddress(p,a,b,c)
  474. #else /* C++ */
  475. #define IDirectPlay8Address_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
  476. #define IDirectPlay8Address_AddRef(p) (p)->AddRef()
  477. #define IDirectPlay8Address_Release(p) (p)->Release()
  478. #define IDirectPlay8Address_BuildFromURLW(p,a) (p)->BuildFromURLW(a)
  479. #define IDirectPlay8Address_BuildFromURLA(p,a) (p)->BuildFromURLA(a)
  480. #define IDirectPlay8Address_Duplicate(p,a) (p)->Duplicate(a)
  481. #define IDirectPlay8Address_SetEqual(p,a) (p)->SetEqual(a)
  482. #define IDirectPlay8Address_IsEqual(p,a) (p)->IsEqual(a)
  483. #define IDirectPlay8Address_Clear(p) (p)->Clear()
  484. #define IDirectPlay8Address_GetURLW(p,a,b) (p)->GetURLW(a,b)
  485. #define IDirectPlay8Address_GetURLA(p,a,b) (p)->GetURLA(a,b)
  486. //@@BEGIN_MSINTERNAL
  487. #ifndef DPNBUILD_ONLYONESP
  488. //@@END_MSINTERNAL
  489. #define IDirectPlay8Address_GetSP(p,a) (p)->GetSP(a)
  490. //@@BEGIN_MSINTERNAL
  491. #endif // ! DPNBUILD_ONLYONESP
  492. //@@END_MSINTERNAL
  493. #define IDirectPlay8Address_GetUserData(p,a,b) (p)->GetUserData(a,b)
  494. //@@BEGIN_MSINTERNAL
  495. #ifndef DPNBUILD_ONLYONESP
  496. //@@END_MSINTERNAL
  497. #define IDirectPlay8Address_SetSP(p,a) (p)->SetSP(a)
  498. //@@BEGIN_MSINTERNAL
  499. #endif // ! DPNBUILD_ONLYONESP
  500. //@@END_MSINTERNAL
  501. #define IDirectPlay8Address_SetUserData(p,a,b) (p)->SetUserData(a,b)
  502. #define IDirectPlay8Address_GetNumComponents(p,a) (p)->GetNumComponents(a)
  503. #define IDirectPlay8Address_GetComponentByName(p,a,b,c,d) (p)->GetComponentByName(a,b,c,d)
  504. #define IDirectPlay8Address_GetComponentByIndex(p,a,b,c,d,e,f) (p)->GetComponentByIndex(a,b,c,d,e,f)
  505. #define IDirectPlay8Address_AddComponent(p,a,b,c,d) (p)->AddComponent(a,b,c,d)
  506. //@@BEGIN_MSINTERNAL
  507. #ifndef DPNBUILD_ONLYONEADAPTER
  508. //@@END_MSINTERNAL
  509. #define IDirectPlay8Address_SetDevice(p,a) (p)->SetDevice(a)
  510. #define IDirectPlay8Address_GetDevice(p,a) (p)->GetDevice(a)
  511. //@@BEGIN_MSINTERNAL
  512. #endif // ! DPNBUILD_ONLYONEADAPTER
  513. #ifndef DPNBUILD_NOLEGACYDP
  514. //@@END_MSINTERNAL
  515. #define IDirectPlay8Address_BuildFromDirectPlay4Address(p,a,b) (p)->BuildFromDirectPlay4Address(a,b)
  516. //@@BEGIN_MSINTERNAL
  517. #endif // ! DPNBUILD_NOLEGACYDP
  518. //@@END_MSINTERNAL
  519. #define IDirectPlay8AddressIP_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
  520. #define IDirectPlay8AddressIP_AddRef(p) (p)->AddRef()
  521. #define IDirectPlay8AddressIP_Release(p) (p)->Release()
  522. #define IDirectPlay8AddressIP_BuildFromSockAddr(p,a) (p)->BuildFromSockAddr(a)
  523. #define IDirectPlay8AddressIP_BuildAddress(p,a,b) (p)->BuildAddress(a,b)
  524. #define IDirectPlay8AddressIP_BuildLocalAddress(p,a,b) (p)->BuildLocalAddress(a,b)
  525. #define IDirectPlay8AddressIP_GetSockAddress(p,a,b) (p)->GetSockAddress(a,b)
  526. #define IDirectPlay8AddressIP_GetLocalAddress(p,a,b) (p)->GetLocalAddress(a,b)
  527. #define IDirectPlay8AddressIP_GetAddress(p,a,b,c) (p)->GetAddress(a,b,c)
  528. #endif
  529. #ifdef __cplusplus
  530. }
  531. #endif
  532. #endif