The sample WinDriver\samples\pci_diag\kp_pci Kernel PlugIn directory and the generated DriverWizard Kernel PlugIn <project_dir>\kermode directory (where <project_dir> is the directory in which you selected to save the generated driver project) contain the following Kernel PlugIn project files (where xxx is the driver name – pci for the sample / the name you selected when generating the code with the wizard):
The sample WinDriver\samples\pci_diag directory and the
generated <project_dir> directory contain the
following project files for the user-mode application that drives the
respective Kernel PlugIn driver (where xxx is
the driver name – pci for the sample /
the name you selected when generating the code with the wizard):
The MSDEV directories listed above also contain xxx_diag.dsw/.sln workspace/solution files that include both the Kernel PlugIn and user-mode projects.
To build your Kernel PlugIn driver and respective user-mode application on Windows, follow these steps:
From your driver project directory, open the generated workspace/solution file – <project_dir>\<MSDEV_dir>\xxx_diag.dsw/.sln, where <project_dir> is your driver project directory (pci_diag for the sample code / the directory in which you selected to save the generated DriverWizard code), <MSDEV_dir> is your target MSDEV directory (msdev_2008 / msdev_2005 / msdev_2003 / msdev_6) and xxx is the driver name (pci for the sample / the name you selected when generating the code with the wizard).
Note that when selecting to generate code for the MSDEV IDE with DriverWizard, the wizard automatically starts MSDEV and opens the generated workspace/solution file after generating the code files, unless you explicitly revoke this behavior by setting the "IDE to Invoke" option in the code generation dialogue to "None".
To build the Kernel PlugIn SYS driver (kp_pci.sys – sample / kp_xxx.sys – generated wizard code):
![]() | |
| To build the driver for multiple operating systems, select the lowest OS version that the driver must support. For example, to support Windows 2000, XP, and higher, select either (release mode) or (debug mode). |
To build the user-mode application that drives the Kernel PlugIn driver (pci_diag.exe – sample / xxx_diag.exe – generated wizard code):
![]() | |
In the following instructions
|
To build your Kernel PlugIn driver and respective user-mode application on Mac OS X, follow these steps:
Build the Kernel PlugIn: Open your Kernel PlugIn project with Xcode, and
build the code.
The Kernel PlugIn project folder is located at
<KP_dir>/macos/kp_xxx.xcodeproj – for
example,
~/WinDriver/wizard/my_projects/my_kp/kermode/macos/KP_MY_KP.xcodeproj
(for a MY_KP generated DriverWizard project), or
~/WinDriver/samples/pci_diag/kp_pci/macos/kp_pci.xcodeproj
(for the KP_PCI sample).
The build will create a kp_xxx.kext Kernel PlugIn kernel extension folder under a <KP_dir>/macos/build/Release or <KP_dir>/macos/build/Debug sub-directory – depending on how you selected to build the project. For example, ~/WinDriver/wizard/my_projects/my_kp/kermode/macos/build/Release/kp_my_kp.kext or ~/WinDriver/samples/pci_diag/kp_pci/macos/build/Release/kp_pci.kext.
Build the user-mode application that drives your Kernel PlugIn project, using either of these methods:
make to build the code.
The build will create an xxx application under a <project_dir>/macos/build/Release or <project_dir>/macos/build/Debug sub-directory – depending on how you selected to build the project. For example, ~/WinDriver/wizard/my_projects/my_kp/macos/build/Release/my_kp or ~/WinDriver/samples/pci_diag/macos/build/Release/pci_diag.
To build your Kernel PlugIn driver and respective user-mode application on Linux, follow these steps:
Change directory to your Kernel PlugIn directory.
For example:
cd WinDriver/samples/pci_diag/kp_pcicd <path>/kermode/linux/
./configure --disable-usb-support
![]() | |
The configure script creates a
makefile based on your specific running
kernel. You may run the configure script
based on another kernel source you have installed, by adding the flag
--with-kernel-source=<path> to the configure script. The
<path> is the full path to the kernel source directory, e.g.,
/usr/src/linux.If the Linux kernel is version 2.6.26 or higher, configure generates makefiles that use kbuild to compile the kernel modules. You can force the use of
kbuild on earlier versions of Linux, by
passing the --enable-kbuild flag to
configure.
|
make command.Move to the directory that holds the makefile for the sample user-mode diagnostics application.
For the KP_PCI sample driver:
cd ../LINUX/
For the generated DriverWizard Kernel PlugIn driver:
cd ../../linux/
make
command.