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

# 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\*<br />*Out\_writes(apiEndpointSize)*

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

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

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

### 返回值

类型：HRESULT

此 API 操作的结果代码。

## 要求

**头文件：** PFServiceConfig.h

## 另请参阅

[PFServiceConfig 成员](/services/playfab/api-references/c/pfserviceconfig/pfserviceconfig_members)


## Related topics

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