I’m using win32. I wanna create a hidden and undeletable file using CreateFile() if possible. I haven’t tried anything so far because the documentation is complex.
Here is an example where my app would be useful.
Let just say we have two people living in the same room, like in college. One of them Always goes on the other guy’s laptop and delete some stuff for fun. The other guy can make his files undeletable to stop his other friend from deleting his files. This is just basic example.
I’m using win32. I wanna create a hidden and undeletable file using CreateFile() if
Share
It’s not possible to create a hidden and un-deletable file.
The closest you can get is creating a file with the hidden attribute and having a process run at all times to keep the file locked, preventing deletion.
This, of course, doesn’t prevent the user from checking ‘Show Hidden Files’ in folder options, closing the process that has the file locked, or using some application to forcefully unlock the file.