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

# HCMockCallCreate

> HCMockCallCreate

# HCMockCallCreate

Creates a mock HTTP call handle.

## Syntax

```cpp theme={null}
HRESULT HCMockCallCreate(  
         HCMockCallHandle* call  
)  
```

### Parameters

*call*   \_Out\_\
Type: HCMockCallHandle\*

The handle of the mock HTTP call.

### Return value

Type: HRESULT

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

## Remarks

First create a HTTP handle using HCMockCallCreate(). Then call HCMockResponseSet\*() to prepare the HC\_MOCK\_CALL\_HANDLE. Then call HCMockAddMock() to add it to the system.

## Requirements

**Header:** mock.h

**Library:** libHttpClient.GDK.lib

## See also

[mock](/reference/live/httpclient/mock/mock_members)


## Related topics

- [HCMockAddMock](/reference/live/httpclient/mock/functions/hcmockaddmock.md)
- [HCMockRemoveMock](/reference/live/httpclient/mock/functions/hcmockremovemock.md)
- [HCMockClearMocks](/reference/live/httpclient/mock/functions/hcmockclearmocks.md)
- [HCMockSetMockMatchedCallback](/reference/live/httpclient/mock/functions/hcmocksetmockmatchedcallback.md)
- [HCMockCallCloseHandle](/reference/live/httpclient/mock/functions/hcmockcallclosehandle.md)
