none
does "_DRIVER_NAME_" can be used in VS 2012 RRS feed

  • Question

  • does "_DRIVER_NAME_"  can be srpported  in VS 2012, when programming WDF driver?

    I found that, the new  toaster DEMO, doesn't use  "_DRIVER_NAME_" , but the older one used in debugprint routin.

    As renaming MARCO "_FUNCTION_" to "__FUNCTION__", driver can pass compilation,  I try to change "_DRIVER_NAME_" to "__DRIVER_NAME__", but the compiler doesn't reconize it neither.  

    ps:

    there is an article , say something about "_DRIVER_NAME_"

    http://www.microsoft.com/china/whdc/driver/tips/SafeString.mspx

    • Edited by DeDriver Tuesday, June 18, 2013 9:44 AM
    Tuesday, June 18, 2013 9:35 AM

Answers

  • Yes it should work, in fact it is in the toaster sample for Win8.  What problem are you having?


    Don Burn Windows Filesystem and Driver Consulting Website: http://www.windrvr.com Blog: http://msmvps.com/blogs/WinDrvr

    Tuesday, June 18, 2013 11:20 AM

All replies

  • Yes it should work, in fact it is in the toaster sample for Win8.  What problem are you having?


    Don Burn Windows Filesystem and Driver Consulting Website: http://www.windrvr.com Blog: http://msmvps.com/blogs/WinDrvr

    Tuesday, June 18, 2013 11:20 AM
  • I mean "_DRIVER_NAME_" from old project ,when convert to vs2012 project, can't be recognized. so I ask why?  there is no

    "_DRIVER_NAME_" code  in the toaster for win8 .


    Thursday, July 11, 2013 9:04 AM
  • You did not provide the include that defines it?


    Don Burn Windows Filesystem and Driver Consulting Website: http://www.windrvr.com Blog: http://msmvps.com/blogs/WinDrvr

    Thursday, July 11, 2013 10:59 AM