Update 3: the restrict access, using the security tab works now. (that's manually) now looking to do it programatically (using Visual C#) and also how to access a file using administrator account in a simple user account. hint - I noticed this feature in Windows, right click and use 'Execute as', enter the administrator password and then you can access the file.
Update 2: Found how to display the security tab
To display the Security tab
Open Folder Options in Control Panel. (Click Start, click Control Panel, click Appearance and Themes, and then click Folder Options.)
On the View tab, under Advanced settings, clear Use simple file sharing [Recommended].
Update 1: I found the following article, which suggests how to give permissions to files, however I don't find the security tab when I click properties, do you have it? Any ideas how to get it
I have a file that I want to protect from bein modified. Don't say to me encrypt it, this don't solve the problem, I want that users can't change the file, BUT only me (my program). Is there any type of authentication for Windows files, I know that what I say is stupid about authentication, but some Windows files are inaccessible like 'ntuser.dat.LOG' in the user profile. When I try to open this file it doesn't open.
I want something like that, for this file it seems because Windows is using it. Right. But what about if my program shutdown, I don't want the file to be changed in this case also. How shall i do?
I don't ask for the complete detailed solution, I want ideas, suggestions, tips, or any thing you know that it'll help, as it seems to be complicated :p