home *** CD-ROM | disk | FTP | other *** search
/ PC World 2006 July & August / PCWorld_2006-07-08_cd.bin / system / rivatuner / RivaTuner20RC16.exe / SDK / Include / MonitoringSourceDesc.h next >
Encoding:
C/C++ Source or Header  |  2006-05-21  |  2.4 KB  |  64 lines

  1. /////////////////////////////////////////////////////////////////////////////
  2. //
  3. // This header file defines hardware monitoring data source descriptor 
  4. // stucture, used by hardware monitoring plugin modules to describe the
  5. // sources, exported by the plugin
  6. //
  7. /////////////////////////////////////////////////////////////////////////////
  8. #ifndef _MONITORING_SOURCE_DESC_INCLUDED_
  9. #define _MONITORING_SOURCE_DESC_INCLUDED_
  10. /////////////////////////////////////////////////////////////////////////////
  11. // v1.0 descriptor
  12. /////////////////////////////////////////////////////////////////////////////
  13. typedef struct MONITORING_SOURCE_DESC_V_1_0
  14. {
  15.     char    szName[32];
  16.         //data source name (e.g. "Core temperature")
  17.     char    szDim[32];
  18.         //data source dimension (e.g. "░C")
  19.  
  20.     //the following fields define default graph's limits and grid dimension
  21.     //(these values are used by default during graph rendering, but user can
  22.     //redefine them via the source's properties).
  23.  
  24.     FLOAT    fltMaxLimit;
  25.         //default maximum graph limit (e.g. 100░C)
  26.     FLOAT    fltMinLimit;
  27.         //default minimum graph limit (e.g. 0░C)
  28.     FLOAT    fltGridDim;
  29.         //default grid dimension (amount of grid lines between min and max limits)
  30. } MONITORING_SOURCE_DESC_V_1_0, *LPMONITORING_SOURCE_DESC_V_1_0;
  31. /////////////////////////////////////////////////////////////////////////////
  32. // v1.1+ descriptor
  33. /////////////////////////////////////////////////////////////////////////////
  34. typedef struct MONITORING_SOURCE_DESC
  35. {
  36.     DWORD    dwVersion;
  37.         //descriptor version ((major<<16) + minor)
  38.         //must be set to 0x00010001 on input for v1.1 descriptor
  39.  
  40.         //Don't change this field when filling the descriptor!
  41.  
  42.     char    szName[32];
  43.         //data source name (e.g. "Core temperature")
  44.     char    szDim[32];
  45.         //data source dimension (e.g. "░C")
  46.  
  47.     //the following fields define default graph's limits and grid dimension
  48.     //(these values are used by default during graph rendering, but user can
  49.     //redefine them via the source's properties).
  50.  
  51.     FLOAT    fltMaxLimit;
  52.         //default maximum graph limit (e.g. 100░C)
  53.     FLOAT    fltMinLimit;
  54.         //default minimum graph limit (e.g. 0░C)
  55.     FLOAT    fltGridDim;
  56.         //default grid dimension (amount of grid lines between min and max limits)
  57.  
  58.     char    szDesc[64];
  59.         //data source description (e.g. "Remote temperature reported by MAX6648-compatible sensor")
  60.  
  61. } MONITORING_SOURCE_DESC, *LPMONITORING_SOURCE_DESC;
  62. /////////////////////////////////////////////////////////////////////////////
  63. #endif
  64.