Filter driver prevents device from being registered with system assigned HID Class GUID

I have a USB HID Class device for which I want to install a filter driver to
modify user app WriteFile and ReadFile requests sent to the device. The
device works with the default system supplied drivers and the user app finds
it by enumerating all devices that are members of the system assigned HID
Class GUID. When I install a filter driver, such as the generic one provided
with the toaster sample or the firefly sample model, the device no longer
gets registered to the HID Class GUID and the user app program fails to find
it. If I list hardward Ids associated with the HID Class, using the command:
devcon hwids *hid* the device is listed. How do I install a driver so as to
still have the device registered with the HID Class GUID?