Hi

How can I protect/lock a drive from deleting files and format it ?
Is there a way to hook a drive?

Please show us some of your efforts used. have you written any codes for solving your problem? here we don't provide full developed source code unless you have done something. If your code returns some error then paste your code so that we might correct you.

thankx

I thought to use SetWindowsHookEx api
But I don't know which parameter to send that function to hook a drive
I don't need the all source, I just want to know the appropriate function

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.