Prev: SD card ID reading... same issue
Next: A challenging opportunity for Linux kernel/ Firmware Developers from Dexcel Electronics Designs, Bangalore
From: unclepauly on 24 May 2010 09:14 damn it, im very sorry i had a typo in my diskperf service so ignore my last post - i set startup type to 3 instead of 0.....its working now. anyway if you think this is still the wrong way to go (there is a better sample) please let me know. grateful for your help ;)
From: unclepauly on 24 May 2010 10:48 Doran (or anyone else who can help) - i have been playing with the AddDevice function - you said above that in AddDevice i can check if the device is on a USB bus - how to do this ? i assume i will need to do this before IoCreateDevice, which is the first thing that happens. So i am guessing that some member of either DRIVER_OBJECT or DEVICE_OBJECT can identify the device as usb - but i cannot work out how to do this. thank you.
From: Pavel A. on 24 May 2010 19:06 "unclepauly" <unclepauly(a)discussions.microsoft.com> wrote in message news:014C185F-EEB2-48B8-B930-80BE2306B360(a)microsoft.com... > damn it, im very sorry i had a typo in my diskperf service so ignore my > last > post - i set startup type to 3 instead of 0.....its working now. anyway if > you think this is still the wrong way to go (there is a better sample) > please > let me know. > grateful for your help ;) Now, if you catch one more typo, your chances to get help may improve ;) Why so many questions about filters at all? You just need to disable usbstor, this does not involve messing with filters. --pa
From: unclepauly on 25 May 2010 05:56 Pavel - yes, disabling the usbstor is the advice that i have been given. by disabling the usbstor, i assume you are all talking about setting the reg 'start' key to 4. however we have found that this does not always work, and that we sometimes still able to use usb sticks on the machine. i think it was when we inserted a stick that was not currently installed, the reg key got set back 3...so now you will tell me to prevent new sticks from being installed ! yes we could do that but ideally we want something that can just enable/disable usb sticks at the click of a button, just like i have already done for keyboard and mouse, using the WDK samples. so a filter it is, and if i use Doran's suggestion i can trap usb sticks in the AddDevice function and give IoCreateDevice some random value so that it doesnt create it as storage.....it has taken a few days to get soemthing up and running, but i think the end result will do exactly what we want....
From: Moritz Franckenstein on 29 May 2010 05:06
unclepauly wrote, on 21.05.2010 12:14: > i have already written a mini filter driver for keyboard and mouse using the > samples in the WDK (7600). i just needed these devices to be enabled/disabled > too and i do so by dropping all the packets in the ServiceCallback. i made it > apply to all keyboards and mouses by installing the two drivers at class > level in the registry. hi unclepauly, would you give out your soucecode for this, and/or some pointers how it works and how you install it at class level? i already have it working for mice (but not at class level, because i didn't know about that possibility) and need it for keyboards, too. does your solution work with HID devices? how do you trigger enable/disable? it would be nice if you could reply to my private email as well - yours doesn't exist :) regards, -- Moritz Franckenstein mailto:maf-soft(a)gmx.net http://www.maf-soft.de/ icq: 22030984 y!: maf_soft |