HttpGetContext

Returns the context handle that was associated with the HINTERNET handle.

Syntax

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

Parameters

hndl
(IN) Specifies the HTTP stack handle.
pContext
(OUT) Points to where the context pointer is placed.

Return Values

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

Decimal

Name

Description

168

ERR_ACCESS_DENIED

Context is not set.

255

ERR_BAD_PARAMETER

Invalid handle.

See Also

HttpSetContext.