Leaked source code of windows server 2003
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.

87 lines
2.2 KiB

  1. #include <wdm.h>
  2. #include "gckshell.h"
  3. #include "debug.h"
  4. #if (DBG==1)
  5. extern ULONG GCK_CTRL_C;
  6. extern ULONG GCK_CTRL_IOCTL_C;
  7. extern ULONG GCK_FILTER_CPP;
  8. extern ULONG GCK_FILTERHOOKS_CPP;
  9. extern ULONG GCK_FLTR_C;
  10. extern ULONG GCK_FLTR_PNP_C;
  11. extern ULONG GCK_GCKSHELL_C;
  12. extern ULONG GCK_REMLOCK_C;
  13. extern ULONG GCK_SWVB_PNP_C;
  14. extern ULONG GCK_SWVBENUM_C;
  15. extern ULONG GCK_SWVKBD_C;
  16. extern ULONG CIC_ACTIONS_CPP;
  17. extern ULONG CIC_CONTROLITEMCOLLECTION_CPP;
  18. extern ULONG CIC_CONTROLITEM_CPP;
  19. extern ULONG CIC_DEVICEDESCRIPTIONS_CPP;
  20. extern ULONG CIC_DUALMODE_CPP;
  21. //extern ULONG CIC_DUMPCOMMANDBLOCK_CPP;
  22. extern ULONG CIC_LISTASARRAY_CPP;
  23. void SetDebugLevel(ULONG ulModuleId, ULONG ulDebugLevel)
  24. {
  25. switch(ulModuleId)
  26. {
  27. case MODULE_GCK_CTRL_C:
  28. GCK_CTRL_C = ulDebugLevel;
  29. break;
  30. case MODULE_GCK_CTRL_IOCTL_C:
  31. GCK_CTRL_IOCTL_C = ulDebugLevel;
  32. break;
  33. case MODULE_GCK_FILTER_CPP:
  34. GCK_FILTER_CPP = ulDebugLevel;
  35. break;
  36. case MODULE_GCK_FILTERHOOKS_CPP:
  37. GCK_FILTERHOOKS_CPP = ulDebugLevel;
  38. break;
  39. case MODULE_GCK_FLTR_C:
  40. GCK_FLTR_C = ulDebugLevel;
  41. break;
  42. case MODULE_GCK_FLTR_PNP_C:
  43. GCK_FLTR_PNP_C = ulDebugLevel;
  44. break;
  45. case MODULE_GCK_GCKSHELL_C:
  46. GCK_GCKSHELL_C = ulDebugLevel;
  47. break;
  48. case MODULE_GCK_REMLOCK_C:
  49. GCK_REMLOCK_C = ulDebugLevel;
  50. break;
  51. case MODULE_GCK_SWVB_PNP_C:
  52. GCK_SWVB_PNP_C = ulDebugLevel;
  53. break;
  54. case MODULE_GCK_SWVBENUM_C:
  55. GCK_SWVBENUM_C = ulDebugLevel;
  56. break;
  57. case MODULE_GCK_SWVKBD_C:
  58. GCK_SWVKBD_C = ulDebugLevel;
  59. break;
  60. case MODULE_CIC_ACTIONS_CPP:
  61. CIC_ACTIONS_CPP = ulDebugLevel;
  62. break;
  63. case MODULE_CIC_CONTROLITEMCOLLECTION_CPP:
  64. CIC_CONTROLITEMCOLLECTION_CPP = ulDebugLevel;
  65. break;
  66. case MODULE_CIC_CONTROLITEM_CPP:
  67. CIC_CONTROLITEM_CPP = ulDebugLevel;
  68. break;
  69. case MODULE_CIC_DEVICEDESCRIPTIONS_CPP:
  70. CIC_DEVICEDESCRIPTIONS_CPP = ulDebugLevel;
  71. break;
  72. case MODULE_CIC_DUALMODE_CPP:
  73. CIC_DUALMODE_CPP = ulDebugLevel;
  74. break;
  75. // case MODULE_CIC_DUMPCOMMANDBLOCK_CPP:
  76. // CIC_DUMPCOMMANDBLOCK_CPP = ulDebugLevel;
  77. break;
  78. case MODULE_CIC_LISTASARRAY_CPP:
  79. CIC_LISTASARRAY_CPP = ulDebugLevel;
  80. break;
  81. }
  82. }
  83. #endif