Seek method changes the seek pointer to a new location in the stream.
HRESULT Seek( LONGLONG dlibMove, DWORD dwOrigin, ULONGLONG *plibNewPosition );
The displacement that is added to the location that dwOrigin specifies.
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).
A pointer to the location where
Seek writes the value of the new seek pointer from the beginning of the stream.
Seek returns an HRESULT value.
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.