Trace procedure from header file does not work in case of WPP.
Fixing it by less complicated way than involving H file into
WPP processing: just define WPP procedure to be used from
the template. At the same time we define trace procedure that
does not add the functiona name, we use it in this template
printout and will also use in other places.
Signed-off-by: Yuri Benditovich <[email protected]>
Clearing the variables is important as calling the Dotr twice on the
same object will cause BSODs as a result of a double free for example.
Signed-off-by: Sameeh Jubran <[email protected]>
This commit integrates wpp tracing into builds higher than Vista as
Windows Vista requires much more configuration for wpp integration,
however, this integration may be introduced in the future.
The old style of Dprintf is still preserved by this commit and can be
enabled by disabling WPP tracing. This can be accomplished by commenting
the following line in WPPTrace.h:
Signed-off-by: Sameeh Jubran <[email protected]>
In different versions of NDIS, different API is used due to usage of
CPU groups. Creat a function that will return CPU amoun in the system.
Signed-off-by: Yan Vugenfirer <[email protected]>