IPrintReadStream::Seek method (filterpipeline.h)

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

Syntax

HRESULT Seek(
  [in]  LONGLONG  dlibMove,
  [in]  DWORD     dwOrigin,
  [out] ULONGLONG *plibNewPosition
);

Parameters

[in] dlibMove

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

[in] 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).

[out] 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

Requirement Value
Target Platform Desktop
Header filterpipeline.h