What Windows API function should I use to mark/unmark files/folders as protected operating system file?
views:
143answers:
2
+2
A:
You can use the SetFileAttributes() API with flags FILE_ATTRIBUTE_HIDDEN | FILE_ATTRIBUTE_SYSTEM
.
cedrou
2009-08-12 09:07:19
There is a registry entry called UseSystemForSystemFolders that might change the required attribute
Anders
2009-08-16 01:16:40
+2
A:
PathMakeSystemFolder() is the documented way to mark a directory as a system folder
Anders
2009-08-16 01:17:10