Export (0) Print
Expand All

IAppxManifestDeviceCapabilitiesEnumerator interface

Enumerates the device capabilities defined in the package manifest.

Members

The IAppxManifestDeviceCapabilitiesEnumerator interface inherits from the IUnknown interface. IAppxManifestDeviceCapabilitiesEnumerator also has these types of members:

Methods

The IAppxManifestDeviceCapabilitiesEnumerator interface has these methods.

MethodDescription
GetCurrent

Gets the device capability at the current position of the enumerator.

GetHasCurrent

Determines whether there is a device capability at the current position of the enumerator.

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

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_IAppxManifestDeviceCapabilitiesEnumerator is defined as 30204541-427b-4a1c-bacf-655bf463a540

See also

IAppxManifestReader::GetDeviceCapabilities

 

 

Show:
© 2014 Microsoft