Partager via


HCGetHttpCallPerformFunction

Returns the current HCCallPerformFunction callback which implements the HTTP perform function on the current platform.

Syntax

HRESULT HCGetHttpCallPerformFunction(  
         HCCallPerformFunction* performFunc,  
         void** performContext  
)  

Parameters

performFunc   _Out_
Type: HCCallPerformFunction*

Set to the current HTTP perform function. Returns the default routine if not previously set.

performContext   _Out_
Type: void**

The context for the callback.

Return value

Type: HRESULT

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

Remarks

This can be used along with HCSetHttpCallPerformFunction() to build a filter that monitors and modifies all HTTP calls, while still using the default HTTP implementation.

Requirements

Header: httpProvider.h

Library: libHttpClient.GDK.lib

See also

httpProvider