MFCreateSystemTimeSource function (mfidl.h)

Creates a presentation time source that is based on the system time.

Syntax

HRESULT MFCreateSystemTimeSource(
  IMFPresentationTimeSource **ppSystemTimeSource
);

Parameters

ppSystemTimeSource

Receives a pointer to the object's IMFPresentationTimeSource interface. The caller must release the interface.

Return value

The function returns an HRESULT. Possible values include, but are not limited to, those in the following table.

Return code Description
S_OK
The function succeeded.

Requirements

Requirement Value
Minimum supported client Windows Vista [desktop apps | UWP apps]
Minimum supported server Windows Server 2008 [desktop apps | UWP apps]
Target Platform Windows
Header mfidl.h
Library Mfplat.lib
DLL Mfplat.dll

See also

Media Foundation Functions