Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

439 lines
18 KiB

  1. /*==========================================================================;
  2. *
  3. * Copyright (C) 2000 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 vpo 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. //@@END_MSINTERNAL
  24. ***************************************************************************/
  25. #ifndef __DIRECTPLAYADDRESS__
  26. #define __DIRECTPLAYADDRESS__
  27. #include <ole2.h> // for DECLARE_INTERFACE and HRESULT
  28. #ifdef __cplusplus
  29. extern "C" {
  30. #endif
  31. #include "dplay8.h"
  32. /****************************************************************************
  33. *
  34. * DirectPlay8Address CLSIDs
  35. *
  36. ****************************************************************************/
  37. // {934A9523-A3CA-4bc5-ADA0-D6D95D979421}
  38. DEFINE_GUID(CLSID_DirectPlay8Address,
  39. 0x934a9523, 0xa3ca, 0x4bc5, 0xad, 0xa0, 0xd6, 0xd9, 0x5d, 0x97, 0x94, 0x21);
  40. /****************************************************************************
  41. *
  42. * DirectPlay8Address Interface IIDs
  43. *
  44. ****************************************************************************/
  45. //@@BEGIN_MSINTERNAL
  46. // {B483A30A-C8A9-4d76-9BC9-37558080C608}
  47. DEFINE_GUID(IID_IDirectPlay8AddressInternal,
  48. 0xb483a30a, 0xc8a9, 0x4d76, 0x9b, 0xc9, 0x37, 0x55, 0x80, 0x80, 0xc6, 0x8);
  49. //@@END_MSINTERNAL
  50. // {83783300-4063-4c8a-9DB3-82830A7FEB31}
  51. DEFINE_GUID(IID_IDirectPlay8Address,
  52. 0x83783300, 0x4063, 0x4c8a, 0x9d, 0xb3, 0x82, 0x83, 0xa, 0x7f, 0xeb, 0x31);
  53. // {E5A0E990-2BAD-430b-87DA-A142CF75DE58}
  54. DEFINE_GUID(IID_IDirectPlay8AddressIP,
  55. 0xe5a0e990, 0x2bad, 0x430b, 0x87, 0xda, 0xa1, 0x42, 0xcf, 0x75, 0xde, 0x58);
  56. /****************************************************************************
  57. *
  58. * DirectPlay8Address Interface Pointer definitions
  59. *
  60. ****************************************************************************/
  61. //@@BEGIN_MSINTERNAL
  62. typedef struct IDirectPlay8AddressInternal *PDIRECTPLAY8ADDRESSINTERNAL, *LPDIRECTPLAY8ADDRESSINTERNAL;
  63. //@@END_MSINTERNAL
  64. typedef struct IDirectPlay8Address *PDIRECTPLAY8ADDRESS, *LPDIRECTPLAY8ADDRESS;
  65. typedef struct IDirectPlay8AddressIP *PDIRECTPLAY8ADDRESSIP, *LPDIRECTPLAY8ADDRESSIP;
  66. /****************************************************************************
  67. *
  68. * DirectPlay8Address Forward Declarations For External Types
  69. *
  70. ****************************************************************************/
  71. typedef struct sockaddr SOCKADDR;
  72. /****************************************************************************
  73. *
  74. * DirectPlay8Address Constants
  75. *
  76. ****************************************************************************/
  77. //
  78. // Asynchronous operation flags
  79. //
  80. #define DPNA_DATATYPE_STRING 0x00000001
  81. #define DPNA_DATATYPE_DWORD 0x00000002
  82. #define DPNA_DATATYPE_GUID 0x00000003
  83. #define DPNA_DATATYPE_BINARY 0x00000004
  84. #define DPNA_DATATYPE_STRING_ANSI 0x00000005
  85. #define DPNA_DPNSVR_PORT 6073
  86. #define DPNA_INDEX_INVALID 0xFFFFFFFF
  87. /****************************************************************************
  88. *
  89. * DirectPlay8Address Address Elements
  90. *
  91. ****************************************************************************/
  92. #define DPNA_SEPARATOR_KEYVALUE L'='
  93. #define DPNA_SEPARATOR_USERDATA L'#'
  94. #define DPNA_SEPARATOR_COMPONENT L';'
  95. #define DPNA_ESCAPECHAR L'%'
  96. // Header
  97. #define DPNA_HEADER L"x-directplay:/"
  98. // key names for address components
  99. #define DPNA_KEY_APPLICATION_INSTANCE L"applicationinstance"
  100. #define DPNA_KEY_BAUD L"baud"
  101. #define DPNA_KEY_DEVICE L"device"
  102. #define DPNA_KEY_FLOWCONTROL L"flowcontrol"
  103. #define DPNA_KEY_HOSTNAME L"hostname"
  104. #define DPNA_KEY_PARITY L"parity"
  105. #define DPNA_KEY_PHONENUMBER L"phonenumber"
  106. #define DPNA_KEY_PORT L"port"
  107. #define DPNA_KEY_PROGRAM L"program"
  108. #define DPNA_KEY_PROVIDER L"provider"
  109. #define DPNA_KEY_STOPBITS L"stopbits"
  110. // values for baud rate
  111. #define DPNA_BAUD_RATE_9600 9600
  112. #define DPNA_BAUD_RATE_14400 14400
  113. #define DPNA_BAUD_RATE_19200 19200
  114. #define DPNA_BAUD_RATE_38400 38400
  115. #define DPNA_BAUD_RATE_56000 56000
  116. #define DPNA_BAUD_RATE_57600 57600
  117. #define DPNA_BAUD_RATE_115200 115200
  118. // values for stop bits
  119. #define DPNA_STOP_BITS_ONE L"1"
  120. #define DPNA_STOP_BITS_ONE_FIVE L"1.5"
  121. #define DPNA_STOP_BITS_TWO L"2"
  122. // values for parity
  123. #define DPNA_PARITY_NONE L"NONE"
  124. #define DPNA_PARITY_EVEN L"EVEN"
  125. #define DPNA_PARITY_ODD L"ODD"
  126. #define DPNA_PARITY_MARK L"MARK"
  127. #define DPNA_PARITY_SPACE L"SPACE"
  128. // values for flow control
  129. #define DPNA_FLOW_CONTROL_NONE L"NONE"
  130. #define DPNA_FLOW_CONTROL_XONXOFF L"XONXOFF"
  131. #define DPNA_FLOW_CONTROL_RTS L"RTS"
  132. #define DPNA_FLOW_CONTROL_DTR L"DTR"
  133. #define DPNA_FLOW_CONTROL_RTSDTR L"RTSDTR"
  134. // Shortcut values
  135. //
  136. // These can be used instead of the corresponding CLSID_DP8SP_XXXX guids
  137. //
  138. #define DPNA_VALUE_TCPIPPROVIDER L"IP"
  139. #define DPNA_VALUE_IPXPROVIDER L"IPX"
  140. #define DPNA_VALUE_MODEMPROVIDER L"MODEM"
  141. #define DPNA_VALUE_SERIALPROVIDER L"SERIAL"
  142. //// ANSI DEFINITIONS
  143. // Header
  144. #define DPNA_HEADER_A "x-directplay:/"
  145. #define DPNA_SEPARATOR_KEYVALUE_A '='
  146. #define DPNA_SEPARATOR_USERDATA_A '#'
  147. #define DPNA_SEPARATOR_COMPONENT_A ';'
  148. #define DPNA_ESCAPECHAR_A '%'
  149. // key names for address components
  150. #define DPNA_KEY_APPLICATION_INSTANCE_A "applicationinstance"
  151. #define DPNA_KEY_BAUD_A "baud"
  152. #define DPNA_KEY_DEVICE_A "device"
  153. #define DPNA_KEY_FLOWCONTROL_A "flowcontrol"
  154. #define DPNA_KEY_HOSTNAME_A "hostname"
  155. #define DPNA_KEY_PARITY_A "parity"
  156. #define DPNA_KEY_PHONENUMBER_A "phonenumber"
  157. #define DPNA_KEY_PORT_A "port"
  158. #define DPNA_KEY_PROGRAM_A "program"
  159. #define DPNA_KEY_PROVIDER_A "provider"
  160. #define DPNA_KEY_STOPBITS_A "stopbits"
  161. // values for stop bits
  162. #define DPNA_STOP_BITS_ONE_A "1"
  163. #define DPNA_STOP_BITS_ONE_FIVE_A "1.5"
  164. #define DPNA_STOP_BITS_TWO_A "2"
  165. // values for parity
  166. #define DPNA_PARITY_NONE_A "NONE"
  167. #define DPNA_PARITY_EVEN_A "EVEN"
  168. #define DPNA_PARITY_ODD_A "ODD"
  169. #define DPNA_PARITY_MARK_A "MARK"
  170. #define DPNA_PARITY_SPACE_A "SPACE"
  171. // values for flow control
  172. #define DPNA_FLOW_CONTROL_NONE_A "NONE"
  173. #define DPNA_FLOW_CONTROL_XONXOFF_A "XONXOFF"
  174. #define DPNA_FLOW_CONTROL_RTS_A "RTS"
  175. #define DPNA_FLOW_CONTROL_DTR_A "DTR"
  176. #define DPNA_FLOW_CONTROL_RTSDTR_A "RTSDTR"
  177. // Shortcut values
  178. //
  179. // These can be used instead of the corresponding CLSID_DP8SP_XXXX guids
  180. //
  181. #define DPNA_VALUE_TCPIPPROVIDER_A "IP"
  182. #define DPNA_VALUE_IPXPROVIDER_A "IPX"
  183. #define DPNA_VALUE_MODEMPROVIDER_A "MODEM"
  184. #define DPNA_VALUE_SERIALPROVIDER_A "SERIAL"
  185. /****************************************************************************
  186. *
  187. * DirectPlay8Address Functions
  188. *
  189. ****************************************************************************/
  190. /*
  191. *
  192. * This function is no longer supported. It is recommended that CoCreateInstance be used to create
  193. * DirectPlay8 address objects.
  194. *
  195. * HRESULT WINAPI DirectPlay8AddressCreate( const GUID * pcIID, void **ppvInterface, IUnknown *pUnknown);
  196. *
  197. */
  198. /****************************************************************************
  199. *
  200. * DirectPlay8Address Application Interfaces
  201. *
  202. ****************************************************************************/
  203. //
  204. // COM definition for IDirectPlay8Address Generic Interface
  205. //
  206. #undef INTERFACE // External COM Implementation
  207. #define INTERFACE IDirectPlay8Address
  208. DECLARE_INTERFACE_(IDirectPlay8Address,IUnknown)
  209. {
  210. /*** IUnknown methods ***/
  211. STDMETHOD(QueryInterface) (THIS_ REFIID, LPVOID *) PURE;
  212. STDMETHOD_(ULONG,AddRef) (THIS) PURE;
  213. STDMETHOD_(ULONG,Release) (THIS) PURE;
  214. /*** IDirectPlay8Address methods ***/
  215. STDMETHOD(BuildFromURLW)(THIS_ WCHAR *pwszSourceURL ) PURE;
  216. STDMETHOD(BuildFromURLA)(THIS_ CHAR *pszSourceURL ) PURE;
  217. STDMETHOD(Duplicate)(THIS_ PDIRECTPLAY8ADDRESS *ppdpaNewAddress ) PURE;
  218. STDMETHOD(SetEqual)(THIS_ PDIRECTPLAY8ADDRESS pdpaAddress ) PURE;
  219. STDMETHOD(IsEqual)(THIS_ PDIRECTPLAY8ADDRESS pdpaAddress ) PURE;
  220. STDMETHOD(Clear)(THIS ) PURE;
  221. STDMETHOD(GetURLW)(THIS_ WCHAR *pwszURL, PDWORD pdwNumChars ) PURE;
  222. STDMETHOD(GetURLA)(THIS_ CHAR *pszURL, PDWORD pdwNumChars) PURE;
  223. STDMETHOD(GetSP)(THIS_ GUID *pguidSP ) PURE;
  224. STDMETHOD(GetUserData)(THIS_ void *pvUserData, PDWORD pdwBufferSize) PURE;
  225. STDMETHOD(SetSP)(THIS_ const GUID * const pguidSP ) PURE;
  226. STDMETHOD(SetUserData)(THIS_ const void * const pvUserData, const DWORD dwDataSize) PURE;
  227. STDMETHOD(GetNumComponents)(THIS_ PDWORD pdwNumComponents ) PURE;
  228. STDMETHOD(GetComponentByName)(THIS_ const WCHAR * const pwszName, void *pvBuffer, PDWORD pdwBufferSize, PDWORD pdwDataType ) PURE;
  229. STDMETHOD(GetComponentByIndex)(THIS_ const DWORD dwComponentID, WCHAR * pwszName, PDWORD pdwNameLen, void *pvBuffer, PDWORD pdwBufferSize, PDWORD pdwDataType ) PURE;
  230. STDMETHOD(AddComponent)(THIS_ const WCHAR * const pwszName, const void * const lpvData, const DWORD dwDataSize, const DWORD dwDataType ) PURE;
  231. STDMETHOD(GetDevice)(THIS_ GUID * ) PURE;
  232. STDMETHOD(SetDevice)(THIS_ const GUID * const) PURE;
  233. STDMETHOD(BuildFromDPADDRESS)( THIS_ LPVOID pvAddress, DWORD dwDataSize ) PURE;
  234. };
  235. //
  236. // COM definition for IDirectPlay8AddressIP Generic Interface
  237. //
  238. #undef INTERFACE // External COM Implementation
  239. #define INTERFACE IDirectPlay8AddressIP
  240. DECLARE_INTERFACE_(IDirectPlay8AddressIP,IUnknown)
  241. {
  242. /*** IUnknown methods ***/
  243. STDMETHOD(QueryInterface) (THIS_ REFIID, PVOID *) PURE;
  244. STDMETHOD_(ULONG,AddRef) (THIS) PURE;
  245. STDMETHOD_(ULONG,Release) (THIS) PURE;
  246. /*** IDirectPlay8AddressIP methods ***/
  247. // Constructs a IDirectPlay8 TCP Address from a SOCKADDR structure
  248. STDMETHOD(BuildFromSockAddr)(THIS_ const SOCKADDR * const ) PURE;
  249. // Constructs a TCP Address from a string (hostname) and port
  250. STDMETHOD(BuildAddress)(THIS_ const WCHAR * const wszAddress, const USHORT usPort ) PURE;
  251. // Builds a local TCP Address
  252. STDMETHOD(BuildLocalAddress)(THIS_ const GUID * const pguidAdapter, const USHORT usPort ) PURE;
  253. // Gets the address from the structure in SOCKADR format
  254. STDMETHOD(GetSockAddress)(THIS_ SOCKADDR *, PDWORD ) PURE;
  255. // Gets the local afddress
  256. STDMETHOD(GetLocalAddress)(THIS_ GUID *pguidAdapter, USHORT *pusPort ) PURE;
  257. // Gets the remote address
  258. STDMETHOD(GetAddress)(THIS_ WCHAR *wszAddress, PDWORD pdwAddressLength, USHORT *psPort ) PURE;
  259. };
  260. //@@BEGIN_MSINTERNAL
  261. //
  262. // COM definition for IDirectPlay8AddressInternal interface
  263. //
  264. // This interface is used so that the SP and DNet can pass references to their internal
  265. // copies of an address and not worry about the user modifying it.
  266. //
  267. #undef INTERFACE // External COM Implementation
  268. #define INTERFACE IDirectPlay8AddressInternal
  269. DECLARE_INTERFACE_(IDirectPlay8AddressInternal,IUnknown)
  270. {
  271. /*** IUnknown methods ***/
  272. STDMETHOD(QueryInterface) (THIS_ REFIID, PVOID *) PURE;
  273. STDMETHOD_(ULONG,AddRef) (THIS) PURE;
  274. STDMETHOD_(ULONG,Release) (THIS) PURE;
  275. /*** IDirectPlay8Address methods ***/
  276. // Used by SP or DNet to mark this object read-only. Only GetXXX funcs will work
  277. STDMETHOD(Lock)(THIS ) PURE;
  278. // Used by SP or DNet to mark this object read-write. All funcs will work.
  279. STDMETHOD(UnLock)(THIS ) PURE;
  280. };
  281. //@@END_MSINTERNAL
  282. /****************************************************************************
  283. *
  284. * IDirectPlay8 application interface macros
  285. *
  286. ****************************************************************************/
  287. #if !defined(__cplusplus) || defined(CINTERFACE)
  288. #define IDirectPlay8Address_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
  289. #define IDirectPlay8Address_AddRef(p) (p)->lpVtbl->AddRef(p)
  290. #define IDirectPlay8Address_Release(p) (p)->lpVtbl->Release(p)
  291. #define IDirectPlay8Address_BuildFromURLW(p,a) (p)->lpVtbl->BuildFromURLW(p,a)
  292. #define IDirectPlay8Address_BuildFromURLA(p,a) (p)->lpVtbl->BuildFromURLA(p,a)
  293. #define IDirectPlay8Address_Duplicate(p,a) (p)->lpVtbl->Duplicate(p,a)
  294. #define IDirectPlay8Address_SetEqual(p,a) (p)->lpVtbl->SetEqual(p,a)
  295. #define IDirectPlay8Address_IsEqual(p,a) (p)->lpVtbl->IsEqual(p,a)
  296. #define IDirectPlay8Address_Clear(p) (p)->lpVtbl->Clear(p)
  297. #define IDirectPlay8Address_GetURLW(p,a,b) (p)->lpVtbl->GetURLW(p,a,b)
  298. #define IDirectPlay8Address_GetURLA(p,a,b) (p)->lpVtbl->GetURLA(p,a,b)
  299. #define IDirectPlay8Address_GetSP(p,a) (p)->lpVtbl->GetSP(p,a)
  300. #define IDirectPlay8Address_GetUserData(p,a,b) (p)->lpVtbl->GetUserData(p,a,b)
  301. #define IDirectPlay8Address_SetSP(p,a) (p)->lpVtbl->SetSP(p,a)
  302. #define IDirectPlay8Address_SetUserData(p,a,b) (p)->lpVtbl->SetUserData(p,a,b)
  303. #define IDirectPlay8Address_GetNumComponents(p,a) (p)->lpVtbl->GetNumComponents(p,a)
  304. #define IDirectPlay8Address_GetComponentByName(p,a,b,c,d) (p)->lpVtbl->GetComponentByName(p,a,b,c,d)
  305. #define IDirectPlay8Address_GetComponentByIndex(p,a,b,c,d,e,f) (p)->lpVtbl->GetComponentByIndex(p,a,b,c,d,e,f)
  306. #define IDirectPlay8Address_AddComponent(p,a,b,c,d) (p)->lpVtbl->AddComponent(p,a,b,c,d)
  307. #define IDirectPlay8Address_SetDevice(p,a) (p)->lpVtbl->SetDevice(p,a)
  308. #define IDirectPlay8Address_GetDevice(p,a) (p)->lpVtbl->GetDevice(p,a)
  309. #define IDirectPlay8Address_BuildFromDirectPlay4Address(p,a,b) (p)->lpVtbl->BuildFromDirectPlay4Address(p,a,b)
  310. #define IDirectPlay8AddressIP_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
  311. #define IDirectPlay8AddressIP_AddRef(p) (p)->lpVtbl->AddRef(p)
  312. #define IDirectPlay8AddressIP_Release(p) (p)->lpVtbl->Release(p)
  313. #define IDirectPlay8AddressIP_BuildFromSockAddr(p,a) (p)->lpVtbl->BuildFromSockAddr(p,a)
  314. #define IDirectPlay8AddressIP_BuildAddress(p,a,b) (p)->lpVtbl->BuildAddress(p,a,b)
  315. #define IDirectPlay8AddressIP_BuildLocalAddress(p,a,b) (p)->lpVtbl->BuildLocalAddress(p,a,b)
  316. #define IDirectPlay8AddressIP_GetSockAddress(p,a,b) (p)->lpVtbl->GetSockAddress(p,a,b)
  317. #define IDirectPlay8AddressIP_GetLocalAddress(p,a,b) (p)->lpVtbl->GetLocalAddress(p,a,b)
  318. #define IDirectPlay8AddressIP_GetAddress(p,a,b,c) (p)->lpVtbl->GetAddress(p,a,b,c)
  319. //@@BEGIN_MSINTERNAL
  320. #define IDirectPlay8AddressInternal_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
  321. #define IDirectPlay8AddressInternal_AddRef(p) (p)->lpVtbl->AddRef(p)
  322. #define IDirectPlay8AddressInternal_Release(p) (p)->lpVtbl->Release(p)
  323. #define IDirectPlay8AddressInternal_Lock(p) (p)->lpVtbl->Lock(p)
  324. #define IDirectPlay8AddressInternal_UnLock(p) (p)->lpVtbl->UnLock(p)
  325. //@@END_MSINTERNAL
  326. #else /* C++ */
  327. #define IDirectPlay8Address_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
  328. #define IDirectPlay8Address_AddRef(p) (p)->AddRef()
  329. #define IDirectPlay8Address_Release(p) (p)->Release()
  330. #define IDirectPlay8Address_BuildFromURLW(p,a) (p)->BuildFromURLW(a)
  331. #define IDirectPlay8Address_BuildFromURLA(p,a) (p)->BuildFromURLA(a)
  332. #define IDirectPlay8Address_Duplicate(p,a) (p)->Duplicate(a)
  333. #define IDirectPlay8Address_SetEqual(p,a) (p)->SetEqual(a)
  334. #define IDirectPlay8Address_IsEqual(p,a) (p)->IsEqual(a)
  335. #define IDirectPlay8Address_Clear(p) (p)->Clear()
  336. #define IDirectPlay8Address_GetURLW(p,a,b) (p)->GetURLW(a,b)
  337. #define IDirectPlay8Address_GetURLA(p,a,b) (p)->GetURLA(a,b)
  338. #define IDirectPlay8Address_GetSP(p,a) (p)->GetSP(a)
  339. #define IDirectPlay8Address_GetUserData(p,a,b) (p)->GetUserData(a,b)
  340. #define IDirectPlay8Address_SetSP(p,a) (p)->SetSP(a)
  341. #define IDirectPlay8Address_SetUserData(p,a,b) (p)->SetUserData(a,b)
  342. #define IDirectPlay8Address_GetNumComponents(p,a) (p)->GetNumComponents(a)
  343. #define IDirectPlay8Address_GetComponentByName(p,a,b,c,d) (p)->GetComponentByName(a,b,c,d)
  344. #define IDirectPlay8Address_GetComponentByIndex(p,a,b,c,d,e,f) (p)->GetComponentByIndex(a,b,c,d,e,f)
  345. #define IDirectPlay8Address_AddComponent(p,a,b,c,d) (p)->AddComponent(a,b,c,d)
  346. #define IDirectPlay8Address_SetDevice(p,a) (p)->SetDevice(a)
  347. #define IDirectPlay8Address_GetDevice(p,a) (p)->GetDevice(a)
  348. #define IDirectPlay8Address_BuildFromDirectPlay4Address(p,a,b) (p)->BuildFromDirectPlay4Address(a,b)
  349. #define IDirectPlay8AddressIP_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
  350. #define IDirectPlay8AddressIP_AddRef(p) (p)->AddRef()
  351. #define IDirectPlay8AddressIP_Release(p) (p)->Release()
  352. #define IDirectPlay8AddressIP_BuildFromSockAddr(p,a) (p)->BuildFromSockAddr(a)
  353. #define IDirectPlay8AddressIP_BuildAddress(p,a,b) (p)->BuildAddress(a,b)
  354. #define IDirectPlay8AddressIP_BuildLocalAddress(p,a,b) (p)->BuildLocalAddress(a,b)
  355. #define IDirectPlay8AddressIP_GetSockAddress(p,a,b) (p)->GetSockAddress(a,b)
  356. #define IDirectPlay8AddressIP_GetLocalAddress(p,a,b) (p)->GetLocalAddress(a,b)
  357. #define IDirectPlay8AddressIP_GetAddress(p,a,b,c) (p)->GetAddress(a,b,c)
  358. //@@BEGIN_MSINTERNAL
  359. #define IDirectPlay8AddressInternal_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
  360. #define IDirectPlay8AddressInternal_AddRef(p) (p)->AddRef()
  361. #define IDirectPlay8AddressInternal_Release(p) (p)->Release()
  362. #define IDirectPlay8AddressInternal_Lock(p) (p)->Lock()
  363. #define IDirectPlay8AddressInternal_UnLock(p) (p)->UnLock()
  364. //@@END_MSINTERNAL
  365. #endif
  366. #ifdef __cplusplus
  367. }
  368. #endif
  369. #endif