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

Définit le pointeur de contexte attaché à cet objet d'appel.

## Syntaxe

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

### Paramètres

*call*   \_In\_\
Type : HCCallHandle

Handle de l'appel HTTP.

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

Le pointeur de contexte attaché à cet objet d'appel.

### Valeur de retour

Type : HRESULT

Code de résultat de cette opération d'API. Les valeurs possibles sont S\_OK, E\_INVALIDARG ou E\_FAIL.

## Configuration requise

**En-tête :** httpProvider.h

**Bibliothèque :** libHttpClient.GDK.lib

## Voir aussi

[httpProvider](/fr-CA/reference/live/httpclient/httpprovider/httpprovider_members)


## Related topics

- [HCSetHttpCallPerformFunction](/fr-CA/reference/live/httpclient/httpprovider/functions/hcsethttpcallperformfunction.md)
- [HCHttpCallResponseSetResponseBodyWriteFunction](/fr-CA/reference/live/httpclient/httpclient/functions/hchttpcallresponsesetresponsebodywritefunction.md)
- [HCHttpCallRequestSetRequestBodyReadFunction](/fr-CA/reference/live/httpclient/httpclient/functions/hchttpcallrequestsetrequestbodyreadfunction.md)
- [HCHttpCallGetContext](/fr-CA/reference/live/httpclient/httpprovider/functions/hchttpcallgetcontext.md)
- [XblHttpCallRequestSetLongHttpCall](/fr-CA/reference/live/xsapi-c/http_call_c/functions/xblhttpcallrequestsetlonghttpcall.md)
