PartyNetwork::DisconnectChatControl

Disconnects the local chat control from the network.

Syntax

PartyError DisconnectChatControl(  
    PartyLocalChatControl* chatControl,  
    void* asyncIdentifier  
)  

Parameters

chatControl   PartyLocalChatControl*

The chat control to disconnect from 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 disconnect 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().

Requirements

Header: Party.h

See also

PartyNetwork