// ntddtape.h
// CTL_CODE(0x001f, 0x00a, METHOD_BUFFERED, FILE_READ_ACCESS | FILE_WRITE_ACCESS)
#define IOCTL_TAPE_CREATE_PARTITION 0x001FC028
View the official Windows Driver Kit DDI referenceNo description available.
Creates the specified number of fixed, select, or initiator partition(s) of the given size on the media.
The buffer at Irp->AssociatedIrp.SystemBuffer contains a structure of type TAPE_CREATE_PARTITION that specifies the partition(s) to be created.
Parameters.DeviceIoControl.InputBufferLength in the I/O stack location indicates the size, in bytes, of the parameter buffer, which must be >= sizeof(TAPE_CREATE_PARTITION).
None.
None.
The Information field is set to zero. The Status field is set to STATUS_SUCCESS, or possibly to STATUS_IO_DEVICE_ERROR, STATUS_MEDIA_WRITE_PROTECTED, STATUS_DEVICE_DATA_ERROR, STATUS_NO_SUCH_DEVICE, STATUS_IO_TIMEOUT, STATUS_DEVICE_NOT_READY, STATUS_INFO_LENGTH_MISMATCH, STATUS_NO_MEDIA_IN_DEVICE, or STATUS_VERIFY_REQUIRED.