> ## 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.

# PFEntityGetEntityTokenResult

> Obtiene el resultado de una llamada correcta a PFEntityGetEntityTokenAsync.

Obtiene el resultado de una llamada correcta a PFEntityGetEntityTokenAsync.

## Sintaxis

```cpp theme={null}
HRESULT PFEntityGetEntityTokenResult(  
    XAsyncBlock* async,  
    size_t bufferSize,  
    void* buffer,  
    const PFEntityToken** entityToken,  
    size_t* bufferUsed  
)  
```

### Parámetros

**`async`**   XAsyncBlock\*<br />*Inout*

XAsyncBlock para la operación asincrónica.

**`bufferSize`**   size\_t

El tamaño del búfer para el objeto de resultado.

**`buffer`**   void\*<br />\**Out\_writes\_bytes\_to*(bufferSize,*bufferUsed)*

Búfer de bytes usado para el valor de resultado y sus campos.

**`entityToken`**   [PFEntityToken\*\*](/services/playfab/api-references/c/pfentity/structs/pfentitytoken)<br />*library-allocated output*

Puntero al objeto EntityToken.

**`bufferUsed`**   size\_t\*<br />*optional output*

El número de bytes del búfer proporcionado que se usaron.

### Valor devuelto

Tipo: HRESULT

Código de resultado de esta operación de API.

## Comentarios

entityToken es un puntero dentro de buffer y no es necesario liberarlo por separado.

## Requisitos

**Encabezado:** PFEntity.h

## Consulte también

[Miembros de PFEntity](/services/playfab/api-references/c/pfentity/pfentity_members)


## Related topics

- [Información general de la API de C de Services - PFEntity.h](/es/services/playfab/api-references/c/pfentity/pfentity_members.md)
- [Identificadores de entidad](/es/services/playfab/sdks/c/entity-handles.md)
- [PFEntityGetEntityTokenResultSize](/es/services/playfab/api-references/c/pfentity/functions/pfentitygetentitytokenresultsize.md)
- [PFAuthenticationValidateEntityTokenGetResult](/es/services/playfab/api-references/c/pfauthentication/functions/pfauthenticationvalidateentitytokengetresult.md)
- [PFAuthenticationValidateEntityTokenGetResultSize](/es/services/playfab/api-references/c/pfauthentication/functions/pfauthenticationvalidateentitytokengetresultsize.md)
