Compartilhar via


HCMockCallCreate

Creates a mock HTTP call handle.

Syntax

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