Skip to content

GetReadBufferSize

Indicates the size of the I/O read buffer.

virtual HRESULT GetReadBufferSize(long* pcbSize) sealed override;

pcbSize

[out] Current size of the I/O read buffer.

Returns S_OK if successful, otherwise a failure HRESULT.

The default size of the read buffer is 4096 bytes.

The following example demonstrates use of the GetReadBufferSize function.

CoAcme4321.cpp
HRESULT Acme4321::OnFinalInitialize()
{
HRESULT hr = S_OK;
long cbSize;
hr = io.GetReadBufferSize(&cbSize);
return hr;
}