getPackageFullName method
Gets the package full name.
Throws a WindowsException on failure.
To learn more, see learn.microsoft.com/windows/win32/api/appxpackaging/nf-appxpackaging-iappxmanifestpackageid-getpackagefullname.
Implementation
PWSTR getPackageFullName() {
final packageFullName = adaptiveCalloc<Pointer<Utf16>>();
final hr$ = HRESULT(_GetPackageFullNameFn(ptr, packageFullName));
if (hr$.isError) {
free(packageFullName);
throw WindowsException(hr$);
}
final result$ = packageFullName.value;
free(packageFullName);
return .new(result$);
}