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

# PFAuthenticationServerLoginWithPSNGetResult

> Obtiene el resultado de una llamada a PFAuthenticationServerLoginWithPSNAsync. El PFEntityHandle siempre se devolverá, pero la información adicional en PFAuthenticationLoginResult solo se devuelve si se proporciona un búfer.

Obtiene el resultado de una llamada a PFAuthenticationServerLoginWithPSNAsync. El PFEntityHandle siempre se devolverá, pero la información adicional en PFAuthenticationLoginResult solo se devuelve si se proporciona un búfer.

## Sintaxis

```cpp theme={null}
HRESULT PFAuthenticationServerLoginWithPSNGetResult(  
    XAsyncBlock* async,  
    const PFAuthenticationEntityTokenResponse** entityTokenResponse,  
    size_t bufferSize,  
    void* buffer,  
    const PFAuthenticationLoginResult** result,  
    size_t* bufferUsed  
)  
```

### Parámetros

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

XAsyncBlock para la operación asincrónica.

**`entityTokenResponse`**   [PFAuthenticationEntityTokenResponse\*\*](/es/services/playfab/api-references/c/pfauthenticationtypes/structs/pfauthenticationentitytokenresponse)<br />*library-allocated output*

Por determinar

**`bufferSize`**   size\_t

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 del resultado de Login y sus campos.

**`result`**   [PFAuthenticationLoginResult\*\*](/es/services/playfab/api-references/c/pfauthenticationtypes/structs/pfauthenticationloginresult)<br />*optional, library-allocated output*

Puntero al objeto LoginResult.

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

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. Si la llamada al servicio no se realiza correctamente, el resultado será 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 o cualquiera de los errores globales de PlayFab Service. Consulte la página de documentación "Handling PlayFab Errors" para obtener más detalles sobre el control de errores.

## Comentarios

Si se produce un error en la llamada a PFAuthenticationServerLoginWithPSNAsync, entityHandle será null. De lo contrario, el identificador debe cerrarse con PFEntityCloseHandle cuando ya no sea necesario. Si se devuelve, 'result' es un puntero dentro de 'buffer' y no es necesario liberarlo por separado.

## Requisitos

**Encabezado:** PFAuthentication.h

## Consulte también

[Miembros de PFAuthentication](/es/services/playfab/api-references/c/pfauthentication/pfauthentication_members)


## Related topics

- [PFAuthenticationServerLoginWithPSNAsync](/es/services/playfab/api-references/c/pfauthentication/functions/pfauthenticationserverloginwithpsnasync.md)
- [PFAuthenticationServerLoginWithPSNGetResultSize](/es/services/playfab/api-references/c/pfauthentication/functions/pfauthenticationserverloginwithpsngetresultsize.md)
- [PFAuthenticationServerLoginWithCustomIDGetResult](/es/services/playfab/api-references/c/pfauthentication/functions/pfauthenticationserverloginwithcustomidgetresult.md)
- [PFAuthenticationServerLoginWithIOSDeviceIDGetResult](/es/services/playfab/api-references/c/pfauthentication/functions/pfauthenticationserverloginwithiosdeviceidgetresult.md)
- [PFAuthenticationServerLoginWithXboxGetResult](/es/services/playfab/api-references/c/pfauthentication/functions/pfauthenticationserverloginwithxboxgetresult.md)
