Update Shell

This commit is contained in:
Bruce
2025-11-27 10:20:29 +08:00
parent a3b3b097b2
commit bd4e0b41a3
8 changed files with 81 additions and 47 deletions
+5 -2
View File
@@ -701,7 +701,7 @@ HRESULT FindAppxPackage (LPCWSTR lpPackageFullName, PKGMGR_FINDENUMCALLBACK pfCa
LPCWSTR GetPackageManagerLastErrorCode () { return g_swExceptionCode.c_str (); }
[STAThread]
LPCWSTR GetPackageManagerLastErrorDetailMessage () { return g_swExceptionDetail.c_str (); }
[STAThread]
HRESULT ActivateAppxApplication (LPCWSTR lpAppUserId, PDWORD pdwProcessId)
{
if (FAILED (CoInitializeEx (NULL, COINIT_APARTMENTTHREADED))) return E_INVALIDARG;
@@ -830,4 +830,7 @@ HRESULT FindAppxPackagesByFamilyName (LPCWSTR lpPkgFamilyName, PKGMGR_FINDENUMCA
if (pfCallback) pfCallback ((FIND_PACKAGE_INFO *)bytes.data (), pCustom);
}, pErrorCode, pDetailMsg);
}
void PackageManagerFreeString (LPWSTR lpString) { if (lpString) free (lpString); }
void PackageManagerFreeString (LPWSTR lpString)
{
if (lpString) free (lpString);
}