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

# PFMatchmakingTicketGetCustomContext

> Recupera el valor de contexto personalizado, privado y del tamaño de un puntero de la aplicación asociado previamente a un vale de emparejamiento de PlayFab Multiplayer mediante la función de establecimiento.

Recupera el valor de contexto privado y personalizado del tamaño de un puntero de la aplicación asociado previamente a este objeto de vale.

## Sintaxis

```cpp theme={null}
HRESULT PFMatchmakingTicketGetCustomContext(  
    PFMatchmakingTicketHandle ticket,  
    void** customContext  
)  
```

### Parámetros

**`ticket`**   PFMatchmakingTicketHandle

El identificador del vale de emparejamiento.

**`customContext`**   void\*\*\
*salida, puede devolver nullptr*

El contexto personalizado de salida.

### Valor devuelto

Tipo: HRESULT

`S_OK` si la recuperación del contexto personalizado se realizó correctamente o un código de error en caso contrario. La forma legible del código de error se puede recuperar mediante [PFMultiplayerGetErrorMessage()](/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pfmultiplayer/functions/pfmultiplayergeterrormessage).

## Comentarios

Si aún no se ha establecido ningún contexto personalizado, el valor al que apunta `customContext` se establece en nullptr.

## Requisitos

**Encabezado:** PFMatchmaking.h

## Consulte también

[Miembros de PFMatchmaking](/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pfmatchmaking/pfmatchmaking_members)\
[PFMatchmakingTicketSetCustomContext](/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pfmatchmaking/functions/pfmatchmakingticketsetcustomcontext)


## Related topics

- [PFMatchmakingTicketSetCustomContext](/es/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pfmatchmaking/functions/pfmatchmakingticketsetcustomcontext.md)
- [Notas de la versión del SDK de C++ de PlayFab Multiplayer](/es/services/playfab/multiplayer/lobby/lobby-matchmaking-sdks/lobby-and-matchmaking-release-notes.md)
- [Información general de la API de C/C++ de PFMultiplayer - PFMatchmaking.h](/es/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pfmatchmaking/pfmatchmaking_members.md)
- [XblMatchmakingGetMatchTicketDetailsAsync](/es/reference/live/xsapi-c/matchmaking_c/functions/xblmatchmakinggetmatchticketdetailsasync.md)
- [PFMatchmakingTicketGetTicketId](/es/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pfmatchmaking/functions/pfmatchmakingticketgetticketid.md)
