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

# PFAuthenticationServerLoginWithPSNGetResultSize

> 获取存储 PFAuthenticationServerLoginWithPSNAsync 调用结果所需的大小（以字节为单位）。

获取存储 PFAuthenticationServerLoginWithPSNAsync 调用结果所需的大小（以字节为单位）。

## 语法

```cpp theme={null}
HRESULT PFAuthenticationServerLoginWithPSNGetResultSize(  
    XAsyncBlock* async,  
    size_t* bufferSize  
)  
```

### 参数

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

用于异步操作的 XAsyncBlock。

**`bufferSize`**   size\_t\*<br />*output*

结果所需的缓冲区大小（以字节为单位）。

### 返回值

类型：HRESULT

此 API 操作的结果代码。如果服务调用失败，结果将是 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 或任一全局 PlayFab 服务错误。有关错误处理的更多详细信息，请参阅文档页“处理 PlayFab 错误”。

## 要求

**头文件：** PFAuthentication.h

## 另请参阅

[PFAuthentication 成员](/zh-CN/services/playfab/api-references/c/pfauthentication/pfauthentication_members)


## Related topics

- [PFAuthenticationServerLoginWithCustomIDGetResultSize](/zh-CN/services/playfab/api-references/c/pfauthentication/functions/pfauthenticationserverloginwithcustomidgetresultsize.md)
- [PFAuthenticationServerLoginWithXboxGetResultSize](/zh-CN/services/playfab/api-references/c/pfauthentication/functions/pfauthenticationserverloginwithxboxgetresultsize.md)
- [PFAuthenticationServerLoginWithIOSDeviceIDGetResultSize](/zh-CN/services/playfab/api-references/c/pfauthentication/functions/pfauthenticationserverloginwithiosdeviceidgetresultsize.md)
- [PFAuthenticationServerLoginWithServerCustomIdGetResultSize](/zh-CN/services/playfab/api-references/c/pfauthentication/functions/pfauthenticationserverloginwithservercustomidgetresultsize.md)
- [PFAuthenticationServerLoginWithPSNGetResult](/zh-CN/services/playfab/api-references/c/pfauthentication/functions/pfauthenticationserverloginwithpsngetresult.md)
