IAppxManifestDeviceCapabilitiesEnumerator interface (appxpackaging.h)
Enumerates the device capabilities defined in the package manifest.
Inheritance
The IAppxManifestDeviceCapabilitiesEnumerator interface inherits from the IUnknown interface. IAppxManifestDeviceCapabilitiesEnumerator also has these types of members:
Methods
The IAppxManifestDeviceCapabilitiesEnumerator interface has these methods.
IAppxManifestDeviceCapabilitiesEnumerator::GetCurrent Gets the device capability at the current position of the enumerator. |
IAppxManifestDeviceCapabilitiesEnumerator::GetHasCurrent Determines whether there is a device capability at the current position of the enumerator. |
IAppxManifestDeviceCapabilitiesEnumerator::MoveNext Advances the position of the enumerator to the next device capability. |
Remarks
Device capabilities are specified using the DeviceCapability element in the package manifest.
This object can be retrieved using the IAppxManifestReader::GetDeviceCapabilities method.
Examples
LPWSTR deviceCapability = NULL;
bool hasCurrent = false;
for (deviceCapabilitiesEnumerator->GetHasCurrent(&hasCurrent); hasCurrent == true;
deviceCapabilitiesEnumerator->MoveNext(&hasCurrent))
{
hr = deviceCapabilitiesEnumerator->GetCurrent(&deviceCapability);
...
if (deviceCapability)
{
CoTaskMemFree(deviceCapability);
}
}
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 |