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

> Obtém o resultado de uma chamada bem-sucedida de PFEntityGetEntityTokenAsync.

Obtém o resultado de uma chamada bem-sucedida de PFEntityGetEntityTokenAsync.

## Sintaxe

```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 a operação assíncrona.

**`bufferSize`**   size\_t

O tamanho do buffer para o objeto de resultado.

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

Buffer de bytes usado para o valor de resultado e seus campos.

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

Ponteiro para o objeto EntityToken.

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

O número de bytes usados no buffer fornecido.

### Valor de retorno

Tipo: HRESULT

Código de resultado desta operação de API.

## Comentários

entityToken é um ponteiro dentro do buffer e não precisa ser liberado separadamente.

## Requisitos

**Cabeçalho:** PFEntity.h

## Confira também

[Membros de PFEntity](/pt-BR/services/playfab/api-references/c/pfentity/pfentity_members)


## Related topics

- [Visão geral da API C de serviços - PFEntity.h](/pt-BR/services/playfab/api-references/c/pfentity/pfentity_members.md)
- [Identificadores de entidade](/pt-BR/services/playfab/sdks/c/entity-handles.md)
- [PFEntityGetEntityTokenResultSize](/pt-BR/services/playfab/api-references/c/pfentity/functions/pfentitygetentitytokenresultsize.md)
- [PFAuthenticationValidateEntityTokenGetResult](/pt-BR/services/playfab/api-references/c/pfauthentication/functions/pfauthenticationvalidateentitytokengetresult.md)
- [Get Entity Token](/api-reference/authentication/get-entity-token.md)
