Nuta
Dostęp do tej strony wymaga autoryzacji. Możesz spróbować się zalogować lub zmienić katalog.
Dostęp do tej strony wymaga autoryzacji. Możesz spróbować zmienić katalogi.
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 |