次の方法で共有


IMediaParamInfo::GetSupportedTimeFormat

The GetSupportedTimeFormat method retrieves a supported time format.

Syntax

HRESULT GetSupportedTimeFormat(
    DWORD dwFormatIndex,
    GUID *pguidTimeFormat
);

Parameters

dwFormatIndex

[in] Index of the time format to retrieve.

pguidTimeFormat

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

Return Values

Returns an HRESULT value. Possible values include the following.

Return Code Description
E_INVALIDARG Index out of range.
E_POINTER NULL pointer argument.
S_OK Success.

Remarks

Call the GetNumTimeFormats method to retrieve the number of time formats that the object supports.

Requirements

  Header: Medparam.h
  Library: Dmoguids.lib.

See Also

© 2004 Microsoft Corporation. All rights reserved.