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.

64 lines
1.4 KiB

  1. /*++
  2. Copyright (c) 1989 Microsoft Corporation
  3. Module Name:
  4. process.c
  5. Abstract:
  6. This module contains debug support definitions for ws2ifsl.sys driver.
  7. Author:
  8. Vadim Eydelman (VadimE) Dec-1996
  9. Revision History:
  10. --*/
  11. #if DBG
  12. // Components
  13. #define DBG_DISPATCH 0x00000001
  14. #define DBG_SOCKET 0x00000002
  15. #define DBG_PROCESS 0x00000004
  16. #define DBG_QUEUE 0x00000008
  17. #define DBG_LOAD 0x00000010
  18. // Operations
  19. #define DBG_READWRITE 0x00000100
  20. #define DBG_AFDIOCTL 0x00000200
  21. #define DBG_DRV_COMPLETE 0x00000400
  22. #define DBG_PVD_COMPLETE 0x00000800
  23. #define DBG_RETRIEVE 0x00001000
  24. #define DBG_CANCEL 0x00002000
  25. // Failures
  26. #define DBG_FAILURES 0x80000000
  27. extern ULONG DbgLevel;
  28. #define WsPrint(FLAGS,ARGS) \
  29. do { \
  30. if (DbgLevel&FLAGS){ \
  31. DbgPrint ARGS; \
  32. } \
  33. } while (0)
  34. #define WsProcessPrint(Process,FLAGS,ARGS) \
  35. do { \
  36. if (((Process)->DbgLevel)&FLAGS){ \
  37. DbgPrint ARGS; \
  38. } \
  39. } while (0)
  40. VOID
  41. ReadDbgInfo (
  42. IN PUNICODE_STRING RegistryPath
  43. );
  44. #else
  45. #define WsPrint(FLAGS,ARGS) do {NOTHING;} while (0)
  46. #define WsProcessPrint(Process,FLAGS,ARGS) do {NOTHING;} while (0)
  47. #endif