阅读:1730回复:4
加入的DbgPrint总是不起作用?!
我在xpassthru程序里加入了DbgPrint(),但是用dbgview察看的时候总是没有结果输出,很纳闷
NDIS_STATUS PtReceive( IN NDIS_HANDLE ProtocolBindingContext, IN NDIS_HANDLE MacReceiveContext, IN PVOID HeaderBuffer, IN UINT HeaderBufferSize, IN PVOID LookAheadBuffer, IN UINT LookAheadBufferSize, IN UINT PacketSize ) { PADAPT pAdapt =(PADAPT)ProtocolBindingContext; PNDIS_PACKET Packet;//MyPacket, NDIS_STATUS Status = NDIS_STATUS_SUCCESS; DBGPRINT(\"==> Passthru Protocol PtReceive\\n\"); DbgPrint(\" CurrentAdapterHandle: %u\\n\", ProtocolBindingContext); DbgPrint(\" MacReceiveHandle: %u\\n\", MacReceiveContext); DbgPrint(\" HeaderBufferPointer: %u\\n\", HeaderBuffer); DbgPrint(\" HeaderBufferSize: %u\\n\", HeaderBufferSize); DbgPrint(\" LookAheadBufferPointer: %u\\n\", LookAheadBuffer); DbgPrint(\" LookAheadBufferSize: %u\\n\", LookAheadBufferSize); DbgPrint(\" PacketSize: %u\\n\", PacketSize); DbgPrint(\" Add DbgPrint:%u\\n\",0);//这一句为加入代码 前面的DbgPrint()代码都能够输出,就是最后一句加入的没有输出结果,不解,请大家帮个忙!!! |
|
沙发#
发布于:2003-10-10 16:43
就写
DbgPrint(\" Add DbgPrint \\n\"); 呢 |
|
板凳#
发布于:2003-10-10 18:55
你是不是在调试模式?
|
|
|
地板#
发布于:2003-10-11 10:50
没用,加进去的DbgPrint()代码总是不起作用。
我是把xpassthru安装起来的 |
|
地下室#
发布于:2003-10-14 15:18
不会吧,copy一句它原来的DbgPrint看看,如果还是没有,则说明都没编译这句话,不妨删掉它原有的一句DbgPrint,看DbgView有否少掉这句.如果都没变化,则应检查编译问题
|
|