Solved

Rescan SCSI bus on NT 4.0

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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

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…
This article surveys and compares options for encoding and decoding base64 data.  It includes source code in C++ as well as examples of how to use standard Windows API functions for these tasks. We'll look at the algorithms — how encoding and decodi…
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…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…

822 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