For debugging and maintenance, I like to add a print statement in my driver
that shows the WDK version used for compiling the driver like "This driver
was compiled with WDK version 6000". How can I do this? (This is invoked
through a special debug_ioctl and as such not seen in normal operations).

Re: WDK version number programatically by Sasha

Sasha
Fri Dec 07 02:59:21 PST 2007

Use VER_PRODUCTBUILD from ntverp.h
(http://www.osronline.com/article.cfm?article=201)


---
Sasha Bublyk
SyCore Logic
http://www.sycorelogic.com


"Raj" <Raj@discussions.microsoft.com> wrote in message
news:CF45AF85-EB34-4664-B328-26BCAA688958@microsoft.com...
> For debugging and maintenance, I like to add a print statement in my
> driver
> that shows the WDK version used for compiling the driver like "This driver
> was compiled with WDK version 6000". How can I do this? (This is invoked
> through a special debug_ioctl and as such not seen in normal operations).