Kmdf Hid Minidriver For Touch I2c Device Calibration Jun 2026

The minidriver uses the following components to perform calibration:

The touch device sends HID Input Reports (touch points). In EvtHidDeviceGetReport or when the HID class driver calls your minidriver to retrieve a report, you:

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\MyTouchCalib\Parameters] "X_Gain"=dword:3F800000 (float 1.0) "Y_Gain"=dword:3F800000 "X_Offset"=dword:00000000 "Y_Offset"=dword:00000000

Capture logs via TraceView.exe and correlate with HID class driver traces.

Your driver's DriverEntry will create a WDFDRIVER object and register EvtDeviceAdd . Inside EvtDeviceAdd :

switch(IoControlCode)

#include <wdf.h> #include <hid.h>

The minidriver uses the following components to perform calibration:

The touch device sends HID Input Reports (touch points). In EvtHidDeviceGetReport or when the HID class driver calls your minidriver to retrieve a report, you:

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\MyTouchCalib\Parameters] "X_Gain"=dword:3F800000 (float 1.0) "Y_Gain"=dword:3F800000 "X_Offset"=dword:00000000 "Y_Offset"=dword:00000000

Capture logs via TraceView.exe and correlate with HID class driver traces.

Your driver's DriverEntry will create a WDFDRIVER object and register EvtDeviceAdd . Inside EvtDeviceAdd :

switch(IoControlCode)

#include <wdf.h> #include <hid.h>