Compartir a través de


HCMockSetMockMatchedCallback

Add an intermediate callback that will be called when the specified mock is matched. This gives the client another opportunity to specify the mock response.

Syntax

HRESULT HCMockSetMockMatchedCallback(  
         HCMockCallHandle call,  
         HCMockMatchedCallback callback,  
         void* context  
)  

Parameters

call   _In_
Type: HCMockCallHandle

The matched mock.

callback   _In_
Type: HCMockMatchedCallback

Callback to be invoked when the mock is matched.

context   _In_opt_
Type: void*

Client context.

Return value

Type: HRESULT

Result code for this API operation. Possible values are S_OK, E_INVALIDARG, or E_FAIL.

Requirements

Header: mock.h

Library: libHttpClient.GDK.lib

See also

mock