Platform SDK: DirectX |
The IDirectPlayLobby3::CreateAddress method creates a DirectPlay address, given a service provider-specific network address. The resulting address contains the globally unique identifier (GUID) of the service provider and data that the service provider can interpret as a network address.
Note that with IDirectPlayLobby3::CreateCompoundAddress you can create addresses with more than one data chunk. Therefore, you should use IDirectPlayLobby3::CreateCompoundAddress.
HRESULT CreateAddress( REFGUID guidSP, REFGUID guidDataType, LPCVOID lpData, DWORD dwDataSize, LPVOID lpAddress, LPDWORD lpdwAddressSize );
Returns DP_OK if successful, or one of the following error values otherwise:
DPERR_BUFFERTOOSMALL |
DPERR_INVALIDPARAMS |
The IDirectPlayLobby3::CreateCompoundAddress method can be used to create longer DirectPlay addresses than CreateAddress allows.
Windows NT/2000: Requires Windows 2000.
Windows 95/98: Requires Windows 95 or later. Available as a redistributable for Windows 95.
Header: Declared in dplobby.h.
Import Library: Use dplayx.lib.
IDirectPlayLobby3::EnumAddress, IDirectPlayLobby3::CreateCompoundAddress, DirectPlay Address, DirectPlay Address Data Types