I want to restrict access to the USB storage devices. Either Just block or give read Only access to everyone.
Only calling process can access that devices No one else.
For Windows I have used CreateFile() and DeviceIoControl() to lock the Volume.
For Unix : To Make read only I can use diskUtil but I want it through program.
I don't want to use any registry kind of.
So any idea/solutions in c/c++?
platform : MAC OS.
Thanks.