Click here to Skip to main content
15,887,371 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
Before i asked a question on CP and get no help on vb.net. So my question is how to disable the mouse driver, then re-enable it. Not freeze the mouse on the screen, like actually disable it. Like how you disable the mouse driver by going in control panel and into your mouse settings. That's what im trying to figure out how to do, but in a program.

I really need help with this, any help would be the world to me

Thanks in advanced!
Posted
Comments
Sergey Alexandrovich Kryukov 12-Feb-13 18:31pm    
Why? I really would like to here that. And don't think that many will be glad to help you without knowing the reason... :-)
—SA
Matthew Faithfull 12-Feb-13 18:32pm    
I'm not sure why you would ever reasonably want to do such a thing but if you did you'd have to use the SetupAPI to unload the driver or something out of the DDK to talk to the driver interface if it has an enable/disable function. I've never done either personally.
PIEBALDconsult 12-Feb-13 18:37pm    
Would you want someone to do that to you?
dachazz 12-Feb-13 18:38pm    
alright sorry for the long story but here it goes. I recently got Win 8 X64 and it is amazing. I have a Cyborg RAT-3 gaming mouse. I installed the driver and it worked fine.....at first. When i shutdown the computer and then turned it back on the DPI was messed up. Usually its 3500 DPI and that's what i usually use. But when i turn on the computer the DPi was 200. So i made a prgram before in vb.net re-installing the driver on start up. Didn't work. I tried installing the driver from the CD, worked. last week i tried disabling the driver then re-enabling it. that worked with out installing the driver. I already tried a million times with trouble shooting on the website and none thing worked. So this is why im trying to figure out how to do this :)

1 solution

I hate to send you over to StackOverflow for your answer, but here's the first link that came up on Google:

http://stackoverflow.com/questions/1438371/win32-api-function-to-programmatically-enable-disable-device[^]

The top answer pretty much answers your question.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900