The WacomKMDF directory contains a KMDF version of the sample Wacom HID minidriver.
The WacomPen drivers are HID minidrivers for pen devices from Wacom Technology Corporation. These are electromagnetic input devices that use a 16550 UART-compatible interface. If such a device is installed on a computer system, the corresponding driver is loaded on top of the system-supplied Serial.sys driver, which acts as a lower-level device filter driver. The corresponding sample INF file can be generated from Wacompen.inx. This INF file installs the WacomPen driver for devices whose device ID is ACPI\WACF004. To install a device of this type by using Wacompen.inf, you must specify a device ID of ACPI\WACF004 in the ACPI BIOS.
The sample drivers share code that is located in the following directories:
The src\input\hiddigi\common directory contains code that is common to the WacomPen and EloMT sample drivers.
The src\input\hiddigi\util directory contains utility functions that are common to all the sample drivers. The utility functions handle tracing driver operation and error logging.
The sample driver demonstrates how to write a KMDF driver for a HID device even though KMDF does not natively support minidrivers. This is achieved by a WDM shim driver (Hidkmdf.sys) that acts as the HIDCLASS minidriver while the real driver is a lower filter in the driver stack. Otherwise, the sample is very similar to the WDM version in terms of how easy it is to customize for a new driver project.
Building the Sample
Use the standard driver build tools from the Windows Driver Kit. In a driver directory, type build. The build script will generate the Wacomdigi.sys driver.
Hidkmdf.sys (build from the src\hid\hidusbfx2\hidmapper directory)
WDF co-installer from <WDK ROOT>\redist\wdf\<platform>\
To install the drivers, copy the driver files and the INF files to the same location. In Device Manager, complete the following steps:
On Windows XP Tablet PC Edition:
Right-click the device, and click Update Driver.
Select Install from a list or specific location (Advanced), and then click Next..
Select Don't search. I will choose the driver to install, and then click Have Disk..
In the Install From Disk dialog box, type the path of the directory where you copied the driver and INF file, and then click OK..
On Windows Vista and Windows 7:
Right-click the device, and then click Update Driver.
Click the Browse my computer for driver software link.
Click the Let me pick from a list of device drivers on my computer link.
Click Have Disk.
Navigate to the location of the driver file, and then click the INF file.
For information about Microsoft Windows Vista and the Tablet PC, see http://www.microsoft.com/tabletpc.
This section includes a file manifest of all the files in the src\input\hiddigi directory.
Contains event code and messages.
Precompiled header file.
WDK sources file.
WDK build environment make file.
Contains the OEM specific code.
Contains the OEM specific code.
Contains the OEM specific definitions.
The resource file for the driver.
INX file that is used to generate INF files.
Handles all the internal HIDClass IOCTLs.
Contains common definitions for UART digitizer drivers.
Handles PnP and power management.
Contains all functions that deal with the serial port.
Contains serial port definitions.
Contains all the error logging functions.
Contains error logging definitions.
Definitions for trace macros. This should be edited to enable tracing if needed.