TAPE_VERIFY_INQUIRY_ROUTINE callback function (minitape.h)

TAPE_VERIFY_INQUIRY_ROUTINE determines whether the tape miniclass driver recognizes and supports a given device. This routine is required.

Syntax

TAPE_VERIFY_INQUIRY_ROUTINE TapeVerifyInquiryRoutine;

BOOLEAN TapeVerifyInquiryRoutine(
  [in] PINQUIRYDATA InquiryData,
  [in] PMODE_CAPABILITIES_PAGE ModeCapabilitiesPage
)
{...}

Parameters

[in] InquiryData

Pointer to SCSI inquiry data for the device.

[in] ModeCapabilitiesPage

Pointer to a MODE_CAPABILITIES_PAGE structure that contains low-level information about the device. The format of this structure is defined by the QIC 157 standard and is subject to change. The pointer is NULL if the tape device does not support a mode capabilities page.

Return value

TAPE_VERIFY_INQUIRY_ROUTINE returns TRUE if the miniclass driver supports the device.

Remarks

TAPE_VERIFY_INQUIRY_ROUTINE examines the InquiryData, particularly the VendorId and ProductId members, to determine whether the tape miniclass driver supports the tape device. TAPE_VERIFY_INQUIRY_ROUTINE uses TapeClassCompareMemory to compare ID strings against values the tape miniclass driver supports.

Requirements

Requirement Value
Target Platform Desktop
Header minitape.h (include Minitape.h)

See also

TAPE_STATUS

TapeClassCompareMemory