you probably want to write an intercept driver. see the windows drivers sdk:
Open and close access to USB and Cdrome
Dani_S
3,911
Reputation points
Hi, I want to build client on Maui on windows that do the following things. In computer that has no antivirus. When client is loading it will close all the access to USB and Cdrome through registry. And when user insert USB or Cdrome the system identify it and give me access to device for this client only .Is it possible? If yes how? Thanks in advance,
update
I want this app on windows.