Re: How to find an interface to be used with CreateFile() by Alexander
Alexander
Fri May 21 21:37:28 CDT 2004
Actually, I was not right.
GUID_DEVINTERFACE_STORAGEPORT is only registered for real SCSI adapters.
"Mark Roddy" <markr@hollistech.com> wrote in message
news:%23sCI2b1PEHA.2132@TK2MSFTNGP11.phx.gbl...
> Right. But if you want the adapter devices you can't use a device
interface.
> Keeps us programmers on our toes :-)
>
> --
>
> =====================
> Mark Roddy
> Windows 2003/XP/2000 Consulting
> Hollis Technology Solutions 603-321-1032
> www.hollistech.com
> markr@hollistech.com
>
>
> "Alexander Grigoriev" <alegr@earthlink.net> wrote in message
> news:e3rRH5zPEHA.2132@TK2MSFTNGP11.phx.gbl...
> > If one wants all devices with SCSI-like command interface, like CD
drives
> > and scanners connected through IDE, USB, IEEE1394, I think those SCSI
> ports
> > don't have NT4 style name.
> >
> > You can also use the interface GUID for notifications.
> >
> > "Mark Roddy" <markr@hollistech.com> wrote in message
> > news:%23w2aBLyPEHA.3216@TK2MSFTNGP12.phx.gbl...
> > > Last time I looked you still have to do the nt4-style createfile on
> names
> > > such as scsi0.
> > >
> > > --
> > >
> > > =====================
> > > Mark Roddy
> > > Windows 2003/XP/2000 Consulting
> > > Hollis Technology Solutions 603-321-1032
> > > www.hollistech.com
> > > markr@hollistech.com
> > >
> > >
> > > "Alexander Grigoriev" <alegr@earthlink.net> wrote in message
> > > news:%23WdxLfqPEHA.3140@TK2MSFTNGP11.phx.gbl...
> > > > GUID_DEVCLASS_SCSIADAPTER is device class guid (which you can find
> under
> > > > HKLM/CurrentControlSet/Control/Class).
> > > >
> > > > It if NOT SCSI interface class.
> > > >
> > > > Try GUID_DEVINTERFACE_STORAGEPORT
> > > >
> > > > "the veloper" <ppp_l_qqq@yahoo.com> wrote in message
> > > > news:de0ced42.0405190850.3cc8c12d@posting.google.com...
> > > > > ... I got delayed on something else ...
> > > > >
> > > > > When I said "I can't get a handle thru CreateFile" is because
there
> is
> > > > > nothing from the infor returned by GUID_DEVCLASS_SCSIADAPTER that
I
> > > > > can use to pass as the first parameter to CreateFile(). This is
in
> > > > > contrast to when using GUID_DEVINTERFACE_DISK because I can use
> > > > > SetupDiEnumDeviceInterfaces() to get the interface path that I can
> > > > > pass along to CreateFile(). Calling SetupDiEnumDeviceInterfaces()
> for
> > > > > GUID_DEV_CLASS_SCSIADAPTER of course does not work because it is
not
> > > > > an interface class.
> > > > >
> > > > >
> > > > > "Peter Wieland [MSFT]" <peterwie@online.microsoft.com> wrote in
> > message
> > > > news:<uaQowz5NEHA.2972@TK2MSFTNGP10.phx.gbl>...
> > > > > > "I can enumerate devices of type GUID_DEVCLASS_SCSIADAPTER and
> find
> > > the
> > > > > > controller I want to talk to, but I can't get a handle thru
> > > CreateFile"
> > > > > >
> > > > > > You implied that you could get get the name for the device but
> that
> > > > create
> > > > > > file didn't work. What is the error when createFile returns?
> > > > > >
> > > > > > -p
> > > >
> > > >
> > >
> > >
> >
> >
>
>