Microsoft DirectX 8.1 (C++) |
Builds a remote DirectPlay 8 IP address from a host name and a port. The result of a successful call is a valid remote address with the following elements.
All addressing information contained in the object before the call is erased.
HRESULT BuildAddress( const WCHAR *const wszAddress, const USHORT usPort );
Returns S_OK if successful, or one of the following error values.
DPNERR_INVALIDPARAM |
DPNERR_INVALIDPOINTER |
DPNERR_NOTALLOWED |
Note The DPNSVR is a DirectPlay feature that allows multiple processes to share a single port for enumeration. Do not use the DPNA_DPNSVR_PORT flag when constructing a device address, or when making a connection. This flag should only be used for enumerations. If you do not add a port element to the enumeration address, the port represented by the flag will be automatically added to that address. See Using the DirectPlay DPNSVR Application for a further discussion of DPNSVR.
Windows NT/2000/XP: Available as a redistributable for Windows 2000 and later.
Windows 98/Me: Available as a redistributable for Windows 98 and later.
Header: Declared in Dpaddr.h.