> ## 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 成員](/zh-TW/services/playfab/api-references/c/pfserviceconfig/pfserviceconfig_members)


## Related topics

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