GetMediaComponentPackageInfo function (comppkgsup.h)

Returns a list of properties for all media codecs installed on the system that meet the specified requirements.

Syntax

HRESULT GetMediaComponentPackageInfo(
  [in]  bool                                                                                               trustedOnly,
  [in]  HSTRING                                                                                            category,
  [out] ABI::Windows::Foundation::Collections::IVector<ABI::Windows::Foundation::Collections::IPropertySet *>**codecPropertiesVector
);

Parameters

[in] trustedOnly

True if the query should only return properties for packages that run in the app's process space; false if the query should include packages that run in a separate app service.

[in] category

A string that specifies the category of packages that should be included in the results.

[out] codecPropertiesVector

A list of IPropertySet objects representing the properties of the installed media component packages that meet the specified criteria.

Return value

Returns S_OK on successful completion.

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