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.

54 lines
1.4 KiB

  1. /****************************************************************************
  2. *
  3. * $Archive: S:/STURGEON/SRC/INCLUDE/VCS/cpucalc.h_v $
  4. *
  5. * INTEL Corporation Prorietary Information
  6. *
  7. * This listing is supplied under the terms of a license agreement
  8. * with INTEL Corporation and may not be copied nor disclosed except
  9. * in accordance with the terms of that agreement.
  10. *
  11. * Copyright (c) 1993-1994 Intel Corporation.
  12. *
  13. * $Revision: 1.0 $
  14. * $Date: Nov 20 1996 14:05:46 $
  15. * $Author: MLEWIS1 $
  16. *
  17. * Deliverable:
  18. *
  19. * Abstract:
  20. *
  21. * Notes:
  22. *
  23. ***************************************************************************/
  24. #ifndef _CPUCALC_H
  25. #define _CPUCALC_H
  26. #ifdef __cplusplus
  27. extern "C" { // Assume C declarations for C++.
  28. #endif // __cplusplus
  29. //////////////////////////////////////////////////////
  30. // CPU Performance Calulation typedef Section
  31. //////////////////////////////////////////////////////
  32. typedef DWORD HCALCINFO;
  33. //////////////////////////////////////////////////////
  34. // CPU Performance Calulation Prototypes Section
  35. //////////////////////////////////////////////////////
  36. // initialize CPU calulation object
  37. HCALCINFO InitCPUCalc(void);
  38. // cleanup CPU calculation object
  39. void CleanupCPUCalc(HCALCINFO hCalc);
  40. // get current CPU utilization value
  41. BOOL GetCPUUsage(HCALCINFO hCalc, DWORD *pCpuUsage);
  42. #ifdef __cplusplus
  43. } // End of extern "C" {
  44. #endif // __cplusplus
  45. #endif // _CPUCALC_H