> ## Documentation Index
> Fetch the complete documentation index at: https://docs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# PFMultiplayer C/C++ API overview - PFMatchmaking.h

> Overview of the PFMatchmaking.h header in the PlayFab Multiplayer C/C++ API, listing the functions, structs, and enums used to manage matchmaking tickets.

## Functions

| Function | Description |
| - | - |
| [PFMatchmakingTicketCancel](https://docs.xbox.com/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pfmatchmaking/functions/pfmatchmakingticketcancel.md) | Cancels the ticket. |
| [PFMatchmakingTicketGetCustomContext](https://docs.xbox.com/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pfmatchmaking/functions/pfmatchmakingticketgetcustomcontext.md) | Retrieves the app's private, custom pointer-sized context value previously associated with this ticket object. |
| [PFMatchmakingTicketGetMatch](https://docs.xbox.com/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pfmatchmaking/functions/pfmatchmakingticketgetmatch.md) | Provides the match, if one has been found. |
| [PFMatchmakingTicketGetStatus](https://docs.xbox.com/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pfmatchmaking/functions/pfmatchmakingticketgetstatus.md) | Provides the matchmaking ticket status. |
| [PFMatchmakingTicketGetTicketId](https://docs.xbox.com/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pfmatchmaking/functions/pfmatchmakingticketgetticketid.md) | Provides the ticket ID. |
| [PFMatchmakingTicketSetCustomContext](https://docs.xbox.com/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pfmatchmaking/functions/pfmatchmakingticketsetcustomcontext.md) | Configures an optional, custom pointer-sized context value with this ticket object. |
| [PFMultiplayerCreateMatchmakingTicket](https://docs.xbox.com/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pfmatchmaking/functions/pfmultiplayercreatematchmakingticket.md) | Creates a matchmaking ticket for one or more local users. |
| [PFMultiplayerCreateServerBackfillTicket](https://docs.xbox.com/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pfmatchmaking/functions/pfmultiplayercreateserverbackfillticket.md) | Creates a server backfill ticket. |
| [PFMultiplayerDestroyMatchmakingTicket](https://docs.xbox.com/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pfmatchmaking/functions/pfmultiplayerdestroymatchmakingticket.md) | Destroys the matchmaking ticket. |
| [PFMultiplayerFinishProcessingMatchmakingStateChanges](https://docs.xbox.com/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pfmatchmaking/functions/pfmultiplayerfinishprocessingmatchmakingstatechanges.md) | Returns an array of matchmaking state changes that were being processed. |
| [PFMultiplayerJoinMatchmakingTicketFromId](https://docs.xbox.com/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pfmatchmaking/functions/pfmultiplayerjoinmatchmakingticketfromid.md) | Joins one or more multiple local users to a matchmaking ticket using a ticket ID and queue name. |
| [PFMultiplayerStartProcessingMatchmakingStateChanges](https://docs.xbox.com/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pfmatchmaking/functions/pfmultiplayerstartprocessingmatchmakingstatechanges.md) | Retrieves an array of all matchmaking state changes to process since the last such call. |

## Structures

| Structure | Description |
| - | - |
| [PFMatchmakingMatchDetails](https://docs.xbox.com/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pfmatchmaking/structs/pfmatchmakingmatchdetails.md) | The resulting match information found by a completed ticket. |
| [PFMatchmakingMatchMember](https://docs.xbox.com/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pfmatchmaking/structs/pfmatchmakingmatchmember.md) | A member of a match result. |
| [PFMatchmakingServerBackfillTicketConfiguration](https://docs.xbox.com/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pfmatchmaking/structs/pfmatchmakingserverbackfillticketconfiguration.md) | Defines the configuration for a server backfill ticket. |
| [PFMatchmakingTicketConfiguration](https://docs.xbox.com/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pfmatchmaking/structs/pfmatchmakingticketconfiguration.md) | Defines the configuration for a matchmaking ticket. |
| [PFMultiplayerPort](https://docs.xbox.com/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pfmatchmaking/structs/pfmultiplayerport.md) | A port used by a PlayFab Multiplayer Server. |
| [PFMultiplayerServerDetails](https://docs.xbox.com/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pfmatchmaking/structs/pfmultiplayerserverdetails.md) | Details about a PlayFab Multiplayer Server. |

## State changes

| State change | Description |
| - | - |
| [PFMatchmakingStateChange](https://docs.xbox.com/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pfmatchmaking/structs/pfmatchmakingstatechange.md) | A generic, base structure representation of an event or change in state in the Matchmaking library. |
| [PFMatchmakingTicketCompletedStateChange](https://docs.xbox.com/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pfmatchmaking/structs/pfmatchmakingticketcompletedstatechange.md) | Information specific to the *TicketCompleted* type of state change. |
| [PFMatchmakingTicketStatusChangedStateChange](https://docs.xbox.com/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pfmatchmaking/structs/pfmatchmakingticketstatuschangedstatechange.md) | Information specific to the *TicketStatusChanged* type of state change. |

## Enumerations

| Enumeration | Description |
| - | - |
| [PFMatchmakingStateChangeType](https://docs.xbox.com/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pfmatchmaking/enums/pfmatchmakingstatechangetype.md) | The types of state changes that can occur in the Matchmaking library. |
| [PFMatchmakingTicketStatus](https://docs.xbox.com/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pfmatchmaking/enums/pfmatchmakingticketstatus.md) | The possible states for a matchmaking ticket. |
| [PFMultiplayerProtocolType](https://docs.xbox.com/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pfmatchmaking/enums/pfmultiplayerprotocoltype.md) | The protocol type used for connecting to a PlayFab Multiplayer Server port. |


## Related topics

- [PFMultiplayer C/C++ API overview - PFMultiplayer.h](https://docs.xbox.com/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pfmultiplayer/pfmultiplayer_members.md)
- [PFMultiplayer C/C++ API overview - PFLobby.h](https://docs.xbox.com/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pflobby/pflobby_members.md)
- [PFMultiplayerCreateMatchmakingTicket](https://docs.xbox.com/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pfmatchmaking/functions/pfmultiplayercreatematchmakingticket.md)
- [PFMultiplayerDestroyMatchmakingTicket](https://docs.xbox.com/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pfmatchmaking/functions/pfmultiplayerdestroymatchmakingticket.md)
- [PFMultiplayerJoinMatchmakingTicketFromId](https://docs.xbox.com/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pfmatchmaking/functions/pfmultiplayerjoinmatchmakingticketfromid.md)
