[RAPPS] CMainWindow: Make EnumInstalledAppProc and EnumAvailableAppProc methods

This commit is contained in:
Giannis Adamopoulos 2019-04-28 06:39:02 +03:00 committed by Mark Jansen
parent d8b773b190
commit 700f54c37b
No known key found for this signature in database
GPG key ID: B39240EE84BEAE8B
6 changed files with 36 additions and 25 deletions

View file

@ -129,7 +129,7 @@ VOID RemoveAppFromRegistry(INT Index)
}
}
BOOL EnumInstalledApplications(INT EnumType, BOOL IsUserKey, APPENUMPROC lpEnumProc)
BOOL EnumInstalledApplications(INT EnumType, BOOL IsUserKey, APPENUMPROC lpEnumProc, PVOID param)
{
DWORD dwSize = MAX_PATH, dwType, dwValue;
BOOL bIsSystemComponent, bIsUpdate;
@ -199,7 +199,7 @@ BOOL EnumInstalledApplications(INT EnumType, BOOL IsUserKey, APPENUMPROC lpEnumP
((EnumType == ENUM_INSTALLED_APPLICATIONS) && (!bIsUpdate)) || /* Applications only */
((EnumType == ENUM_UPDATES) && (bIsUpdate))) /* Updates only */
{
if (!lpEnumProc(ItemIndex, szDisplayName, &Info))
if (!lpEnumProc(ItemIndex, szDisplayName, &Info, param))
break;
}
else