Article View: borland.public.cppbuilder.nativeapi
Article #4636Re: Problem with DeviceIoControl() IOCTL_STORAGE_QUERY_PROPERTY
From: Andrue Cope [TeamB]
Date: Thu, 15 Dec 2005 15:28
Date: Thu, 15 Dec 2005 15:28
24 lines
1997 bytes
1997 bytes
Kris wrote: > The device path should be just fine. Microsoft's enumcd example > generates a device handle by using exactly the same device path as I > do. Probably should be fine then although from my experience of asking about this stuff on their newsgroup I'm not sure even /they/ know what they are doing. Either way it's best to doubt everything in my experience with this stuff. I note the following from the documentation: "Only Plug and Play drivers can issue IOCTL_STORAGE_QUERY_PROPERTY requests. Legacy drivers should use IOCTL_SCSI_GET_INQUIRY_DATA and IOCTL_SCSI_GET_CAPABILITIES to get inquiry and capabilities data." I'm not entirely sure what this means but I'm investigating it on the various devices I have on my system. One or more of them might be plug and play and might produce a better result. -- Andrue Cope [TeamB] [Bicester, Uk] http://info.borland.com/newsgroups/guide.html
Technical Details
Message-ID:
<43a18b3e@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx02.iad01.newshosting.com!newshosting.com!news-out.newsfeeds.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mailReferences:
<8b04q11n406hs1bonf8n9586mn3of3lqm3@4ax.com> <43a17435$1@newsgroups.borland.com> <r764q1lobeoa0ssdsh3bvq26s1vilegtii@4ax.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,f7af8c8a3ab6155a X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Andrue Cope [TeamB]" <no.spam@not.a.valid.address> Subject: Re: Problem with DeviceIoControl() IOCTL_STORAGE_QUERY_PROPERTY Newsgroups: borland.public.cppbuilder.nativeapi References: <8b04q11n406hs1bonf8n9586mn3of3lqm3@4ax.com> <43a17435$1@newsgroups.borland.com> <r764q1lobeoa0ssdsh3bvq26s1vilegtii@4ax.com> Date: Thu, 15 Dec 2005 15:28:25 +0000 User-Agent: XanaNews/1.17.6.6 MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 NNTP-Posting-Host: 217.207.223.34 Message-ID: <43a18b3e@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1134660414 217.207.223.34 (15 Dec 2005 07:26:54 -0700) Lines: 24 X-Authenticated-User: acope Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx02.iad01.newshosting.com!newshosting.com!news-out.newsfeeds.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail