Two new bits have been defined for use in the FLAGS argument in XCALL MIAMEX, MX_COPYFILE:
CPYF_SETRO = &h0010 ! force read-only bit to be set on output
CPYF_CLRRO = &h0020 ! clear read-only bit on output
Currently these only have meaning in WINDOWS.
If neither is set, then the status of the read-only flag is preserved, unless copying from a device with the ,RO flag, in which case the read-only flag will be cleared (see previous item).