I was referring to the Vista templates
#ifdef WPP_DEBUG
Calls WPP_DEBUG;
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Jan Bottorff
Sent: Friday, May 12, 2006 4:20 PM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] WPP_DEBUG operation
WPP_DEBUG macro will be called followed by WmiTraceMessage, but
WmiTraceMessage will not log because no trace session would be
defined.
I guess I’m not understanding when WPP_DEBUG will be called. If I
remember
correctly, the template has an #ifdef WPP_DEBUG and if defined it’s
called
with
WPP_DEBUG(MSG,…)
Notice there is no level or flags passed, so if the filtering isn’t done
by
whatever wraps this, then every message will get printed. I am making
the
assumption (possible incorrect) that since no flags/level are passed,
then
every message will be displayed, which is not what I want. Had the call
looked like WPP_DEBUG(LEVEL, FLAGS, MSG,…) then I can write a function
to
filter things.
I understand all you said about manually activating the trace session by
munging the data structure. Let’s just assume I activate a global logger
trace session in the registry, do your magic data structure munging.
My driver is a virtual bus driver, which may have a virtual boot disk on
it,
so by the time I could use the GUI to enable a normal trace session, my
driver has already done a giant amount of work. My target machine is
also
off in a computer room, because it’s connected to a variety of other
boxes,
so generally, I can’t interact with it until I’m able to sign in through
a
remote desktop.
As a bit of feedback, you should try running traceview over a DSL
connected
remote desktop some time. It needlessly refreshes the window in really
ugly
ways. I’m sure on a local high performance display adapter, all that
needless refreshing goes by instantly, but over a 1.5 mbps T1 line, it’s
really painful. Like many developers now, I work from my home over the
Internet a non-trivial part of the time, so need all the tools to work
WELL
over remote desktops at DSL speeds. In general, remote desktop works
fairly
well, but a few apps do silly things.
Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer