getTargetDeviceFamilies method
Throws a WindowsException on failure.
Implementation
IAppxManifestTargetDeviceFamiliesEnumerator? getTargetDeviceFamilies() {
final targetDeviceFamilies = adaptiveCalloc<VTablePointer>();
final hr$ = HRESULT(_GetTargetDeviceFamiliesFn(ptr, targetDeviceFamilies));
if (hr$.isError) {
free(targetDeviceFamilies);
throw WindowsException(hr$);
}
final result$ = targetDeviceFamilies.value;
free(targetDeviceFamilies);
if (result$.isNull) return null;
return .new(result$);
}