Hi!
I'm a software developer, and i've been stuck on this problem for days, i've done so much googling but i found nothing about this....
I'll try to describe this problem as easy as i can.
I have 2 files, "f1" and "f2" into my directory "c:\foo\dir1\"
I want to avoid any possible "change" in those 2 files by any user, but NOT using any encryption.
Instead of using encryption, when the user opens "f1", i want to pop up something that says to him:
"Hello user! You cannot edit those files this way! You need to do *those things* or entry the password"
Where *those things* are accessibile only from my software, that callbacks the editor of those files, unlocking them at the beginning of editation and re-locking them at the end.
The possibility of unlocking the files with password is only a way to "emergency-unlock" those files, the user normally don't have it.
So, let's start with the questions:
1)
Does exist some native function of Windows that provides that mechanism, that i can use with (for instance) a .NET callback?
I know that the ZIPPING of the folder allows me to set a password, but i don't want to do that.
2)
If, as i think, the question 1 has no answers...
Does exist some "external tool" that i can callback into my code that can do this job? Like a "file locker" or similar?
In case of, i'd obviously prefer something freeware and with "open" license...
I hope i've been clear, despite my inaccurate English language...
Thank you.
What I have tried:
Googling
Examination of .NET native functions
Searching for external tools
Asking some programmers much more expert than me.