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

# HCHttpCallSetContext

> HCHttpCallSetContext

# HCHttpCallSetContext

Sets the context pointer attached to this call object.

## Syntax

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

### Parameters

*call*   \_In\_\
Type: HCCallHandle

The handle of the HTTP call.

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

the context pointer attached to this call object.

### Return value

Type: HRESULT

Result code for this API operation. Possible values are S\_OK, E\_INVALIDARG, or E\_FAIL.

## Requirements

**Header:** httpProvider.h

**Library:** libHttpClient.GDK.lib

## See also

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


## Related topics

- [HCSetHttpCallPerformFunction](/reference/live/httpclient/httpprovider/functions/hcsethttpcallperformfunction.md)
- [XblContextSettingsSetLongHttpTimeout](/reference/live/xsapi-c/xbox_live_context_settings_c/functions/xblcontextsettingssetlonghttptimeout.md)
- [HCHttpCallResponseSetResponseBodyWriteFunction](/reference/live/httpclient/httpclient/functions/hchttpcallresponsesetresponsebodywritefunction.md)
- [HCHttpCallRequestSetRequestBodyReadFunction](/reference/live/httpclient/httpclient/functions/hchttpcallrequestsetrequestbodyreadfunction.md)
- [XblContextSettingsSetHttpRetryDelay](/reference/live/xsapi-c/xbox_live_context_settings_c/functions/xblcontextsettingssethttpretrydelay.md)
