MFCreateASFMediaSinkActivate function (wmcontainer.h)

Creates an activation object that can be used to create the ASF media sink.

Syntax

HRESULT MFCreateASFMediaSinkActivate(
  LPCWSTR           pwszFileName,
  IMFASFContentInfo *pContentInfo,
  IMFActivate       **ppIActivate
);

Parameters

pwszFileName

Null-terminated wide-character string that contains the output file name.

pContentInfo

A pointer to the IMFASFContentInfo interface of an initialized ASF Header Object object. Use this interface to configure the ASF media sink.

ppIActivate

Receives a pointer to the IMFActivate 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 only]
Minimum supported server Windows Server 2008 [desktop apps only]
Target Platform Windows
Header wmcontainer.h
Library Mf.lib
DLL Mf.dll

See also

Activation Objects

Media Foundation Functions