Leaked source code of windows server 2003

54 lines
1.8 KiB

  1. //-----------------------------------------------------------------------------
  2. //
  3. //
  4. // File: cmt.h
  5. //
  6. // Description:
  7. // General Header file for the CMT objects
  8. //
  9. // Circa 2001, this only contains priority information.
  10. //
  11. // Owner: mikeswa
  12. //
  13. // Copyright (C) 1997, 2001 Microsoft Corporation
  14. //
  15. //-----------------------------------------------------------------------------
  16. #ifndef _CMT_H_
  17. #define _CMT_H_
  18. //Comment out the following if you do not information printed out (ie running as
  19. // a service).
  20. #define CMT_CONSOLE_DEBUG
  21. #include "aqincs.h"
  22. //---[ EffectivePriority ]-----------------------------------------------------
  23. //
  24. //
  25. // Hungarian: pri
  26. //
  27. // Effective Routing priority. Allows standardf priorities to be adjusted
  28. // based on configuration (ie, message size, originator... etc)
  29. //-----------------------------------------------------------------------------
  30. typedef enum _EffectivePriority
  31. {
  32. //Priorities in order of importance
  33. // | hex | binary |
  34. // ================
  35. eEffPriLow = 0x0, //000 Standard low pri needs to map here
  36. eEffPriNormal = 0x1, //001 Standard normal pri needs to map here
  37. eEffPriHigh = 0x2, //011 Standard high pri needs to map here
  38. eEffPriMask = 0x3 //011
  39. } EffectivePriority, *PEffectivePriority;
  40. typedef EffectivePriority TEffectivePriority; //to make Mahesh's life easier
  41. //Besure to update Macros when constants are changed
  42. #define fNormalPri(Pri) (((EffectivePriority) (Pri)) == ((EffectivePriority) eEffPriNormal))
  43. #define fHighPri(Pri) (((EffectivePriority) (Pri)) == ((EffectivePriority) eEffPriHigh))
  44. #define NUM_PRIORITIES 3
  45. #endif // _CMT_H_