Windows NT 4.0 source code leak
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.

119 lines
3.0 KiB

4 years ago
  1. Debug Wrapper
  2. Johnson Apacible (johnsona)
  3. 3-11-91
  4. The debug version of the wrapper allows developers to
  5. 1. turn on/off error checking
  6. 2. control level of tracing. There are currently 2 levels of tracing:
  7. Level 2 tracing turns on tracing on all wrapper functions; while level
  8. 1 tracing turns on tracing only on the more interesting functions.
  9. Level 1 and 2 functions are enumerated below:
  10. Level 1 Tracing enables tracing on the following functions:
  11. NdisInitializePacketPool
  12. NdisTerminatePacketPool
  13. NdisRegisterProtocol
  14. NdisDeregisterProtocol
  15. NdisOpenAdapter
  16. NdisCloseAdapter
  17. FinishOpen
  18. KillOpenAndNotifyProtocol
  19. KillOpen
  20. NdisInitializeWrapper
  21. NdisTerminateWrapper
  22. NdisRegisterMac
  23. NdisDeregisterMac
  24. DeQueueAdapterOnMac
  25. QueueAdapterOnMac
  26. QueueOpenOnProtocol
  27. DeQueueOpenOnProtocol
  28. NdisRegisterAdapter
  29. NdisDeregisterAdapter
  30. KillAdapter
  31. QueueAdapterOnAdapter
  32. DeQueueAdapterOnAdapter
  33. NdisSetPacketFilter
  34. NdisAddMulticastAddress
  35. NdisDeleteMulticastAddress
  36. NdisSend
  37. NdisTransferData
  38. NdisQueryInformation
  39. NdisSetInformation
  40. NdisReset
  41. NdisTest
  42. NdisCompleteRequest
  43. NdisCompleteSend
  44. NdisCompleteTransferData
  45. NdisIndicateStatus
  46. NdisIndicateStatusComplete
  47. Level 2 tracing enables tracing the functions listedbelow in addition
  48. to all Level 1 functions:
  49. NdisQueryBuffer
  50. NdisAllocatePacket
  51. NdisDeallocatePacket
  52. NdisReinitializePacket
  53. NdisChainBufferAtFront
  54. NdisChainBufferAtBack
  55. NdisUnchainBufferAtFront
  56. NdisUnchainBufferAtBack
  57. NdisQueryPacket
  58. NdisGetNextBuffer
  59. ReferenceRef
  60. DereferenceRef
  61. InitializeRef
  62. CloseRef
  63. ReferenceProtocol
  64. DereferenceProtocol
  65. NdisSuccessIrplHandler
  66. ReferencMac
  67. ReferenceAdapter
  68. DereferenceAdapter
  69. NdisIndicateReceive
  70. NdisIndicateReceiveComplete
  71. Turning on/off error checking
  72. Error checking may be turned on/off during run-time by changing the
  73. value of the flag NdisChkErrorFlag. A zero value turns off error
  74. checking and a non-zero value turn it on. This flag is turned on
  75. by default.
  76. Controlling level of messages
  77. Message level may by specified by changing the NdisMsgLevel variable.
  78. Value of NdisMsgLevel Meaning
  79. 0x000 Turn off all messages
  80. 0x001 Turn on tracing on Level 1 functions
  81. 0x002 Turn on all tracing
  82. NdisMsgLevel is set to 0 by default
  83. The debug code will be included only if the NDISDBG flag is turned on (== 1).
  84. If you do change this flag, be sure to delete (1) all nbf .obj files,
  85. (2) ntos\dd\init\obj\i386\ddinit.obj, (3) ntos\init\obj\i386\init.obj, and
  86. (4) recompile everything under ndis, since this flag will change a lot
  87. of goings on inside ndis.h
  88.