Virtual mouse driver to force pointer visibility

I am trying to write a driver (by modifying vhidmini2) that will trick windows into thinking a mouse is physically present. I will explain the reason why in case that someone has a better/quicker/easier solution:

With Windows 10/11 when there is no keyboard and mouse physically present, the pointer is hidden. Our application uses other stimuli to drive the pointer which works well when there is a mouse physically present but when the mouse is absent, whilst positioning still works, there is no pointer feedback).

Onto my specific problem:

I have modified the G_DefaultReportDescriptor to be that of a mouse and I have also modified the inf file to create a root device (so I thought).
I am using devcon to install and, i thought, create an instance of my mythical mouse.

Although device manager reports my device is present, it also has the error that it can’t start (error code 10) because a device which does not exist was specified.

At this point, I am not sure where I should be looking. In my .inf file I have the line : %DeviceDesc%=vhidmini, root\vhidmini and I am using: devcon install vhidmini.inf root\vhidmini to install. Any clues where to look next would be most welcome.
Thank you in advance
Tony

You should examine setupapi.dev.log to see exactly what happened.

1 Like

(post deleted by author)

Good call!
found this: could not find include INF file “MsHidKmdf.inf”. Error = 0x00000002

I suspect this is because I am targetting Windows IOT 21H2 and this include was added in later builds of windows? If so, I now need to figure out a workaround