IPrintReadStream::Seek method

The Seek method changes the seek pointer to a new location in the stream.

Syntax

HRESULT Seek(
  LONGLONG  dlibMove,
  DWORD     dwOrigin,
  ULONGLONG *plibNewPosition
);

Parameters

dlibMove

The displacement that is added to the location that dwOrigin specifies.

dwOrigin

The origin for the displacement that dlibMove specifies. The origin can be the beginning of the file (STREAM_SEEK_SET), the current seek pointer (STREAM_SEEK_CUR), or the end of the file (STREAM_SEEK_END).

plibNewPosition

A pointer to the location where Seek writes the value of the new seek pointer from the beginning of the stream.

Return Value

Seek returns an HRESULT value.

Remarks

The Seek method might block, for example, if seeking to the end of the stream.

This method is similar to the IStream::Seek and SetFilePointerEx methods. For more information about these methods, see the Microsoft Windows SDK documentation.

Requirements

   
Target Platform Desktop
Header filterpipeline.h