IStream.Seek(Int64, Int32, IntPtr) Method

Definition

Changes the seek pointer to a new location relative to the beginning of the stream, to the end of the stream, or to the current seek pointer.

public:
 void Seek(long dlibMove, int dwOrigin, IntPtr plibNewPosition);
public void Seek (long dlibMove, int dwOrigin, IntPtr plibNewPosition);
abstract member Seek : int64 * int * nativeint -> unit
Public Sub Seek (dlibMove As Long, dwOrigin As Integer, plibNewPosition As IntPtr)

Parameters

dlibMove
Int64

The displacement to add to dwOrigin.

dwOrigin
Int32

The origin of the seek. The origin can be the beginning of the file, the current seek pointer, or the end of the file.

plibNewPosition
IntPtr

On successful return, contains the offset of the seek pointer from the beginning of the stream.

Remarks

For more information, see the existing documentation for IStream::Seek in the MSDN Library.

Applies to