Solved

Rescan SCSI bus on NT 4.0

Posted on 1997-08-07
1
443 Views
Last Modified: 2013-12-03
We are connecting a non standard scanner via SCSI to a PC using Windows NT 4.0.
We are not using a class driver, but deactivating the standard SCSISCAN device service and controlling the scanner directly by calling the API functions
CreateFile("\\\\.\\scsix:", ...) and
DeviceIoControl(...,IOCTL_SCSI_PASS_THROUGH_DIRECT,...).

All works well with the restriction, that the scanner must be switched on while booting Windows NT.

How can we avoid this restriction ?
Is there an API function to rescan the SCSI bus when the System is running ?
We intend to rescan the SCSI bus after CreateFile() fails and then try it again.

Any hint is appreciated !!
0
Comment
Question by:moosach
1 Comment
 
LVL 3

Accepted Solution

by:
msmits earned 50 total points
ID: 1403338
I did this once in a program that used the ASPI (Adaptec) interface.

The problem I detected was that new devices were detected correctly,
but removed devices still showed up in the overview of available devices.
Although you got an error when actually accessing the device.

For information on the ASPI interface goto the adaptec WEB site at:

  http://www.adaptec.com

It should be possible to do the same thing with the DeviceIoControl function,
as I believe that is what the ASPI layer is using.

0

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

This article describes a technique for converting RTF (Rich Text Format) data to HTML and provides C++ source that does it all in just a few lines of code. Although RTF is coming to be considered a "legacy" format, it is still in common use... po…
zlib is a free compression library (a DLL) on which the popular gzip utility is built.  In this article, we'll see how to use the zlib functions to compress and decompress data in memory; that is, without needing to use a temporary file.  We'll be c…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

706 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now