Microsoft DirectX 8.1 (Visual Basic) |
Sets the static settings of a client with an application. Call this method before connecting to relay basic player information with the application. After the client successfully connects with the application, information obtained through this method can be retrieved by the server by calling the DirectPlay8Server.GetClientInfo method.
SetClientInfo(PlayerInfo As DPN_PLAYER_INFO, _ [lFlags As CONST_DPNOPERATIONS]) As Long
Returns the asynchronous handle for this operation. This is the handle that is used in lAsyncHandle parameter of the DirectPlay8Client.CancelAsyncOperation method to cancel the request, if the request is processed asynchronously.
If the method fails, Err.Number can be set to one of the following values.
DPNERR_NOCONNECTION |
DPNERR_INVALIDFLAGS |
DPNERR_INVALIDPARAM |
Transmission of nonstatic information should be handled with the DirectPlay8Client.Send method because of the high cost of using the DirectPlay8Client.SetClientInfo method.
You can modify the client information with this method after connecting to the application. Calling this method after connection will call the DirectPlay8Event.InfoNotify method in the server's message handler.