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

# HCGetHttpCallPerformFunction

> HCGetHttpCallPerformFunction

# HCGetHttpCallPerformFunction

傳回目前的 HCCallPerformFunction 回呼，此回呼會在目前平台上實作 HTTP 執行函式。

## 語法

```cpp theme={null}
HRESULT HCGetHttpCallPerformFunction(  
         HCCallPerformFunction* performFunc,  
         void** performContext  
)  
```

### 參數

*performFunc*   \_Out\_\
類型：HCCallPerformFunction\*

設為目前的 HTTP 執行函式。如果先前未設定，則傳回預設常式。

*performContext*   \_Out\_\
類型：void\*\*

回呼的內容。

### 傳回值

類型：HRESULT

此 API 作業的結果代碼。可能的值為 S\_OK、E\_HC\_ALREADY\_INITIALISED 或 E\_INVALIDARG。

## 備註

這可以與 HCSetHttpCallPerformFunction() 搭配使用，以建置可監視並修改所有 HTTP 呼叫的篩選器，同時仍使用預設的 HTTP 實作。

## 需求

**標頭：** httpProvider.h

**程式庫：** libHttpClient.GDK.lib

## 另請參閱

[httpProvider](/zh-TW/reference/live/httpclient/httpprovider/httpprovider_members)


## Related topics

- [HCSetHttpCallPerformFunction](/zh-TW/reference/live/httpclient/httpprovider/functions/hcsethttpcallperformfunction.md)
- [HCHttpCallPerformAsync](/zh-TW/reference/live/httpclient/httpclient/functions/hchttpcallperformasync.md)
- [XblHttpCallPerformAsync](/zh-TW/reference/live/xsapi-c/http_call_c/functions/xblhttpcallperformasync.md)
- [XblHttpCallGetResponseString](/zh-TW/reference/live/xsapi-c/http_call_c/functions/xblhttpcallgetresponsestring.md)
- [XblHttpCallGetResponseBodyBytes](/zh-TW/reference/live/xsapi-c/http_call_c/functions/xblhttpcallgetresponsebodybytes.md)
