IMediaSeeking::ConvertTimeFormat method

The ConvertTimeFormat method converts from one time format to another.

Syntax


HRESULT ConvertTimeFormat(
  [out]       LONGLONG *pTarget,
  [in]  const GUID     *pTargetFormat,
  [in]        LONGLONG Source,
  [in]  const GUID     *pSourceFormat
);

Parameters

pTarget [out]

Pointer to a variable that receives the converted time.

pTargetFormat [in]

Pointer to a GUID that specifies the target format. If NULL, the current format is used. See Time Format GUIDs.

Source [in]

Time value to be converted.

pSourceFormat [in]

Pointer to a GUID that specifies the format to convert. If NULL, the current format is used. See Time Format GUIDs.

Return value

Returns an HRESULT value. Possible values include the following.

Return codeDescription
S_OK

Success.

E_INVALIDARG

Conversion between these types is not supported.

E_NOTIMPL

Method is not supported.

E_POINTER

NULL pointer argument.

 

Requirements

Minimum supported client

Windows 2000 Professional [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

Strmif.h (include Dshow.h)

Library

Strmiids.lib

See also

Error and Success Codes
IMediaSeeking Interface

 

 

Show: