> ## 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 执行函数。

## Syntax

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

### Parameters

*performFunc*   \_Out\_\
Type: HCCallPerformFunction\*

设置为当前的 HTTP 执行函数。如果之前未设置，则返回默认例程。

*performContext*   \_Out\_\
Type: void\*\*

回调的上下文。

### Return value

Type: HRESULT

此 API 操作的结果代码。可能的值为 S\_OK、E\_HC\_ALREADY\_INITIALISED 或 E\_INVALIDARG。

## Remarks

此方法可与 HCSetHttpCallPerformFunction() 一起使用，以构建一个筛选器来监视并修改所有 HTTP 调用，同时仍使用默认的 HTTP 实现。

## Requirements

**Header:** httpProvider.h

**Library:** libHttpClient.GDK.lib

## See also

[httpProvider](/reference/live/httpclient/httpprovider/httpprovider_members)


## Related topics

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