ReactOS 0.4.15-dev-8138-g1e75ea8
appdb.h
Go to the documentation of this file.
1#pragma once
2
3#include <atlcoll.h>
4#include <atlpath.h>
5
6#include "appinfo.h"
7
8class CAppDB
9{
10 private:
14
15 BOOL
17
22
23 public:
24 CAppDB(const CStringW &path);
25
26 VOID
30 CAppInfo *
32
33 VOID
35 VOID
37 VOID
39
40 static DWORD
42
47 static HKEY
49
50 size_t GetAvailableCount() const
51 {
52 return m_Available.GetCount();
53 }
54};
Type
Definition: Type.h:7
AppsCategories
Definition: appinfo.h:25
size_t GetCount() const
Definition: atlcoll.h:539
Definition: appdb.h:9
static DWORD RemoveInstalledAppFromRegistry(const CAppInfo *Info)
Definition: appdb.cpp:315
VOID UpdateAvailable()
Definition: appdb.cpp:121
static CInstalledApplicationInfo * CreateInstalledAppByRegistryKey(LPCWSTR KeyName, HKEY hKeyParent, UINT KeyIndex)
Definition: appdb.cpp:169
CAvailableApplicationInfo * FindAvailableByPackageName(const CStringW &name)
Definition: appdb.cpp:38
CAppInfo * FindByPackageName(const CStringW &name)
Definition: appdb.h:31
CAtlList< CAppInfo * > m_Available
Definition: appdb.h:12
size_t GetAvailableCount() const
Definition: appdb.h:50
BOOL EnumerateFiles()
Definition: appdb.cpp:72
CPathW m_BasePath
Definition: appdb.h:11
static CInstalledApplicationInfo * EnumerateRegistry(CAtlList< CAppInfo * > *List, LPCWSTR Name)
Definition: appdb.cpp:198
VOID UpdateInstalled()
Definition: appdb.cpp:236
VOID GetApps(CAtlList< CAppInfo * > &List, AppsCategories Type) const
Definition: appdb.cpp:53
static HKEY EnumInstalledRootKey(UINT Index, REGSAM &RegSam)
Definition: appdb.cpp:157
CAtlList< CAppInfo * > m_Installed
Definition: appdb.h:13
VOID RemoveCached()
Definition: appdb.cpp:291
static CInstalledApplicationInfo * CreateInstalledAppInstance(LPCWSTR KeyName, BOOL User, REGSAM WowSam)
Definition: appdb.cpp:251
unsigned int BOOL
Definition: ntddk_ex.h:94
unsigned long DWORD
Definition: ntddk_ex.h:95
unsigned int UINT
Definition: ndis.h:50
Definition: name.c:39
_Must_inspect_result_ _In_ WDFCHILDLIST _In_ PWDF_CHILD_LIST_ITERATOR _Out_ WDFDEVICE _Inout_opt_ PWDF_CHILD_RETRIEVE_INFO Info
Definition: wdfchildlist.h:690
_In_ WDFCOLLECTION _In_ ULONG Index
_Must_inspect_result_ _In_ WDFDEVICE _In_ PCUNICODE_STRING KeyName
Definition: wdfdevice.h:2699
_Must_inspect_result_ _In_ WDFCMRESLIST List
Definition: wdfresource.h:550
ACCESS_MASK REGSAM
Definition: winreg.h:69
const WCHAR * LPCWSTR
Definition: xmlstorage.h:185