Solved

Rescan SCSI bus on NT 4.0

Posted on 1997-08-07
1
456 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

[Webinar] Learn How Hackers Steal Your Credentials

Do You Know How Hackers Steal Your Credentials? Join us and Skyport Systems to learn how hackers steal your credentials and why Active Directory must be secure to stop them. Thursday, July 13, 2017 10:00 A.M. PDT

Question has a verified solution.

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

This tutorial is about how to put some of your C++ program's functionality into a standard DLL, and how to make working with the EXE and the DLL simple and seamless.   We'll be using Microsoft Visual Studio 2008 and we will cut out the noise; that i…
After several hours of googling I could not gather any information on this topic. There are several ways of controlling the USB port connected to any storage device. The best example of that is by changing the registry value of "HKEY_LOCAL_MACHINE\S…
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…
Come and listen to Percona CEO Peter Zaitsev discuss what’s new in Percona open source software, including Percona Server for MySQL (https://www.percona.com/software/mysql-database/percona-server) and MongoDB (https://www.percona.com/software/mongo-…

717 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