HttpSetContext

Associates a user-defined context handle with the HINTERNET handle.

Syntax

    #include <httpexp.h>
    
    int HttpSetContext (
      HINTERNET    hndl,
      UINT32_PTR   pContext);
    

Parameters

hndl
(IN) Specifies an HINTERNET handle.
pContext
(IN) Specifies the local context.

Return Values

If successful, returns 0. Otherwise, returns a nonzero error code.

Decimal

Name

Description

255

ERR_BAD_PARAMETER

Invalid handle.

See Also

HttpGetContext.