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.

74 lines
1.8 KiB

  1. /*++
  2. Copyright (c) 1996 Microsoft Corporation
  3. All rights reserved.
  4. Module Name:
  5. LsplData.hxx
  6. Abstract:
  7. Specifies the indicies of the local spooler counters.
  8. Author:
  9. Albert Ting (AlbertT) 19-Dec-1996
  10. Based on Gopher perf counter dll.
  11. Revision History:
  12. --*/
  13. #ifndef LSPLDATA_HXX
  14. #define LSPLDATA_HXX
  15. //
  16. // The counter structure returned.
  17. //
  18. typedef struct LSPL_DATA_DEFINITION
  19. {
  20. PERF_OBJECT_TYPE ObjectType;
  21. PERF_COUNTER_DEFINITION TotalJobs;
  22. PERF_COUNTER_DEFINITION TotalBytes;
  23. PERF_COUNTER_DEFINITION TotalPagesPrinted;
  24. PERF_COUNTER_DEFINITION Jobs;
  25. PERF_COUNTER_DEFINITION Ref;
  26. PERF_COUNTER_DEFINITION MaxRef;
  27. PERF_COUNTER_DEFINITION Spooling;
  28. PERF_COUNTER_DEFINITION MaxSpooling;
  29. PERF_COUNTER_DEFINITION ErrorOutOfPaper;
  30. PERF_COUNTER_DEFINITION ErrorNotReady;
  31. PERF_COUNTER_DEFINITION JobError;
  32. PERF_COUNTER_DEFINITION EnumerateNetworkPrinters;
  33. PERF_COUNTER_DEFINITION AddNetPrinters;
  34. } *PLSPL_DATA_DEFINITION;
  35. #define NUMBER_OF_LSPL_COUNTERS ((sizeof(LSPL_DATA_DEFINITION) - \
  36. sizeof(PERF_OBJECT_TYPE)) / \
  37. sizeof(PERF_COUNTER_DEFINITION))
  38. typedef struct LSPL_COUNTER_DATA
  39. {
  40. PERF_COUNTER_BLOCK CounterBlock;
  41. LARGE_INTEGER liTotalJobs;
  42. LARGE_INTEGER liTotalBytes;
  43. LARGE_INTEGER liTotalPagesPrinted;
  44. DWORD dwJobs;
  45. DWORD dwRef;
  46. DWORD dwMaxRef;
  47. DWORD dwSpooling;
  48. DWORD dwMaxSpooling;
  49. DWORD dwErrorOutOfPaper;
  50. DWORD dwErrorNotReady;
  51. DWORD dwJobError;
  52. DWORD dwEnumerateNetworkPrinters;
  53. DWORD dwAddNetPrinters;
  54. } *PLSPL_COUNTER_DATA;
  55. extern LSPL_DATA_DEFINITION LsplDataDefinition;
  56. #endif // ifdef LSPLDTA_HXX