> ## Documentation Index
> Fetch the complete documentation index at: https://docs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# PFServiceConfigGetAPIEndpoint

> 获取服务配置的 API 终结点。

获取服务配置的 API 终结点。

## 语法

```cpp theme={null}
HRESULT PFServiceConfigGetAPIEndpoint(  
    PFServiceConfigHandle handle,  
    size_t apiEndpointSize,  
    char* apiEndpoint,  
    size_t* apiEndpointUsed  
)  
```

### 参数

**`handle`**   PFServiceConfigHandle

ServiceConfig 句柄。

**`apiEndpointSize`**   size\_t

提供的缓冲区大小。所需的大小可通过 PFServiceConfigGetAPIEndpointSize 获取。

**`apiEndpoint`**   char\*\
*Out\_writes(apiEndpointSize)*

用于写入 API 终结点字符串的缓冲区。

**`apiEndpointUsed`**   size\_t\*\
*optional output*

缓冲区中已使用的字节数，包括 null 终止符。

### 返回值

类型：HRESULT

此 API 操作的结果代码。

## 要求

**头文件：** PFServiceConfig.h

## 另请参阅

[PFServiceConfig 成员](https://docs.xbox.com/zh-CN/services/playfab/api-references/c/pfserviceconfig/pfserviceconfig_members.md)


## Related topics

- [服务 C API 概览 - PFServiceConfig.h](https://docs.xbox.com/zh-CN/services/playfab/api-references/c/pfserviceconfig/pfserviceconfig_members.md)
- [SDK 生命周期](https://docs.xbox.com/zh-CN/services/playfab/sdks/c/lifecycle.md)
- [PFServiceConfigGetAPIEndpointSize](https://docs.xbox.com/zh-CN/services/playfab/api-references/c/pfserviceconfig/functions/pfserviceconfiggetapiendpointsize.md)
- [PFEntityGetAPIEndpoint](https://docs.xbox.com/zh-CN/services/playfab/api-references/c/pfentity/functions/pfentitygetapiendpoint.md)
- [PartyEndpoint::GetLocal](https://docs.xbox.com/zh-CN/services/playfab/multiplayer/networking/reference/classes/PartyEndpoint/methods/partyendpoint_getlocal.md)
