Read method

Reads data that the pluggable protocol handler gets.


HRESULT retVal = object.Read(pv, cb, pcbRead);


pv [in, out]

Type: void

The address of the buffer where the information will be stored.

cb [in]

Type: unsigned long

A ULONG value that indicates the size of the buffer.

pcbRead [out]

Type: unsigned long

The address of a ULONG value that indicates the amount of data stored in the buffer.


Developers who are implementing an asynchronous pluggable protocol must be prepared to have their implementation of IInternetProtocol::Read called a few times after it has returned S_FALSE.