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

# HCHttpCallGetContext

> HCHttpCallGetContext

# HCHttpCallGetContext

获取附加到此调用对象的上下文指针。

## Syntax

```cpp theme={null}
HRESULT HCHttpCallGetContext(  
         HCCallHandle call,  
         void** context  
)  
```

### Parameters

*call*   \_In\_\
Type: HCCallHandle

HTTP 调用的句柄。

*context*   \_In\_\
Type: void\*\*

附加到此调用对象的上下文指针。

### Return value

Type: HRESULT

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

## Requirements

**Header:** httpProvider.h

**Library:** libHttpClient.GDK.lib

## See also

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


## Related topics

- [HCHttpCallSetContext](/zh-CN/reference/live/httpclient/httpprovider/functions/hchttpcallsetcontext.md)
- [HCGetHttpCallPerformFunction](/zh-CN/reference/live/httpclient/httpprovider/functions/hcgethttpcallperformfunction.md)
- [HCHttpCallResponseGetResponseBodyWriteFunction](/zh-CN/reference/live/httpclient/httpprovider/functions/hchttpcallresponsegetresponsebodywritefunction.md)
- [HCHttpCallRequestGetRequestBodyReadFunction](/zh-CN/reference/live/httpclient/httpprovider/functions/hchttpcallrequestgetrequestbodyreadfunction.md)
- [HCHttpCallGetId](/zh-CN/reference/live/httpclient/httpclient/functions/hchttpcallgetid.md)
