DirectX SDK

DirectPlayLobby3.CreateCustomAddress

The DirectPlayLobby3.CreateCustomAddress method creates a DirectPlay address of a kind not supported by other address creation methods.

object.CreateCustomAddress(size As Long, _
    data As Any) As DirectPlayAddress

Parameters

object
Object expression that resolves to a DirectPlayLobby3 object.
size
Size of the data.
data
The data to be packed into the address.

Return Values

If it succeeds, the method returns a DirectPlayAddress object.

Error Codes

If the method fails, an error is raised and Err.Number may be set to the following value:

DPERR_INVALIDPARAMS