IoCheckFileObjectOpenedAsCopyDestination - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
// ntifs.h

BOOLEAN IoCheckFileObjectOpenedAsCopyDestination(
  [in] PFILE_OBJECT FileObject
);
View the official Windows Driver Kit DDI reference

NtDoc

No description available.

Windows Driver Kit DDI reference (nf-ntifs-iocheckfileobjectopenedascopydestination)

Description

The IoCheckFileObjectOpenedAsCopyDestination routine checks whether a file was previously opened with copy intent as a destination file.

Parameters

FileObject [in]

Pointer to the destination file object to check for copy intent.

Return value

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.

Remarks

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.

See also

EXTENDED_CREATE_INFORMATION

IoCheckFileObjectOpenedAsCopySource

NtCopyFileChunk

NtCreateFile