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.

51 lines
986 B

  1. //+---------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1993 - 1997.
  5. //
  6. // File: creg.h
  7. //
  8. // Contents: Defines class CRegistry to wrap registry access
  9. //
  10. // Classes:
  11. //
  12. // Methods:
  13. //
  14. // History: 23-Apr-96 BruceMa Created.
  15. //
  16. //----------------------------------------------------------------------
  17. typedef enum {_LOCALSERVER, LOCALSERVER, _LOCALSERVER32, LOCALSERVER32,
  18. LOCALSERVICE, REMOTESERVER} SRVTYPE;
  19. // Wraps registry access
  20. class CRegistry
  21. {
  22. public:
  23. CRegistry(void);
  24. ~CRegistry(void);
  25. BOOL Init(void);
  26. BOOL InitGetItem(void);
  27. SItem *GetNextItem(void);
  28. SItem *GetItem(DWORD dwItem);
  29. SItem *FindItem(TCHAR *szItem);
  30. SItem *FindAppid(TCHAR *szAppid);
  31. void AppendIndex(SItem *pItem, DWORD dwIndex);
  32. DWORD GetNumItems(void);
  33. private:
  34. CStrings m_applications;
  35. };