I don’t know what I have been done. I am making a program. If I rerun my program, an error occurred :
“Windows cannot access the specified device, path, or file. You may not have the appropriate permissions to access the item”
My program use UAC manifest. I’ve tried to not use the manifest and got same error.
By using “Run as Administrator”, I can rerun my program!
Have you ever face this problem? What’s wrong with Windows? What kind of code should I look into my source code?
Because of this problem, myprogram have a mutex that created by Windows.. lol
Your program is trying to create or open a file. The first time you ran your program as admin it created it, and now the ACL on that file is read-only for regular users and read-write for admins. Running your program as regular user fails with access denied when it tries to open the file for write.