MMIOM_SEEK

The MMIOM_SEEK message is sent to an I/O procedure by the mmioSeek function to request that the current file position be moved.

MMIOM_SEEK 
lParam1 = (LPARAM) lNewFilePos 
lParam2 = (LPARAM) lChangeFlag 
 

Parameters

lNewFilePos
New file position. The meaning of this value is dependent on the flag specified in lChangeFlag.
lChangeFlag
Flag specifying how the file position is changed. The following values are defined:
SEEK_CUR
Move the file position to be lNewFilePos bytes from the current position. NewFilePos can be positive or negative.
SEEK_END
Move the file position to be lNewFilePos bytes from the end of the file.
SEEK_SET
Move the file position to be lNewFilePos bytes from the beginning of the file.

Return Values

Returns the new file position. If there is an error, the return value is – 1.

Remarks

The I/O procedure is responsible for maintaining the current file position in the lDiskOffset member of the MMIOINFO structure.

QuickInfo

  Windows NT: Requires version 3.1 or later.
  Windows: Requires Windows 95 or later.
  Windows CE: Unsupported.
  Header: Declared in mmsystem.h.

See Also

Multimedia File I/O Overview, Multimedia File I/O Messages, mmioSeek, MMIOINFO