PFMultiplayerDestroyMatchmakingTicket

Destroys the matchmaking ticket.

Syntax

HRESULT PFMultiplayerDestroyMatchmakingTicket(  
    PFMultiplayerHandle handle,  
    PFMatchmakingTicketHandle ticket  
)  

Parameters

handle   PFMultiplayerHandle

The handle of the PFMultiplayer API instance.

ticket   PFMatchmakingTicketHandle

The ticket to destroy.

Return value

Type: HRESULT

S_OK if the call succeeded or an error code otherwise. The human-readable form of the error code can be retrieved via PFMultiplayerGetErrorMessage().

Remarks

This method destroys the matchmaking ticket and reclaims local resources associated with it. If the ticket has not yet completed, a background operation will perform a single best-effort attempt to cancel the ticket with the matchmaking service.

Requirements

Header: PFMatchmaking.h

See also

PFMatchmaking members