🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #4637

Re: Problem with DeviceIoControl() IOCTL_STORAGE_QUERY_PROPERTY

#4637
From: Kris
Date: Fri, 16 Dec 2005 02:38
42 lines
2707 bytes
In my development system I currently have 4 removable storage
devices...
- 1 USB DVD Device
- 1 IDE DVD Device
- 2 virtual devices (categorized as SCSI and respond very well to my
commands)

I also read the remark you mention about only PnP drivers being able
to respond to IOCTL_STORAGE_QUERY_PROPERTY. However, my worries about
some devices not being able to respond turned out to be unfounded
since running the Microsoft enumcd.exe example showed that all of the
4 devices had no problems whatsoever reporting their adapter
properties.

By the way, I'm currently developing on Windows XP Pro SP2.

Kris


On Thu, 15 Dec 2005 15:28:25 +0000, "Andrue Cope [TeamB]"
<no.spam@not.a.valid.address> wrote:

>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.
Technical Details
Message-ID: <en94q1p55ffnfc351r9kvrcp5ul9kfic4c@4ax.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!feed3.newsreader.com!newsreader.com!yellow.newsread.com!netaxs.com!newsread.com!news-out.newsfeeds.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail
References: <8b04q11n406hs1bonf8n9586mn3of3lqm3@4ax.com> <43a17435$1@newsgroups.borland.com> <r764q1lobeoa0ssdsh3bvq26s1vilegtii@4ax.com> <43a18b3e@newsgroups.borland.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: Kris <no.email@mail.nl>
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Re: Problem with DeviceIoControl() IOCTL_STORAGE_QUERY_PROPERTY
Date: Thu, 15 Dec 2005 18:38:57 -0800
Message-ID: <en94q1p55ffnfc351r9kvrcp5ul9kfic4c@4ax.com>
References: <8b04q11n406hs1bonf8n9586mn3of3lqm3@4ax.com> <43a17435$1@newsgroups.borland.com> <r764q1lobeoa0ssdsh3bvq26s1vilegtii@4ax.com> <43a18b3e@newsgroups.borland.com>
X-Newsreader: Forte Free Agent 3.1/32.783
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 212.100.176.226
X-Trace: newsgroups.borland.com 1134661063 212.100.176.226 (15 Dec 2005 07:37:43 -0700)
Lines: 42
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!feed3.newsreader.com!newsreader.com!yellow.newsread.com!netaxs.com!newsread.com!news-out.newsfeeds.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail