Share via


DISK_COPY_EXTERNAL (Compact 2013)

3/26/2014

This structure contains the necessary input for the IOCTL_DISK_COPY_EXTERNAL_START I/O control.

Syntax

typedef struct _DISK_COPY_EXTERNAL {
  DWORD cbSize; 
  DWORD dwDirection; 
  PVOID pUserData; 
  DWORD cbUserDataSize; 
  TCHAR szCancelEventName[MAX_PATH];
  ULARGE_INTEGER ulFileSize;
  HANDLE hCallerProc;
  DWORD cbSectorListSize;
} DISK_COPY_EXTERNAL, *PDISK_COPY_EXTERNAL;

Members

  • cbSize
    Size of the structure.
  • dwDirection
    The following table shows possible values.

    Flag

    Description

    COPY_EXTERNAL_READ

    Read from the disk into the external device.

    COPY_EXTERNAL_WRITE

    Write to the disk from the external device.

  • pUserData
    Pointer to the user data needed for copy external in the block driver. Can be set to NULL if not needed, in which case cbUserDataSize must be set to zero.
  • cbUserDataSize
    Size of the user data, in bytes.
  • szCancelEventName
    Name of the event that can be signaled to cancel the copy operation. If the even name has a length of zero, the copy cannot be canceled.
  • ulFileSize
    Size of the file, in bytes.
  • hCallerProc
    Handle to the calling process.

Requirements

Header

diskio.h

See Also

Reference

Copy External Structures
IOCTL_DISK_COPY_EXTERNAL_START
SECTOR_LIST_ENTRY
FILE_COPY_EXTERNAL