INCLUDE \MASM32\INCLUDE\WNASPI32.INC INCLUDE \MASM32\INCLUDE\SCSIDEFS.INC hEventSRB DD ? ashWnd DD ? szAspiDllName DB "WNASPI32.DLL",0 hAspiLib DD ? szGetASPI32SupportInfo DB "GetASPI32SupportInfo",0 fnGetASPI32SupportInfo DD ? szSendASPI32Command DB "SendASPI32Command",0 fnSendASPI32Command DD ? szCaption_ASTA DB "Message from AspiStart",0 szMsg_ASTA_1 DB "WNASPI32.DLL not found.",0 szMsg_ASTA_2 DB "GetASPI32SupportInfo not found.",0 szMsg_ASTA_3 DB "SendASPI32Command not found.",0 szMsg_ASTA_4 DB "ASPI manager not found.",0 szMsg_ASTA_5 DB "ASPI for Windows does not support real mode.",0 szMsg_ASTA_6 DB "ASPI manager does not wupport win32.",0 szMsg_ASTA_7 DB "No SCSI2 host adapters installed.",0 szMsg_ASTA_8 DB "DLL mismatch. Reinstall ASPI.",0 szMsg_ASTA_9 DB "No system resources.",0 szMsg_ASTA_10 DB "Could not initialize ASPI manager.",0 szMsg_ASTA_11 DB "ASPI for Windows: generic error.",0 szMsg_ASTA_12 DB "Could not create the event.",0 szCaption_SBS DB "Message from SCSI2 bus scan",0 szMsg_SBS_1 DB "Host adapter inquiry failed.",0 szMsg_SBS_2 DB "ASPI manager installed: .................",0 szMsg_SBS_3 DB "Host adapter number : inquiry failed.",0 szMsg_SBS_4 DB "Identification host adapter n. : .....................",0 szCaption_SBS_5 DB "SCSI2 Id . lun . - ................................." szBuf_SBS_5 DB "...................................." ;36 bytes szMsg_SBS_5 DB ".........................",0,0,0,0,0,0,0,0,0,0,0 HA_num DD ? ;used to scan host adapters HA_Count DD ? ;total number of installed host adapters SCSI_Id DD ? SCSI_Lun DD ? SRB_INQUIRY SRB_HAInquiry SRB_GDEVB SRB_GDEVBlock SRB_EXEC SRB_ExecSCSICmd DevicesTable DB "Direct access storage device",0,0,0,0,0 DB "Sequential access storage device",0 DB "Printer device",0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 DB "Processor device",0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 DB "WORM device",0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 DB "CD-ROM device",0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 DB "Scanner device",0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 DB "Optical memory device",0,0,0,0,0,0,0,0,0,0,0,0 DB "Medium changer device",0,0,0,0,0,0,0,0,0,0,0,0 DB "Communication device",0,0,0,0,0,0,0,0,0,0,0,0,0 szCaptionSense DB "Check sense",0 szMsgSense DB "ASPI status: ... - HA status: ... - Target status: ...",13,13,"Sense code: ..H - ASC: ..H - ASCQ: ..H",0