If you are trying to access files embedded in ROM then there is no way. The OS at the lowest level prevents file IO or copying those files. They can only be loaded into memory for execution (which is done by OS routines).
If you are talking about plain files, then use SetFileAttributes.