Compile error after adding #define WPP_GLOBALLOGGER

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



My driver is currently using WPP tracing to assist my development and
debugging. I need to see details that occur early, and decided to attempt
using the Global Logger Session. After reading several related pages, I
added the #define WPP_GLOBALLOGGER to my trace.h file after the #define
WPP_CONTROL_GUIDS macro definition.

I now get the following compile error in only the .cpp file that has the
WPP_INIT_TRACING macro call (SwrxDriver.cpp in the DriverEntry function):

....SwrxDriver.tmh(2048) : error C2664: 'RtlStringFromGUID' : cannot convert
parameter 1 from 'LPCGUID' to 'const GUID &'

When I commend out the #define WPP_GLOBALLOGGER macro, the driver compiles
without comment.

Any suggestions? John Bond
.



Relevant Pages

  • Re: Driver Model
    ... If the driver does not contain the appropriate ... > If the MODULE_LICENSEmacro is what determines taint, ... the module is GPL and (after you've shipped ... send the line "unsubscribe linux-kernel" in ...
    (Linux-Kernel)
  • Re: [RFC] add kobject to struct module
    ... > - Are we opening the floodgates for another round of races and driver ... If you set the "perm" portion of the module_parammacro to 0, ... perm sets the visibility in driverfs: ... send the line "unsubscribe linux-kernel" in ...
    (Linux-Kernel)
  • Re: time
    ... > Then I would like for the macro to take those results and put them ... > means that the driver can not work more than 70 hours in an 8 day ... If the calculation gets to 0 or above, the cell changes color to ... > That part of the sheet works perfectly. ...
    (microsoft.public.excel.misc)
  • Re: Creating a Macro to print from Word in duplex mode on printer.
    ... driver controls is to create separate printer drivers for the same printer ... > Does anyone know how to create a macro to assist in printing documents ... > Letterhead, Continuation, Plain etc.), but the duplex function appears as ... > own Print Setup panel itself, so recording a macro with duplexing enabled ...
    (microsoft.public.word.customization.menustoolbars)
  • Re: Macro calling kernel function
    ... I have C file and .h file in my driver ... > But I define same macro in .h file it throws compile error .. ... your header file, causing it to fail. ...
    (comp.lang.c)