Leaked source code of windows server 2003
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.

40 lines
1.1 KiB

  1. // key.h : header file
  2. //
  3. // This is a part of the Microsoft Foundation Classes C++ library.
  4. // Copyright (C) 1992-1995 Microsoft Corporation
  5. // All rights reserved.
  6. //
  7. // This source code is only intended as a supplement to the
  8. // Microsoft Foundation Classes Reference and related
  9. // electronic documentation provided with the library.
  10. // See these sources for detailed information regarding the
  11. // Microsoft Foundation Classes product.
  12. /////////////////////////////////////////////////////////////////////////////
  13. // CKey
  14. class CKey
  15. {
  16. public:
  17. CKey() {m_hKey = NULL;}
  18. ~CKey() {Close();}
  19. // Attributes
  20. public:
  21. HKEY m_hKey;
  22. BOOL SetStringValue(LPCTSTR lpszValue, LPCTSTR lpszValueName = NULL);
  23. BOOL GetStringValue(CString& str, LPCTSTR lpszValueName = NULL);
  24. // Operations
  25. public:
  26. BOOL Create(HKEY hKey, LPCTSTR lpszKeyName, REGSAM samDesired);
  27. BOOL Open(HKEY hKey, LPCTSTR lpszKeyName, REGSAM samDesired);
  28. void Close();
  29. // Overrides
  30. // Implementation
  31. protected:
  32. };
  33. /////////////////////////////////////////////////////////////////////////////