Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Gets the list of capabilities requested by the package.
Syntax
HRESULT GetCapabilities(
[out, retval] APPX_CAPABILITIES *capabilities
);
Parameters
[out, retval] capabilities
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
Requirement | Value |
---|---|
Minimum supported client | Windows 8 [desktop apps only] |
Minimum supported server | Windows Server 2012 [desktop apps only] |
Target Platform | Windows |
Header | appxpackaging.h |