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.

52 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: resourcemeterwin9x.h
  9. // AUTHOR: Sergey Chizhevskiy
  10. // OVERVIEW
  11. // ~~~~~~~~
  12. // Header file of resourcemeterwin9x.h
  13. //----------------------------------------------------------------------------
  14. // resourcemeterwin9x.h: interface for the CResourceMeterWin9x class.
  15. //
  16. //////////////////////////////////////////////////////////////////////
  17. #if !defined(AFX_RESOURCEMETERWIN9X_H__DB55ED43_89C2_11D5_9B77_0000E89F6E90__INCLUDED_)
  18. #define AFX_RESOURCEMETERWIN9X_H__DB55ED43_89C2_11D5_9B77_0000E89F6E90__INCLUDED_
  19. #if _MSC_VER > 1000
  20. #pragma once
  21. #endif // _MSC_VER > 1000
  22. class CResourceMeterWin9x
  23. {
  24. public:
  25. CResourceMeterWin9x();
  26. virtual ~CResourceMeterWin9x();
  27. public:
  28. LONG GetSystemResources();
  29. LONG GetUserResources();
  30. LONG GetGDIResources();
  31. void Destroy();
  32. BOOL Create();
  33. private:
  34. enum
  35. {
  36. GFSR_SYSTEMRESOURCES = 0,
  37. GFSR_GDIRESOURCES = 1,
  38. GFSR_USERRESOURCES = 2
  39. };
  40. typedef LONG (CALLBACK* GETRES)(int);
  41. private:
  42. HMODULE m_hLibrary;
  43. GETRES m_pGetRes;
  44. };
  45. #endif