Article ID: 140269
Article Last Modified on 2/12/2007
APPLIES TO
- Microsoft Win32 Device Driver Kit for Windows NT 3.5
- Microsoft Win32 Device Driver Kit for Windows NT 3.51
- Microsoft Windows NT 4.0 Driver Development Kit
- Microsoft Win32 Device Driver Kit for Windows 2000
This article was previously published under Q140269
SYMPTOMS
There is a problem when passing parameters to SCSI miniports.
Assume that you have a system with multiple adapters of the same type, so a
single miniport will support the hardware. If you want to set specific
parameters to only the first adapter (Device0) and not any other adapters,
you'd add to the SCSI miniport's registry key
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\XyzScsi a "Parameters"
subkey. Under the "Parameters" subkey, a "Device0" subkey would be added,
with a "DriverParameter" value. The registry entry would be similar to
this:
XyzScsi
Parameters
Device0
DriverParameter REG_SZ : "Device0 parameters"
This works fine for the first device found (Device0). The registry string
"Device0 parameters" is passed in as an argument to the HwFindAdapter
routine.
However, when the next device (Device1) is set up, the registry string for
Device0 is again passed to the HwFindAdapter routine. In fact, this string
will be passed in for all devices once it is set. This string should only
be passed to the first device (Device0).
RESOLUTION
As a temporary workaround, set up a default set of registry parameters for
all adapters and a specific key for the adapter with the required
parameters. For example, under the SCSI miniport key, create a Parameters
subkey. Under the Parameters subkey, create a subkey "Device" with some
non-intrusive parameters, such as a string the SCSI miniport will ignore.
Then, for the device you want to set a specific parameter to, say the first
device, create a device-specific key "Device0" with the device-specific
parameters. In the registry, this would look like similar to this:
XyzScsi
Parameters
Device
DriverParameter REG_SZ : "Parameters or string to be ignored"
Device0
DriverParameter REG_SZ : "Device0 parameters"
For Device0, the string "Device0 parameters" will be passed to the
HwFindAdapter routine. For all other devices, the string "Parameters or
string to be ignored" will be passed.
STATUS
Microsoft has determined that there is a problem with the Scsiport.sys
driver. This problem will be resolved in the next release of the operating
system.
For additional information, click the article number below
to view the article in the Microsoft Knowledge Base:
133706 How to Pass Parameters to a SCSI Miniport via the Registry
Additional query words: 3.50
Keywords: KB140269