Hi,
I am writing pointing device driver which uses mouclass. Now I have problem.
When I am trying to uninstall my driver whole system stucks. System is still
running but it just seems to wait something. Uninstall window stays open and
mouse and keyboard are not in use, but debugger shows that there is still
some action in system now and then. Reason for that is not in my driver
because it has finished all its functions so I think it is the mouclass.sys.
This all is only happening if I supporting IOCTL_MOUSE_QUERY_ATTRIBUTES. If
I dont support that uninstall works fine, but when in support it (same way
like in MOUSER sample of ddk) uninstalling does not work any more.
If I dont support IOCTL_MOUSE_QUERY_ATTRIBUTES I will receive following PNP
IRPs:
IRP_MN_QUERY_DEVICE_RELATIONS
and
IRP_MN_QUERY_REMOVE_DEVICE
and
IRP_MN_CANCEL_REMOVE_DEVICE
And system ask “Restart?” and everything goes fine
If I dont support I will receive only following PNP IRP:
IRP_QUERY_DEVICE_RELATIONS
And after driver has returned from thit IRP everything stucks…
Should I build and install debug version of mouclass by using source codes
of DDK samples? But how to install it because I dont have right .inf file
for that? I tried to add mouclass.sys installation to my driver INF (same
way like in msmouse.inf), but after restarting the original mouclass.sys is
in system32/drivers folder
Thanks!
–
Jussi Rytilahti