Düzenle

Aracılığıyla paylaş


PartyNetwork::ConnectChatControl

Connects the local chat control to the network.

Syntax

PartyError ConnectChatControl(  
    PartyLocalChatControl* chatControl,  
    void* asyncIdentifier  
)  

Parameters

chatControl   PartyLocalChatControl*

The chat control to connect to this network.

asyncIdentifier   void*
optional

An optional, app-defined, pointer-sized context value that can be used to associate the completion state change with this call.

Return value

PartyError

c_partyErrorSuccess if the asynchronous operation to connect the chat control began, or an error code otherwise. If this method fails, no related state changes will be generated. The human-readable form of the error code can be retrieved via PartyManager::GetErrorMessage().

Remarks

On successful return, this method invalidates the memory for any array previously returned by GetChatControls() or PartyChatControl::GetNetworks() for chatControl, as it synchronously updates those arrays. PartyManager::StartProcessingStateChanges() also invalidates the memory for those arrays.

Requirements

Header: Party.h

See also

PartyNetwork