Events
May 19, 6 PM - May 23, 12 AM
Calling all developers, creators, and AI innovators to join us in Seattle @Microsoft Build May 19-22.
Register todayThis browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
The mmioSeek function changes the current file position in a file opened by using the mmioOpen function.
LONG mmioSeek(
HMMIO hmmio,
LONG lOffset,
int iOrigin
);
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:
Returns the new file position, in bytes, relative to the beginning of the file. If there is an error, the return value is –1.
Seeking to an invalid location in the file, such as past the end of the file, might not cause mmioSeek to return an error, but it might cause subsequent I/O operations on the file to fail.
To locate the end of a file, call mmioSeek with lOffset set to zero and iOrigin set to SEEK_END.
Requirement | Value |
---|---|
Minimum supported client | Windows 2000 Professional [desktop apps only] |
Minimum supported server | Windows 2000 Server [desktop apps only] |
Target Platform | Windows |
Header | mmiscapi.h (include Mmiscapi.h, Windows.h) |
Library | Winmm.lib |
DLL | Winmm.dll |
Events
May 19, 6 PM - May 23, 12 AM
Calling all developers, creators, and AI innovators to join us in Seattle @Microsoft Build May 19-22.
Register today