IPrintReadStream::ReadBytes method (filterpipeline.h)

The ReadBytes method reads a number of bytes into a buffer.

Syntax

HRESULT ReadBytes(
  [out] void  *pvBuffer,
  [in]  ULONG cbRequested,
  [out] ULONG *pcbRead,
  [out] BOOL  *pbEndOfFile
);

Parameters

[out] pvBuffer

A pointer to the buffer that the bytes will be read into..

[in] cbRequested

The number of bytes that are requested for the read.

[out] pcbRead

A pointer to the number of bytes actually read.

[out] pbEndOfFile

A pointer to a BOOL value that indicates whether the end of file (EOF) was read.

Return value

ReadBytes returns an HRESULT value.

Requirements

Requirement Value
Target Platform Desktop
Header filterpipeline.h