Export (0) Print
Expand All

CSourceSeeking.GetDuration method

The GetDuration method retrieves the duration of the stream. This method implements the IMediaSeeking::GetDuration method.

Syntax


HRESULT GetDuration(
  LONGLONG *pDuration
);

Parameters

pDuration

Pointer to a variable that receives the duration, in units of the current time format.

Return value

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

Return codeDescription
S_OK

Success

E_POINTER

NULL pointer value

 

Remarks

The duration is specified by the CSourceSeeking::m_rtDuration member variable.

Requirements

Header

Ctlutil.h (include Streams.h)

Library

Strmbase.lib (retail builds);
Strmbasd.lib (debug builds)

See also

CSourceSeeking Class

 

 

Community Additions

ADD
Show:
© 2014 Microsoft