Microsoft DirectX 8.1 (C++)

IMediaSeeking::QueryPreferredFormat

The QueryPreferredFormat method retrieves the preferred time format for the stream.

Syntax

HRESULT QueryPreferredFormat(
  GUID *pFormat
);

Parameters

pFormat

[out] 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.

Value Description
S_OK Success.
E_NOTIMPL Not implemented.
E_POINTER NULL pointer argument.

Remarks

If the returned format is not satisfactory, call the IMediaSeeking::IsFormatSupported method to query for other supported time formats.

See Also