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

# PFAuthenticationLoginWithPSNGetResult

> Obtient le résultat d'un appel à PFAuthenticationLoginWithPSNAsync. Le PFEntityHandle sera toujours retourné, mais les informations supplémentaires de PFAuthenticationLoginResult ne sont retournées que si une mémoire tampon est fournie.

Obtient le résultat d'un appel à PFAuthenticationLoginWithPSNAsync. Le PFEntityHandle sera toujours retourné, mais les informations supplémentaires de PFAuthenticationLoginResult ne sont retournées que si une mémoire tampon est fournie.

## Syntaxe

```cpp theme={null}
HRESULT PFAuthenticationLoginWithPSNGetResult(  
    XAsyncBlock* async,  
    PFEntityHandle* entityHandle,  
    size_t bufferSize,  
    void* buffer,  
    const PFAuthenticationLoginResult** result,  
    size_t* bufferUsed  
)  
```

### Paramètres

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

XAsyncBlock pour l'opération asynchrone.

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

PFEntityHandle qui peut être utilisé pour authentifier d'autres appels d'API PlayFab.

**`bufferSize`**   size\_t

Taille de la mémoire tampon pour l'objet de résultat.

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

Mémoire tampon d'octets utilisée pour la valeur de résultat de connexion et ses champs.

**`result`**   [PFAuthenticationLoginResult\*\*](/fr-CA/services/playfab/api-references/c/pfauthenticationtypes/structs/pfauthenticationloginresult)<br />*sortie facultative, allouée par la bibliothèque*

Pointeur vers l'objet LoginResult.

**`bufferUsed`**   size\_t\*<br />*sortie facultative*

Nombre d'octets utilisés dans la mémoire tampon fournie.

### Valeur de retour

Type : HRESULT

Code de résultat de cette opération d'API. Si l'appel de service échoue, le résultat sera E\_PF\_ENCRYPTION\_KEY\_MISSING, E\_PF\_EVALUATION\_MODE\_PLAYER\_COUNT\_EXCEEDED, E\_PF\_FEATURE\_NOT\_CONFIGURED\_FOR\_TITLE, E\_PF\_INVALID\_PARAMS, E\_PF\_INVALID\_PSN\_AUTH\_CODE, E\_PF\_INVALID\_PSN\_ISSUER\_ID, E\_PF\_PLAYER\_SECRET\_ALREADY\_CONFIGURED, E\_PF\_PLAYER\_SECRET\_NOT\_CONFIGURED, E\_PF\_PSN\_INACCESSIBLE, E\_PF\_PSN\_NEXT\_GEN\_NOT\_CONFIGURED\_FOR\_TITLE, E\_PF\_REQUEST\_VIEW\_CONSTRAINT\_PARAMS\_NOT\_ALLOWED ou l'une des erreurs globales du service PlayFab. Consultez la page de documentation « Handling PlayFab Errors » pour plus de détails sur la gestion des erreurs.

## Remarques

Si l'appel à PFAuthenticationLoginWithPSNAsync échoue, entityHandle sera null. Sinon, le handle doit être fermé avec PFEntityCloseHandle lorsqu'il n'est plus nécessaire. S'il est retourné, 'result' est un pointeur dans 'buffer' et n'a pas besoin d'être libéré séparément.

## Configuration requise

**En-tête :** PFAuthentication.h

## Voir aussi

[Membres de PFAuthentication](/fr-CA/services/playfab/api-references/c/pfauthentication/pfauthentication_members)


## Related topics

- [PFAuthenticationLoginWithPSNAsync](/fr-CA/services/playfab/api-references/c/pfauthentication/functions/pfauthenticationloginwithpsnasync.md)
- [PFAuthenticationLoginWithPSNGetResultSize](/fr-CA/services/playfab/api-references/c/pfauthentication/functions/pfauthenticationloginwithpsngetresultsize.md)
- [PFAuthenticationLoginWithXUserGetResult](/fr-CA/services/playfab/api-references/c/pfauthentication/functions/pfauthenticationloginwithxusergetresult.md)
- [PFAuthenticationLoginWithAppleGetResult](/fr-CA/services/playfab/api-references/c/pfauthentication/functions/pfauthenticationloginwithapplegetresult.md)
- [PFAuthenticationLoginWithCustomIDGetResult](/fr-CA/services/playfab/api-references/c/pfauthentication/functions/pfauthenticationloginwithcustomidgetresult.md)
