From: Leafbanana on
Hi guys,

As you possibly know, a WDM driver, either using Windows2K3 DDK or Windows7
WDK, can be perfectly implemented as a VC6 or VS2005/2008 project, without
including the makefile. The project is quite like a standard DLL and you just
need to set the correct directories and some settings of the project.

But things changed in KMDF. As per the document, the macro called
KMDF_VERSION_MAJOR must be set in the Sources file to make sure the driver is
linked to correct KMDF libraries by build utility. As a result, a KMDF driver
can no longer be implemented as a VC6 or VS2005/2008 project without the
makefile. The problem is, where to place the macro?!

I know there are some tools that help building driver in VS, such as
DDKWizard and DdkBuild. But neither of them can build a non-makefile driver.

If my understanding is correct, anybody can tell me why to bring in such a
annoying KMDF_VERSION_MAJOR?

If I'm wrong, anybody tell me how to create a non-makefile project in VC or
VS to implemente a KMDF-based driver? I've been searching for the solution
for a long time.

Appreciate for any reply.