Examples of Using DirectPlay Addresses

This topic contains examples of DirectPlay Addresses and the data they contain for different connection types.

A DirectPlay Address describing an IPX connection

Initializing this connection will bind the DirectPlay object to the IPX service provider.

guidDataType dwDataSize Data
DPAID_ServiceProvider 16 {685BC400-9D2C-11cf-A9CD-00AA006886E3}

A DirectPlay Address describing a modem connection

Initializing this connection will bind DirectPlay to the modem service provider and store the phone number. A subsequent call the IDirectPlay3::EnumSessions will dial the number without asking the user for a phone number.

guidDataType dwDataSize Data
DPAID_ServiceProvider 16 {44EAA760-CB68-11cf-9C4E-00A0C905425E}
DPAID_Phone 9 (including NULL terminator) "555-8237"

A DirectPlay Address describing a TCP/IP connection

Initializing this connection will bind DirectPlay to the TCP/IP service provider and store the IP address. A subsequent call IDirectPlay3::EnumSessions will enumerate sessions on this server without asking the user for an IP address.

guidDataType dwDataSize Data
DPAID_ServiceProvider 16 {36E95EE0-8577-11cf-960C-0080C7534E82}
DPAID_INet 10 (including NULL terminator) "127.0.0.1"