Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

41 lines
976 B

  1. //+---------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 2000.
  5. //
  6. // File: R E G K Y E X P . H
  7. //
  8. // Contents: CRegKeyExplorer class
  9. //
  10. // Notes:
  11. //
  12. // Author: ckotze 12 July 2000
  13. //
  14. //---------------------------------------------------------------------------
  15. #pragma once
  16. typedef struct tagREGKEYS
  17. {
  18. HKEY hkeyRoot;
  19. LPCTSTR strRootKeyName;
  20. ACCESS_MASK amMask;
  21. KEY_APPLY_MASK kamMask;
  22. BOOL bEnumerateRelativeEntries;
  23. HKEY hkeyRelativeRoot;
  24. LPCTSTR strRelativeKey;
  25. ACCESS_MASK amChildMask;
  26. KEY_APPLY_MASK kamChildMask;
  27. } REGKEYS;
  28. class CRegKeyExplorer
  29. {
  30. public:
  31. CRegKeyExplorer();
  32. virtual ~CRegKeyExplorer();
  33. HRESULT GetRegKeyList(const REGKEYS rkeBuildFrom[], DWORD dwNumEntries, LISTREGKEYDATA& listRegKeyEntries);
  34. protected:
  35. HRESULT EnumerateKeysAndAddToList(REGKEYS rkeCurrent, LISTREGKEYDATA& listRegKeyEntries);
  36. };