ReactOS 0.4.17-dev-243-g1369312
CEnumInstalledRootKey Class Reference

Public Member Functions

 CEnumInstalledRootKey ()
 
HKEY Get (REGSAM &RegSam)
 
void Next ()
 
UINT GetKeyIndex () const
 

Private Attributes

UINT m_Count
 
UINT m_Index = 0
 

Detailed Description

Definition at line 34 of file appdb.cpp.

Constructor & Destructor Documentation

◆ CEnumInstalledRootKey()

CEnumInstalledRootKey::CEnumInstalledRootKey ( )
inline

Definition at line 44 of file appdb.cpp.

45 {
46 // We don't want to display duplicate entries on systems without WoW64 keys support.
47 // When ROS starts supporting the WOW REGSAM flags,
48 // this code can be changed back to IsSystem64Bit() ? 3 : 2.
51 }
#define UNINSTALL_SUBKEY
Definition: appdb.cpp:19
BOOL IsSameRegKey(HKEY hRoot, LPCWSTR Path1, REGSAM Sam1, LPCWSTR Path2, REGSAM Sam2)
Definition: misc.cpp:476
#define HKEY_LOCAL_MACHINE
Definition: winreg.h:12
#define KEY_WOW64_32KEY
Definition: cmtypes.h:45
#define KEY_WOW64_64KEY
Definition: cmtypes.h:46

Member Function Documentation

◆ Get()

HKEY CEnumInstalledRootKey::Get ( REGSAM RegSam)
inline

Definition at line 53 of file appdb.cpp.

54 {
55 return m_Index < m_Count ? GetRootKeyInfo(m_Index, RegSam) : NULL;
56 }
static HKEY GetRootKeyInfo(UINT Index, REGSAM &RegSam)
Definition: appdb.cpp:23
#define NULL
Definition: types.h:112

◆ GetKeyIndex()

UINT CEnumInstalledRootKey::GetKeyIndex ( ) const
inline

Definition at line 63 of file appdb.cpp.

64 {
65 return m_Index;
66 }

◆ Next()

void CEnumInstalledRootKey::Next ( )
inline

Definition at line 58 of file appdb.cpp.

59 {
60 m_Index++;
61 }

Member Data Documentation

◆ m_Count

UINT CEnumInstalledRootKey::m_Count
private

Definition at line 40 of file appdb.cpp.

Referenced by CEnumInstalledRootKey(), and Get().

◆ m_Index

UINT CEnumInstalledRootKey::m_Index = 0
private

Definition at line 41 of file appdb.cpp.

Referenced by Get(), GetKeyIndex(), and Next().


The documentation for this class was generated from the following file: