Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Will WPP trace work with NDIS miniport drivers?

0 views
Skip to first unread message

rbarned

unread,
Sep 7, 2005, 11:21:56 PM9/7/05
to
I am having trouble getting wpp trace to work with a miniport NDIS driver.
I think the problem is to find a driver or device handle to use,

Any ideas?

Thank you.


Calvin Guan

unread,
Sep 8, 2005, 3:56:09 AM9/8/05
to
It works for me (XP and up). What's your problem?

--
Calvin Guan (Windows DDK MVP)
NetXtreme Longhorn Miniport Prime
Broadcom Corp. www.broadcom.com

"rbarned" <rba...@comcast.net> wrote in message
news:JqudnQhThdj...@comcast.com...

rbarned

unread,
Sep 8, 2005, 10:00:37 PM9/8/05
to
I am trying to get WPP Trace functionality added to a NDIS miniport driver
written for Windows 2000 in C++? Since my code was not compiliing I tried
putting the WPP macros in a .C file. Then I called these function from the
C++ code. The code compiles but I don't see any messages. I know I have
the traceview configured properly. In addition, when I try to check if WPP
is activated using WPP_LEVEL_ENABLED macro, it returns false.

I call WPP_SYSCONTROL first in driver entry then WPP_INIT_TRACE in my
initialize function. I use the PDEVICE_OBJECT returned from
NdisMRegisterDevice
function. Is this correct?

Any commemts or samples would be greatly appreciated.

Thank you for your help.

Bob


"Calvin Guan" <hg...@nospam.broadcom.com> wrote in message
news:y8STe.5905$rj.1066@lakeread07...

Calvin Guan

unread,
Sep 9, 2005, 5:10:43 AM9/9/05
to
I haven't tried to make WPP work for NDIS50 driver on w2k so I can't comment
on this. For XP driver, you just need WPP_INIT_TRACING in your driverEntry
and WPP_CLEANUP in your unload handler. You need to define some level, flag
macro though.

There was a thread in NTDEV (www.osronline.com) yesterday where people
saying the latest DDK or WDK has new WPP template that makes driver binary
compatible with W2k and WXP.


HTH

--
Calvin Guan (Windows DDK MVP)
NetXtreme Longhorn Miniport Prime
Broadcom Corp. www.broadcom.com


"rbarned" <rba...@comcast.net> wrote in message

news:yMKdnRbDHKR...@comcast.com...


>I am trying to get WPP Trace functionality added to a NDIS miniport driver
> written for Windows 2000 in C++? Since my code was not compiliing I tried
> putting the WPP macros in a .C file. Then I called these function from the
> C++ code. The code compiles but I don't see any messages. I know I have
> the traceview configured properly. In addition, when I try to check if WPP
> is activated using WPP_LEVEL_ENABLED macro, it returns false.
>
> I call WPP_SYSCONTROL first in driver entry then WPP_INIT_TRACE in my
> initialize function. I use the PDEVICE_OBJECT returned from
> NdisMRegisterDevice
> function. Is this correct?
>
> Any commemts or samples would be greatly appreciated.
>
> Thank you for your help.
>
> Bob
>
>
> "Calvin Guan" <hg...@nospam.broadcom.com> wrote in message

> news:y8STe.5905$rj.1066@akeread07...

0 new messages