maxb
asked on
Make app undeletable
Hi there,
How do I lock files to make them undeletable at the file level? I saw another protection app do this (something with NTFS?)
Thanks for any pointers!
Max
How do I lock files to make them undeletable at the file level? I saw another protection app do this (something with NTFS?)
Thanks for any pointers!
Max
ASKER
so where would this go on c:\test.exe ? so it can't be deleted unless its allowed (by running the app again and allowing deletion)
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Will this work on all win98+ ?
Yes! - This is basic File manipulation stuff. Did you test it?
Shane
ASKER
I'm not able to test it... trust you though :)
OK, well let me know if you have any trouble...
Shane
Shane
FileSetAttr returns zero if the function was successful. Otherwise the return value is a Windows error code.
Shane