An asynchronous moniker calls this method to provide data to the client as it becomes available during asynchronous bind operations.
HRESULT OnDataAvailable(
DWORD grfBSCF, //BSCF enumeration values
DWORD dwSize, //Length of data in bytes available from
// current bind operation
FORMATETC *pfmtetc, //Pointer to FORMATETC structure
STGMEDIUM *pstgmed //Pointer to STGMEDIUM structure
);
During asynchronous IMoniker::BindToStorage bind operations, an asynchronous moniker calls this method to provide data to the client as it becomes available.
Note that the behavior of the storage returned in pstgmed depends on the BINDF flags returned in IBindStatusCallback::GetBindInfo. This storage can be asynchronous or blocking, and the bind operation can follow a data pull model or a data push model. Furthermore, it is important to note that for BINDF_PULLDATA bind operations, it is not possible to seek backwards into data streams provided in IBindStatusCallback::OnDataAvailable. On the other hand, for data push model bind operations, it is commonly possible to seek back into a data stream and read any data that has been downloaded for an ongoing IMoniker::BindToStorage operation.
Windows NT: Use version 5.0 or later.
Windows: Unsupported.
Windows CE: Unsupported.
Header: Declared in urlmon.h.
BINDF, BSCF, IBindStatusCallback::GetBindInfo, IBindStatusCallback::OnDataAvailable