Skip to main content
Removes a mock that was added by HCMockAddMock.

Syntax

Parameters

call   _In_
Type: HCMockCallHandle
The matched mock.

Return value

Type: HRESULT Result code for this API operation. Possible values are S_OK, E_INVALIDARG if the mock wasn’t added, E_HC_NOT_INITIALISED, or E_FAIL.

Remarks

HCMockRemoveMock releases the reference that HCMockAddMock took. Call HCMockCallCloseHandle to close your own handle.

Requirements

Header: mock.h Library: libHttpClient.lib Supported platforms: Windows, XBOX One family consoles and XBOX Series consoles

See also

mock
Last modified on October 30, 2026