PFMatchmakingTicketGetTicketId
Provides the ticket ID.
HRESULT PFMatchmakingTicketGetTicketId(
PFMatchmakingTicketHandle ticket,
const char** id
)
ticket
PFMatchmakingTicketHandle
The handle of the matchmaking ticket.
id
char**
library-allocated output
The ticket ID.
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().
The ticket ID will be an empty string if it has not yet been set. This can occur under one of the following conditions:
- The ticket is in the
PFMatchmakingTicketStatus::Creating
state - The ticket is in the
PFMatchmakingTicketStatus::Failed
state due to failure to submit a ticket to the matchmaking service - The ticket was canceled before it could be submitted to the matchmaking service
Header: PFMatchmaking.h