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

# PFAuthenticationGetEntityGetResult

> Gets the result of a successful PFAuthenticationGetEntityAsync call.

Gets the result of a successful PFAuthenticationGetEntityAsync call.

## Syntax

```cpp theme={null}
HRESULT PFAuthenticationGetEntityGetResult(  
    XAsyncBlock* async,  
    PFEntityHandle* entityHandle  
)  
```

### Parameters

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

XAsyncBlock for the async operation.

**`entityHandle`**   PFEntityHandle\*<br />*output*

PFEntityHandle which can be used to authenticate other PlayFab API calls.

### Return value

Type: HRESULT

Result code for this API operation. If the service call is unsuccessful, the result will be E\_PF\_ENCRYPTION\_KEY\_BROKEN, E\_PF\_NO\_VALID\_CERTIFICATE\_FOR\_AAD or any of the global PlayFab Service errors. See doc page "Handling PlayFab Errors" for more details on error handling.

## Remarks

If the PFAuthenticationGetEntityAsync call fails, entityHandle with be null. Otherwise, the handle must be closed with PFEntityCloseHandle when it is no longer needed.

## Requirements

**Header:** PFAuthentication.h

## See also

[PFAuthentication members](/services/playfab/api-references/c/pfauthentication/pfauthentication_members)


## Related topics

- [PFAuthenticationGetEntityAsync](/services/playfab/api-references/c/pfauthentication/functions/pfauthenticationgetentityasync.md)
- [Services C API overview - PFAuthentication.h](/services/playfab/api-references/c/pfauthentication/pfauthentication_members.md)
- [PFAuthenticationGetEntityWithSecretKeyGetResult](/services/playfab/api-references/c/pfauthentication/functions/pfauthenticationgetentitywithsecretkeygetresult.md)
- [PFAuthenticationValidateEntityTokenGetResult](/services/playfab/api-references/c/pfauthentication/functions/pfauthenticationvalidateentitytokengetresult.md)
- [PFAuthenticationValidateEntityTokenGetResultSize](/services/playfab/api-references/c/pfauthentication/functions/pfauthenticationvalidateentitytokengetresultsize.md)
