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.

75 lines
1.2 KiB

  1. /*++
  2. Copyright (c) 1993 Microsoft Corporation
  3. Module Name:
  4. spgauge.h
  5. Abstract:
  6. Public header file for gas gauge functions in text setup.
  7. Author:
  8. Ted Miller (tedm) 29-July-1993
  9. Revision History:
  10. --*/
  11. #ifndef _SPGAUGE_DEFN_
  12. #define _SPGAUGE_DEFN_
  13. #define GF_PERCENTAGE 0
  14. #define GF_ITEMS_REMAINING 1
  15. #define GF_ITEMS_USED 2
  16. PVOID
  17. SpCreateAndDisplayGauge(
  18. IN ULONG ItemCount,
  19. IN ULONG GaugeWidth, OPTIONAL
  20. IN ULONG Y,
  21. IN PWCHAR Caption,
  22. IN PWCHAR ProgressFmtStr, OPTIONAL
  23. IN ULONG Flags, OPTIONAL
  24. IN UCHAR Attribute OPTIONAL
  25. );
  26. VOID
  27. SpDestroyGauge(
  28. IN PVOID GaugeHandle
  29. );
  30. VOID
  31. SpDrawGauge(
  32. IN PVOID GaugeHandle
  33. );
  34. VOID
  35. SpTickGauge(
  36. IN PVOID GaugeHandle
  37. );
  38. VOID
  39. SpFillGauge(
  40. IN PVOID GaugeHandle,
  41. IN ULONG Amount
  42. );
  43. //
  44. // Character attribute for thermometer portion of the gas gauge.
  45. // Because we're using spaces for the gauge, the foreground attribute
  46. // is irrelevent.
  47. //
  48. // Need intense attribute or the thermometer comes out orange on some machines.
  49. //
  50. #define GAUGE_ATTRIBUTE (ATT_BG_YELLOW | ATT_BG_INTENSE )
  51. #define GAUGE_HEIGHT 7
  52. #endif // ndef _SPGAUGE_DEFN_