Possible Duplicate:
setting UAC settings of a file in C#
I want to set file permissions so only those with administrative privileges can change it.
Can anyone give me a good example on how to do this in c#?
UPDATE
I've tried various things with FileSecurity
, and I simply can't get a hang of it.
Here are the permissions that I'd like to impose on file: