Click or drag to resize

GetWriteBufferSize

Indicates the size of the I/O write buffer.

virtual HRESULT GetWriteBufferSize(long* pcbSize) sealed override;
Parameters
pcbSize

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

Return Value

Returns S_OK if successful, otherwise a failure HRESULT.

Remarks

The default size of the write buffer is 4096 bytes.

Example

The following example demonstrates use of the GetWriteBufferSize function.

C++
// CoAcme4321.cpp
HRESULT Acme4321::OnFinalInitialize()
{
  HRESULT hr = S_OK;

  long cbSize;
  hr = io.GetWriteBufferSize(&cbSize);

  return hr;
}
See Also

Download a complete CHM version of this documentation here.