DirectX SDK

DirectPlayLobby3.CreateModemAddress

The DirectPlayLobby3.CreateModemAddress method creates a DirectPlay address for a modem.

object.CreateModemAddress( _
    modem As String, _
    phone as String) As DirectPlayAddress

Parameters

object
Object expression that resolves to a DirectPlayLobby3 object.
modem
Name of the modem. Names of available modems can be retrieved by using the DirectPlayLobby3.GetModemName method. Use an empty string to specify the default modem.
phone
Phone number to dial.

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