A | B | C |  D | E | F |  G | H | I |  J | K | L |  M | N | O |  P | Q | R |  S | T | U |  V | W | X |  Y | Z



mmioSeek

The mmioSeek function changes the current file position in a file opened by using the mmioOpen function.

VB4-32,5,6
Declare Function mmioSeek Lib "winmm.dll" Alias "mmioSeek" (ByVal hmmio As Long, ByVal lOffset As Long, ByVal iOrigin As Long) As Long

Operating Systems Supported
Requires Windows NT 3.1 or later; Requires Windows 95 or later

Library
Winmm

Parameter Information
- hmmio
File handle of the file to seek in.

- lOffset
Offset to change the file position.

- iOrigin
Flags indicating how the offset specified by lOffset is interpreted. The following values are defined:
SEEK_CUR
Seeks to lOffset bytes from the current file position.
SEEK_END
Seeks to lOffset bytes from the end of the file.
SEEK_SET
Seeks to lOffset bytes from the beginning of the file.

Return Values
Returns the new file position, in bytes, relative to the beginning of the file. If there is an error, the return value is - 1.

Last update: 07 April 2006