IOCTL_TAPE_OBTAIN_VERSION

Issue this command to obtain the version of the device driver. It is in the form of a null terminated string.

This IOCTL is only for the tape path.

The following output structure is completed by the IOCTL_TAPE_OBTAIN_VERSION command.
#define MAX_DRIVER_VERSIONID_LENGTH 12

typedef struct _TAPE_OBTAIN_VERSION {
 CHAR VersionId[MAX_DRIVER_VERSIONID_LENGTH];
} TAPE_OBTAIN_VERSION, *PTAPE_OBTAIN_VERSION;
An example of the IOCTL_TAPE_OBTAIN_VERSION command is
DWORD cb;
TAPE_OBTAIN_VERSION code_version;
DeviceIoControl(hDevice,
                IOCTL_TAPE_OBTAIN_VERSION,
                NULL,
                0,
                &code_version,
                (long)sizeof(TAPE_OBTAIN_VERSION),
                &cb,
                (LPOVERLAPPED) NULL);