// minitape.h
typedef struct _TAPE_CREATE_PARTITION {
ULONG Method;
ULONG Count;
ULONG Size;
} TAPE_CREATE_PARTITION, *PTAPE_CREATE_PARTITION;
View the official Windows Driver Kit DDI reference// ntddtape.h
typedef struct _TAPE_CREATE_PARTITION {
ULONG Method;
ULONG Count;
ULONG Size;
} TAPE_CREATE_PARTITION, *PTAPE_CREATE_PARTITION;
View the official Windows Driver Kit DDI referenceNo description available.
The TAPE_CREATE_PARTITION structure is used in conjunction with the IOCTL_TAPE_CREATE_PARTITION request to create a specified number of fixed, select, or initiator partitions of a given size on the tape media.
MethodIndicates the method used to create the partitions. This member can have one of the following values:
| Method | Meaning |
|---|---|
| TAPE_FIXED_PARTITIONS | Partitions the tape based on the device's default definition of partitions. The Count and Size parameters are ignored. |
| TAPE_SELECT_PARTITIONS | Partitions the tape into the number of partitions specified by Count. The Size parameter is ignored. The size of the partitions is determined by the device's default partition size. For more specific information, refer to the documentation for your tape device. |
| TAPE_INITIATOR_PARTITIONS | Partitions the tape into the number and size of partitions specified by Count and Size, respectively, except for the last partition. The size of the last partition is the remainder of the tape. |
CountIndicates the number of partitions to create.
SizeIndicates the size of each partition, in bytes.
The TAPE_CREATE_PARTITION structure is used in conjunction with the IOCTL_TAPE_CREATE_PARTITION request to create a specified number of fixed, select, or initiator partitions of a given size on the tape media.
MethodIndicates the method used to create the partitions. This member can have one of the following values:
| Method | Meaning |
|---|---|
| TAPE_FIXED_PARTITIONS | Partitions the tape based on the device's default definition of partitions. The Count and Size parameters are ignored. |
| TAPE_SELECT_PARTITIONS | Partitions the tape into the number of partitions specified by Count. The Size parameter is ignored. The size of the partitions is determined by the device's default partition size. For more specific information, refer to the documentation for your tape device. |
| TAPE_INITIATOR_PARTITIONS | Partitions the tape into the number and size of partitions specified by Count and Size, respectively, except for the last partition. The size of the last partition is the remainder of the tape. |
CountIndicates the number of partitions to create.
SizeIndicates the size of each partition, in bytes.