Solved

Rescan SCSI bus on NT 4.0

Posted on 1997-08-07
1
446 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this article, I will show how to use the Ribbon IDs Tool Window to assign the built-in Office icons to a ribbon button.  This tool will help us to find the OfficeImageId that corresponds to our desired built-in Office icon. The tool is part of…
As more and more people are shifting to the latest .Net frameworks, the windows presentation framework is gaining importance by the day. Many people are now turning to WPF controls to provide a rich user experience. I have been using WPF controls fo…
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
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…

920 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

15 Experts available now in Live!

Get 1:1 Help Now