GetMediaExtensionCommunicationFactory function (comppkgsup.h)

Creates a communication factory for registering a media extension.

Syntax

HRESULT GetMediaExtensionCommunicationFactory(
  [out] LPVOID *factory
);

Parameters

[out] factory

The communication factory.

Return value

If this function succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Remarks

Use this API to create and hold a reference count on the communication factory. Once the call to RegisterMediaExtensionForAppService has been made the reference count on the communication factory can be released.

Requirements

Requirement Value
Minimum supported client Windows 10 [desktop apps only]
Minimum supported server Windows Server 2016 [desktop apps only]
Target Platform Windows
Header comppkgsup.h
Library Comppkgsup.lib
DLL CompPkgSup.dll