Windows Media Format SDK banner art
PreviousNext

IMDSPObject::Seek

The Seek method sets the current position within the object.

Syntax

HRESULT Seek(
  UINT  fuFlags,
  DWORD  dwOffset
);

Parameters

  fuFlags

[in]  Mode of operation in which the file must be opened.

Query Description
MDSP_SEEK_BOF Seek dwOffset bytes forward from the beginning of the file.
MDSP_SEEK_CUR Seek dwOffset bytes forward from the current position.
MDSP_SEEK_EOF Seek dwOffset bytes backward from the end of the file.

  dwOffset

[in]  Double word containing the number of bytes to seek.

Return Values

If the method succeeds, it returns S_OK. If it fails, it returns an HRESULT error code.

Return code Description
WMDM_E_BUSY The media device is busy.
E_INVALIDARG The mode specified in fuFlags is invalid.
WMDM_E_INTERFACEDEAD The file or folder was previously deleted.
WMDM_E_NOTSUPPORTED Seeking is not supported on this medium.
E_FAIL An unspecified error occurred.

See Also

PreviousNext


© 1999 Microsoft Corporation. All rights reserved.