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.

70 lines
1.6 KiB

  1. /*++
  2. Copyright (c) 1995 Microsoft Corporation
  3. Module Name:
  4. debug.h
  5. Abstract:
  6. Debugging defintions for the Automatic
  7. Connection Driver (acd.sys).
  8. Author:
  9. Anthony Discolo (adiscolo) 3-Aug-1995
  10. Environment:
  11. Kernel Mode
  12. Revision History:
  13. --*/
  14. #ifndef _ACDDBG_
  15. #define _ACDDBG_
  16. //
  17. // Debug tracing flags.
  18. //
  19. // To enable debug tracing for a module, set the
  20. // appropriate bit in ntinit\AcdDebugG.
  21. //
  22. #if DBG
  23. #define ACD_DEBUG_IOCTL 0x00000001 // ntdisp.c/AcdDispatchDeviceControl()
  24. #define ACD_DEBUG_OPENCOUNT 0x00000002 // ntdisp.c/Acd{Open,Close}()
  25. #define ACD_DEBUG_TIMER 0x00000004 // timer.c
  26. #define ACD_DEBUG_CONNECTION 0x00000008 // api.c/AcdStartConnection()
  27. #define ACD_DEBUG_WORKER 0x00000010 // api.c/AcdNotificationRequestThread()
  28. #define ACD_DEBUG_RESET 0x00000020 // api.c/AcdReset()
  29. #define ACD_DEBUG_MEMORY 0x80000000 // memory alloc/free
  30. #define IF_ACDDBG(flag) if (AcdDebugG & flag)
  31. #define AcdPrint(many_args) DbgPrint many_args
  32. extern ULONG AcdDebugG;
  33. #else
  34. #define IF_ACDDBG(flag) if (0)
  35. #define AcdPrint(many_args)
  36. #endif
  37. #define ALLOCATE_CONNECTION(pObject) \
  38. pObject = ExAllocatePoolWithTag (NonPagedPool, sizeof (ACD_CONNECTION), 'NdcA');
  39. #define FREE_CONNECTION(pObject) \
  40. ExFreePool (pObject);
  41. #define FREE_MEMORY(pObject) \
  42. ExFreePool (pObject);
  43. #define ALLOCATE_MEMORY(ulSize, pObject) \
  44. pObject = ExAllocatePoolWithTag (NonPagedPool, ulSize, 'NdcA');
  45. #endif // _ACDDBG_
  46.