Hello,
What do you mean about "forbid disk access during program is running"? Could you please give us more details of what you want in order to be able to help you.
What is the reason why you need to "interrupt disk access" suddenly in an application?
Sincerely.
Matthieu Gourssies