FSCTL_DUPLICATE_EXTENTS_TO_FILE_EX - NtDoc

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

// CTL_CODE(0x0009, 0x0fa, METHOD_BUFFERED, FILE_WRITE_ACCESS)
#define FSCTL_DUPLICATE_EXTENTS_TO_FILE_EX 0x000983E8
View the official Windows hardware development documentation

NtDoc

No description available.

Windows hardware development documentation (fsctl-duplicate-extents-to-file-ex)

FSCTL_DUPLICATE_EXTENTS_TO_FILE_EX control code

The FSCTL_DUPLICATE_EXTENTS_TO_FILE_EX control code instructs the file system to copy a range of file bytes on behalf of an application. The destination file may be the same as, or different from, the source file.

To perform this operation, call the DeviceIoControl function with the following parameters.

BOOL
   WINAPI
   DeviceIoControl( (HANDLE)       hDevice,         // handle to device
                    (DWORD)        FSCTL_DUPLICATE_EXTENTS_TO_FILE_EX, // dwIoControlCode
                    (LPDWORD)      lpInBuffer,      // input buffer
                    (DWORD)        nInBufferSize,   // size of input buffer
                    (LPDWORD)      lpOutBuffer,     // output buffer
                    (DWORD)        nOutBufferSize,  // size of output buffer
                    (LPDWORD)      lpBytesReturned, // number of bytes returned
                    (LPOVERLAPPED) lpOverlapped );  // OVERLAPPED structure

Parameters

Return value

If the operation completes successfully, DeviceIoControl returns a nonzero value.

If the operation fails or is pending, DeviceIoControl returns zero. To get extended error information, call GetLastError.

Remarks

For the implications of overlapped I/O on this operation, see the Remarks section of the DeviceIoControl topic.

Requirements

Requirement type Requirement
Header WinIoctl.h; Ntifs.h

See also

DeviceIoControl