This method of the DirectPlayLobby Class runs a DirectPlay application.
public void runApplication(int[] applicationId, int connectionFlags, DPSessionDesc sessionDesc, _Guid sessionGuid, _Guid applicationGud, String sessionName, String password, String playerShortName, String playerLongName, _Guid spGuid, byte[] addressData, int addressSize, int receiveEvent);
applicationId | The application identifier. |
connectionFlags | Indicates how the connection should be made. This parameter can be one of the following flags:
Creates a new session as described in the session description. Joins the existing session as described in the session description. |
sessionDesc | A DPSessionDesc object describing the sessions to be enumerated. Only those sessions that meet the criteria set in this class will be enumerated. |
sessionGuid | The GUID of the DirectPlay session of interest. This parameter must be set to NULL unless the DPENUMPLAYERS_SESSION flag is specified. |
applicationGuid | The application GUID. |
sessionName | The Unicode string containing the name of the session. Use this member only if the IDirectPlay2 interface is in use. |
password | The Unicode string containing the password of the session. Use this member only if the IDirectPlay2 interface is in use. |
playerShortName | The short name that the player should be created with. This will be the name of the person registered in the lobby. The application can ignore this name. |
playerLongName | The long name that the player should be created with. |
spGuid | The GUID of the service provider used to connect to the session. |
addressData | The information that the service provider needs to connect to a session. |
addressSize | Address data size (in bytes). |
receiveEvent | The event handle set when a message is received. |