Export (0) Print
Expand All

CAtlNavigateData::SetReadStatusCallback

Visual Studio .NET 2003

Call this method to assign a response processing callback function.

PFNATLSTATUSCALLBACK SetReadStatusCallback(
   PFNATLSTATUSCALLBACK pfn,
   DWORD_PTR dwData 
) throw( );

Parameters

pfn
A pointer to the response processing callback function, as defined by the PFNATLSTATUSCALLBACK typedef.
dwData
Context data that is to be passed to the callback function each time it is invoked.

Return Value

Returns a pointer to a previously assigned callback function, or NULL if no callback was assigned.

Remarks

If a read status callback is installed, the CAtlHttpClientT class will call the provided function whenever new response data arrives. This mechanism allows for the display of partial responses (such as images that are displayed incrementally) and progress bars.

Example

See the HttpClient Sample.

See Also

HTTP Client Services | CAtlNavigateData Overview | Class Members | GetReadStatusCallback | HTTP Client Reference

Show:
© 2014 Microsoft