I read requests regarding file locking, but either they refer to a problem with multiple files, or to something else. The answer to this will be blocked by the file using FileStream.Lock, using FileShare.None with File.Open, etc., but the lock says 100 files are not good programming practice, also in these scenarios the lock will be released if my application closes / a glitch that I don't want either, i.e. I want the lock to persist, and only my application can open it to others.
In msdn, I found the System.Security, System.Security.AccessControl namespaces, I believe this can help. Also this article will shed some light on what I want.
EDIT ::
Mannnnn ... someone referred to the "this" link that I provided.
Ok ... In short, I want something that makes PC security software. It rings the bell ... did anyone use it ????
Thank.
source
share