ReactOS 0.4.16-dev-2354-g16de117
CEnumInstalledRootKey Class Reference

Public Member Functions

 CEnumInstalledRootKey ()
 
HKEY GetNext (REGSAM &RegSam)
 
UINT GetKeyIndex () const
 

Private Attributes

UINT m_Count
 
UINT m_Index = 0
 

Detailed Description

Definition at line 33 of file appdb.cpp.

Constructor & Destructor Documentation

◆ CEnumInstalledRootKey()

CEnumInstalledRootKey::CEnumInstalledRootKey ( )
inline

Definition at line 43 of file appdb.cpp.

44 {
45 // We don't want to display duplicate entries on systems without WoW64 keys support.
46 // When ROS starts supporting the WOW REGSAM flags,
47 // this code can be changed back to IsSystem64Bit() ? 3 : 2.
50 }
#define UNINSTALL_SUBKEY
Definition: appdb.cpp:19
BOOL IsSameRegKey(HKEY hRoot, LPCWSTR Path1, REGSAM Sam1, LPCWSTR Path2, REGSAM Sam2)
Definition: misc.cpp:474
#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

◆ GetKeyIndex()

UINT CEnumInstalledRootKey::GetKeyIndex ( ) const
inline

Definition at line 57 of file appdb.cpp.

58 {
59 return m_Index;
60 }

◆ GetNext()

HKEY CEnumInstalledRootKey::GetNext ( REGSAM RegSam)
inline

Definition at line 52 of file appdb.cpp.

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

Member Data Documentation

◆ m_Count

UINT CEnumInstalledRootKey::m_Count
private

Definition at line 39 of file appdb.cpp.

Referenced by CEnumInstalledRootKey(), and GetNext().

◆ m_Index

UINT CEnumInstalledRootKey::m_Index = 0
private

Definition at line 40 of file appdb.cpp.

Referenced by GetKeyIndex(), and GetNext().


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