Partager via


IMediaParamInfo::GetCurrentTimeFormat

The GetCurrentTimeFormat method retrieves the current time format.

Syntax

HRESULT GetCurrentTimeFormat(
    GUID *pguidTimeFormat,
    MP_TIMEDATA *pTimeData
);

Parameters

pguidTimeFormat

[out] Pointer to a variable that receives a time format GUID.

pTimeData

[out] Pointer to a variable that receives an MP_TIMEDATA value specifying the unit of measure for the new format.

Return Values

Returns an HRESULT value. Possible values include the following.

Return Code Description
E_POINTER NULL pointer argument.
S_OK Success.

Remarks

The meaning of the value returned in the pTimeData parameter depends on the time format GUID. For more information, see IMediaParams::SetTimeFormat.

Requirements

  Header: Medparam.h
  Library: Dmoguids.lib.

See Also

© 2004 Microsoft Corporation. All rights reserved.