Microsoft DirectX 8.1 (Visual Basic)

DirectPlay8Peer.SetApplicationDesc

Changes the settings for the application that is being hosted. Only some settings can be changed.

SetApplicationDesc(AppDesc As DPN_APPLICATION_DESC, _
    lFlags As Long)

Parts

AppDesc
DPN_APPLICATION_DESC type that describes the application settings to modify.
lFlags
Reserved. Must be 0.

Error Codes

If the method fails, Err.Number can be set to the following value.

DPNERR_INVALIDFLAGS

Remarks

You can use this method to modify only the following members of the DPN_APPLICATION_DESC type.

You cannot set the lMaxPlayers member to a smaller value than the current number of players in the session.