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
Solved

Rescan SCSI bus on NT 4.0

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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

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…
Entering time in Microsoft Access can be difficult. An input mask often bothers users more than helping them and won't catch all typing errors. This article shows how to create a textbox for 24-hour time input with full validation politely catching …
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…

840 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