scanscsi.exe is a very simple ASPI for Win16 and ASPI for Win32 application which scans the SCSI bus and displays the device name of each target it finds on the SCSI bus. When the program first comes up, you are prompted to select either ASPI posting or polling to detect completion of a SCSI request. The Scan menu enables you to configure which SCSI targets should be scanned and which should not:
The following scanscsi.c sample code also shows you how to free up the processor while SCSI operations are running in the background. This is very important, since Windows is currently a non-preemptive multitasking operating system. scanscsi.exe does minimal error checking and has no time-out code. Your application should be more robust.