Seek Method
Collapse the table of content
Expand the table of content

IStream.Seek Method

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

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.

Namespace:  System.Runtime.InteropServices.ComTypes
Assembly:  mscorlib (in mscorlib.dll)

'Declaration
Sub Seek ( _
	dlibMove As Long, _
	dwOrigin As Integer, _
	plibNewPosition As IntPtr _
)

Parameters

dlibMove
Type: System.Int64
The displacement to add to dwOrigin.
dwOrigin
Type: System.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
Type: System.IntPtr
On successful return, contains the offset of the seek pointer from the beginning of the stream.

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

Windows Phone OS

Supported in: 8.1, 8.0

Show:
© 2017 Microsoft