Old fashion design for PC-104
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.

53 lines
1.3 KiB

4 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. //----------------------------------------------------------------------------
  2. // Laser Guard Ltd.
  3. // Copyright � 2000-2002. All Rights Reserved.
  4. // Version 1.0 01/01/2000
  5. // Last modification: 08/10/2003
  6. // PROJECT:
  7. // SUBSYSTEM:
  8. // FILE: Settings.h
  9. // AUTHOR: Sergey Chizhevskiy
  10. // OVERVIEW
  11. // ~~~~~~~~
  12. // Header file of Settings.h
  13. //----------------------------------------------------------------------------
  14. #ifndef __SETTINGS__H__INCLUDED__
  15. #define __SETTINGS__H__INCLUDED__
  16. #if _MSC_VER > 1000
  17. #pragma once
  18. #endif
  19. struct CLgDRect;
  20. class CSettings
  21. {
  22. public:
  23. CSettings();
  24. virtual ~CSettings();
  25. public:
  26. BOOL Create( LPCTSTR pKeyName );
  27. void Destroy();
  28. public:
  29. BOOL Load( LPCTSTR pSettingName, PVOID pData, INT nSize );
  30. BOOL Load( LPCTSTR pSettingName, LPRECT pRect );
  31. BOOL Load( LPCTSTR pSettingName, CLgDRect *pRect );
  32. BOOL Load( LPCTSTR pSettingName, PINT pValue );
  33. BOOL Load( LPCTSTR pSettingName, double* dValue );
  34. public:
  35. BOOL Save( LPCTSTR pSettingName, PVOID pData, INT nSize );
  36. BOOL Save( LPCTSTR pSettingName, LPRECT pRect );
  37. BOOL Save( LPCTSTR pSettingName, CLgDRect *pRect );
  38. BOOL Save( LPCTSTR pSettingName, INT nValue );
  39. BOOL Save( LPCTSTR pSettingName, double dValue );
  40. private:
  41. HKEY m_hKey;
  42. };
  43. #endif