RE: About Communicating with SCSI devices via Win32 appli cation

the other nice thing about this is that (if you’ve already had to set MapBuffers) you can use vendor specific commands to the LUN to do your configuration rather than miniport IOCTLs which have more performance issues.

please, please, please, please, please do NOT make your fake device SCSI_DISK or any other useful storage class (cdrom, tape, etc…)

if you do expose a fake device, you should expect to ship a scsi device INF which has an entry for your fake device and silently installs no driver. Otherwise your customers hit device popups. (this may not be necessary for SCSI_OTHER, but for SCSI_PROCESSOR we have no idea whether the device is a RAID controller, some other server type device, or a consumer printer and we need to ask for drivers to resolve the last case)

-p

-----Original Message-----
From: Mark Roddy [mailto:xxxxx@hollistech.com]
Sent: Friday, March 14, 2003 7:19 AM
To: NT Developers Interest List

Ah good point. The solution to this bug is for the miniport
to create a target that is always present. SCSI_PROCESSOR or
SCSI_OTHER usually works.

===========================
Mark Roddy
Consultant, Microsoft DDK MVP
Hollis Technology Solutions
xxxxx@hollistech.com
www.hollistech.com
603-321-1032

-----Original Message-----
From: “Nike Chen”
> To: “NT Developers Interest List”
> Date: Fri, 14 Mar 2003 16:57:41 +0800
> Subject: [ntdev] RE: About Communicating with SCSI devices via Win32
> appli cation
>
> >
> > n
> > nThe device control codes IOCTL_SCSI_MINIPORT require that
> a valid SCSI
> > device be previously recognized before the IOCTL can be passed on to
> > the
> > SCSI miniport.
> >
> > Please refer the MS Knowledge base article Q137247.
> >
> > regards,
> > Nike
> > ----- Original Message -----
> > From: “? ?”
> > To: “NT Developers Interest List”
> > Sent: Friday, March 14, 2003 2:19 PM
> > Subject: [ntdev] RE: About Communicating with SCSI devices via Win32
> > appli
> > cation
> >
> >
> > In my win32 usermode application:
> >
> > bReturn = DeviceIoControl (“\\.\Scsi2:”,
> IOCTL_SCSI_MINIPORT,…);
> > /* “\\.\Scsi2:” is my virtual miniport’s name */
> >
> > In my virtual scsi miniport’s HwScsiStartIo routine:
> >
> > …
> > switch (Srb->Function) {
> > case SRB_FUNCTION_EXECUTE_SCSI:
> > ExecuteScsi (DeviceExtension, Srb);
> > break;
> > case SRB_FUNCTION_IO_CONTROL:
> > HandleIoControl (DeviceExtension, Srb);
> > break;
> > default:
> > break;
> > …
> >
> > I find DeviceIoControl im my usermode application can’t make port
> > driver
> > call my
> > miniport’s HwSartIo routine??say nothing of “case
> > SRB_FUNCTION_IO_CONTROL”).
> >
> > Can anyone tell me why?
> >
> >
> >
> >
> >
> >
> >
> >
> > >From: “Roddy, Mark”
> > >Reply-To: “NT Developers Interest List”
> > >To: “NT Developers Interest List”
> > >Subject: [ntdev] RE: About Communicating with SCSI devices
> via Win32
> > appli
> > cation
> > >Date: Thu, 13 Mar 2003 12:45:16 -0500
> > >
> > >You poll the existing scsiN devices sending each a private
> IOCTL that
> > only
> > >your miniport will accept.
> > >
> > > > -----Original Message-----
> > > > From: ? ? [mailto:xxxxx@hotmail.com]
> > > > Sent: Thursday, March 13, 2003 8:21 AM
> > > > To: NT Developers Interest List
> > > > Subject: [ntdev] About Communicating with SCSI devices via
> > > > Win32 application
> > > >
> > > >
> > > > I want to send IOCTL_SCSI_XXX from usermode application to my
> > > > virtual scsi
> > > > miniport:
> > > >
> > > > hDevice = CreateFile (“\\.\Scsix”,…);
> > > > bReturn = DeviceIoControl (hDevice,…);
> > > >
> > > > but,
> > > > How can i know my miniport’s name ??scsi0 , scsi1 or
> scsi2…) in
> > my
> > > > program?
> > > >
> > > > Thanks in advance!
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
>
> > > > ???ѽ??н???ʹ?? MSN Messenger:
> > http://messenger.msn.com/cn
> > > >
> > > >
> > > >
> > > > —
> > > > You are currently subscribed to ntdev as:
> > > > xxxxx@stratus.com To unsubscribe send a blank email to
> > > > xxxxx@lists.osr.com
> > > >
> > >
> > >
> > >—
> > >You are currently subscribed to ntdev as: xxxxx@hotmail.com
> > >To unsubscribe send a blank email to
> xxxxx@lists.osr.com
> >
> >
> >

> > ???ѽ??н???ʹ?? MSN Messenger:
> > http://messenger.msn.com/cn
> >
> >
> >
> > —
> > You are currently subscribed to ntdev as: xxxxx@iei.com.tw
> > To unsubscribe send a blank email to xxxxx@lists.osr.com
> >
> >
> >
> >
> > —
> > You are currently subscribed to ntdev as: xxxxx@hollistech.com
> > To unsubscribe send a blank email to xxxxx@lists.osr.com
>
>
>
> —
> You are currently subscribed to ntdev as: xxxxx@microsoft.com
> To unsubscribe send a blank email to xxxxx@lists.osr.com
>
>