mirror of
https://github.com/reactos/reactos.git
synced 2024-10-15 05:37:44 +00:00
e44c9b6630
* [RAPPS] separate application-view from gui.cpp * [RAPPS] make the code looks more clear * [RAPPS] fix & improve tab-order handle * [RAPPS] now double-click / right-click & install an item will install exactly this app * [RAPPS] add handling for DWORD timestamp for InstallDate * [RAPPS] make the code setting column style more clear * [RAPPS] change the owner of popup-menu * [RAPPS] now the popup menu (the one when right-click listview) now belongs to application-view
55 lines
1.4 KiB
C++
55 lines
1.4 KiB
C++
#pragma once
|
|
|
|
#include <windef.h>
|
|
#include <atlstr.h>
|
|
|
|
class CInstalledApplicationInfo
|
|
{
|
|
public:
|
|
BOOL IsUserKey;
|
|
REGSAM WowKey;
|
|
HKEY hSubKey;
|
|
BOOL bIsUpdate = FALSE;
|
|
|
|
ATL::CStringW szKeyName;
|
|
|
|
CInstalledApplicationInfo(BOOL bIsUserKey, REGSAM RegWowKey, HKEY hKey);
|
|
BOOL GetApplicationRegString(LPCWSTR lpKeyName, ATL::CStringW& String);
|
|
BOOL GetApplicationRegDword(LPCWSTR lpKeyName, DWORD *lpValue);
|
|
BOOL UninstallApplication(BOOL bModify);
|
|
LSTATUS RemoveFromRegistry();
|
|
|
|
ATL::CStringW szDisplayName;
|
|
ATL::CStringW szDisplayVersion;
|
|
ATL::CStringW szPublisher;
|
|
ATL::CStringW szRegOwner;
|
|
ATL::CStringW szProductID;
|
|
ATL::CStringW szHelpLink;
|
|
ATL::CStringW szHelpTelephone;
|
|
ATL::CStringW szReadme;
|
|
ATL::CStringW szContact;
|
|
ATL::CStringW szURLUpdateInfo;
|
|
ATL::CStringW szURLInfoAbout;
|
|
ATL::CStringW szComments;
|
|
ATL::CStringW szInstallDate;
|
|
ATL::CStringW szInstallLocation;
|
|
ATL::CStringW szInstallSource;
|
|
ATL::CStringW szUninstallString;
|
|
ATL::CStringW szModifyPath;
|
|
|
|
~CInstalledApplicationInfo();
|
|
};
|
|
|
|
typedef BOOL(CALLBACK *APPENUMPROC)(CInstalledApplicationInfo * Info, PVOID param);
|
|
|
|
class CInstalledApps
|
|
{
|
|
ATL::CAtlList<CInstalledApplicationInfo *> m_InfoList;
|
|
|
|
public:
|
|
BOOL Enum(INT EnumType, APPENUMPROC lpEnumProc, PVOID param);
|
|
|
|
VOID FreeCachedEntries();
|
|
};
|
|
|