Partage via


HCMockResponseSetNetworkErrorCode

Set the network error code to return for the mock.

Syntax

HRESULT HCMockResponseSetNetworkErrorCode(  
         HCMockCallHandle call,  
         HRESULT networkErrorCode,  
         uint32_t platformNetworkErrorCode  
)  

Parameters

call   _In_
Type: HCMockCallHandle

The handle of the HTTP call.

networkErrorCode   _In_
Type: HRESULT

The network error code of the HTTP call.

platformNetworkErrorCode   _In_
Type: uint32_t

The platform specific network error code of the HTTP call to be used for logging / debugging.

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.141.GSDK.C.lib

See also

mock