IMediaSeeking::QueryPreferredFormat method (strmif.h)

The QueryPreferredFormat method retrieves the preferred time format for seeking.

Syntax

HRESULT QueryPreferredFormat(
  GUID *pFormat
);

Parameters

pFormat

Pointer to a variable that receives a GUID specifying the time format. See Time Format GUIDs.

Return value

Returns an HRESULT value. Possible values include the following.

Return code Description
S_OK
Success.
E_NOTIMPL
Not implemented.
E_POINTER
NULL pointer argument.

Requirements

   
Minimum supported client Windows 2000 Professional [desktop apps only]
Minimum supported server Windows 2000 Server [desktop apps only]
Target Platform Windows
Header strmif.h (include Dshow.h)
Library Strmiids.lib

See also

Error and Success Codes

IMediaSeeking Interface

IMediaSeeking::SetTimeFormat