The sample Unidriver code supports the following pen hardware:
For OEM hardware compatible with one of the above devices, a developer can literally create a custom pen device driver in a few hours or less. The simplest approach is to define a constant in the DEFINES.H file located in the \PEN\INC sub directory.
DEFINES.H defines the following values corresponding to the devices listed above:
Value | Supported Devices |
---|---|
CPQ | Compaq Concerto |
WACOM2 | Wacom Digitizer HD-648A |
WACOM2 | Wacom Digitizer SD 510C |
WACOM4 | Wacom Digitizer UD0608R |
To create a driver specifically for one of the devices in the list, simply remove the unneeded definitions in DEFINES.H. For example, to customize the pen Unidriver for the Wacom UD0608R device, keep these three lines in DEFINES.H:
#ifdef UNIDRV
#define WACOM4
#endif
Then run the MAKE file to build the Wacom UD0608R device driver.
You can also trim the source code, if desired, to remove distractions and improve compilation speed. To trim the source, remove the #ifdef blocks, #pragmas, and commented code for other devices from the OEM source files in the \PEN\SAMPLES\VPEND sub directory. The source files OEMs will want to work on are identified in the following table:
OEM Source File | Description |
---|---|
OEMAPI.C | OEM message handling. |
OEMHWINT.C | OEM hardware interrupt servicing. |
INITUTIL.C | Initializes the DRV_PENINFO and _HARDWAREINFO structures by reading values from the Windows 95 registry. |
MISCUTIL.C | Miscellaneous OEM hardware-specific code. Hardware-specific code is also found in the source modules named for specific devices, such as CONCERTO.C. |
If writing for a device other than a Wacom tablet, ignore the files VPEND.H and VPEND.INC in the \PEN\INC sub directory.