I want the ownership of folders created by my application to remain only with my application. This is because I am linking my application's data to the folders path. So either of these 2 solutions are fine with me:
- Do not allow anybody to modify the folder created by my application. Only my application can delete/rename the folder. Modifying it through windows explorer should require admin rights.
- If above solution is not possible, at least my application should be notified of the change so that my application's links are updated.
The question is that whether it is possible to do this in Windows? I feel language does not play a role, but still if required, I am using Qt in C++ for developing my application.
EDIT: Now there are 2 cases of being notified:
a. When my application is running and the folder is modified.
b. When my application is NOT running and the folder is modified (This may be achieved if Windows maintains a log file for changes to a folder. My application can read this log file and understand the changes in the folder).
Actually, I meant to ask specifically for case b, but now reading the answers makes me feel that it may not be possible to get notified for case b.