共用方式為


CSourceSeeking::GetTimeFormat

 
Microsoft DirectShow 9.0

CSourceSeeking::GetTimeFormat

The GetTimeFormat method retrieves the current time format. This method implements the IMediaSeeking::GetTimeFormat method.

Syntax

  HRESULT GetTimeFormat(
    const GUID *pFormat
);

Parameters

pFormat

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

Return Value

Returns one of the HRESULT values listed in the following table.

Value Description
S_OK Success
E_POINTER NULL pointer value

Remarks

The only time format supported by the base class is TIME_FORMAT_MEDIA_TIME (100-nanosecond units).

Requirements

**  Header:** Declared in Ctlutil.h; include Streams.h.

**  Library:** Use Strmbase.lib (retail builds) or Strmbasd.lib (debug builds).

See Also