问题
Does anyone know how can I prevent a specific USB disk/flash from installing in a Windows Service? I don't want to disable all usb ports, I just prevent a specific usb disk from installing. I'm using windows 7.
回答1:
Yes, is possible disable USB disk, using Kernel-Mode Filter Driver.
http://msdn.microsoft.com/en-us/library/windows/hardware/ff545890%28v=vs.85%29.aspx
Few years ago, I wrote project, that accept only USB disks with specified VID\PID. Unfortunately, I can not find this project.
来源:https://stackoverflow.com/questions/10740528/disable-specific-usb-disk-in-windows-service