Skip to main content
IAppxManifestReader::GetCapabilities method

Gets the list of capabilities requested by the package.

Syntax


HRESULT GetCapabilities(
  [out, retval]  APPX_CAPABILITIES *capabilities
);

Parameters

capabilities [out, retval]

Type: APPX_CAPABILITIES*

The list of capabilities requested by the package. This is a bitwise combination of the values of the enumeration.

Return value

Type: HRESULT

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

Remarks

Capabilities are specified using the Capability element in the package manifest.

If no package capabilities are defined in the manifest, this method returns S_OK with a zero value.

Requirements

Minimum supported client

Windows 8 [desktop apps only]

Minimum supported server

Windows Server 2012 [desktop apps only]

Header

AppxPackaging.h

IDL

AppxPackaging.idl

IID

IID_IAppxManifestReader is defined as 4e1bd148-55a0-4480-a3d1-15544710637c

See also

IAppxManifestReader