🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Problem with DeviceIoControl() IOCTL_STORAGE_QUERY_PROPERTY

#4665
From: Mike Harris
Date: Sat, 17 Dec 2005 01:35
41 lines
1913 bytes
Kris.
    in your call to
Status = DeviceIoControl(
            Handle,
            IOCTL_STORAGE_QUERY_PROPERTY,
            &query,
            sizeof(STORAGE_PROPERTY_QUERY),
            &outBuf,
            sizeof(outBuf),
            &returnedLength,
            NULL
            );
just to humor me.. try following changes

STORAGE_DEVICE_DESCRIPTOR StDescript = { 0 };

status = DeviceIoControl( hHandle,
                 IOCTL_STORAGE_QUERY_PROPERTY,
                 &StDescript,
                 sizeof(STORAGE_DEVICE_DESCRIPTOR),
                 &buffer,
                 512,
                 &dwBytsReturned,
                 NULL );


if (status)

let me know if that makes any diff ...

--
Michael


"Kris" wrote in message
> I welcome anyone who has any ideas on how to really benefit from the
> wealth of bus types that STORAGE_BUS_TYPE has to offer.
>
> Thank you,
>
> Kris
Technical Details
Message-ID: <43a36b0d$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news2.volia.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <8b04q11n406hs1bonf8n9586mn3of3lqm3@4ax.com> <ou86q1tiik2rplgfs7gdoo6itfdd6e9c3d@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
Reply-To: "Mike Harris" <nospam@nospam.com>
From: "Mike Harris" <nospam@nospam.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <8b04q11n406hs1bonf8n9586mn3of3lqm3@4ax.com> <ou86q1tiik2rplgfs7gdoo6itfdd6e9c3d@4ax.com>
Subject: Re: Problem with DeviceIoControl() IOCTL_STORAGE_QUERY_PROPERTY
Date: Fri, 16 Dec 2005 19:35:50 -0600
Lines: 44
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
X-RFC2646: Format=Flowed; Original
NNTP-Posting-Host: 24.0.216.186
Message-ID: <43a36b0d$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1134783245 24.0.216.186 (16 Dec 2005 17:34:05 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news2.volia.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail