// ntifs.h
BOOLEAN IoCheckFileObjectOpenedAsCopyDestination(
  [in] PFILE_OBJECT FileObject
);
View the official Windows Driver Kit DDI referenceNo description available.
The IoCheckFileObjectOpenedAsCopyDestination routine checks whether a file was previously opened with copy intent as a destination file.
FileObject [in]Pointer to the destination file object to check for copy intent.
IoCheckFileObjectOpenedAsCopyDestination returns TRUE if the file object represents a destination file that was previously opened with copy file intent; otherwise it returns FALSE. A return value of TRUE only signals the intent at create time; it does not mean that all operations on the file object are all part of copies.
See IoCheckFileObjectOpenedAsCopySource for sample code that shows how to check if a file object was opened with copy intent.
See Kernel-mode file copy and detecting copy file scenarios for more information.
IoCheckFileObjectOpenedAsCopySource