Article View: borland.public.cppbuilder.nativeapi
Article #8380Re: get disk serial number
From: zhan wei ming
Date: Wed, 27 Oct 2004 15:20
Date: Wed, 27 Oct 2004 15:20
41 lines
2625 bytes
2625 bytes
Andrue, I am trying your code. let you know the result as it comes out. thanks. zhan wei ming "Andrue Cope [TeamB]" <no.spam@not.a.valid.address> wrote in message news:417fb931$1@newsgroups.borland.com... > zhan wei ming wrote: > > > OK. suppose the app is provided with a PC. ... ... > > let's come back to the technics. what's wrong with > > DeviceIoControl(...) which always returns error? > > Almost anything :-/ > > By now you've probably read my initial response. My example actually > uses a different command and I can personally vouch for it working. > > Then again I can also personally vouch for spending several days with a > colleage trying all sorts of things before I got what I wanted. It's a > bit like any of the following: > > * Trying to transfer data between two PCs using a serial cable. > * Trying to sort out Microsoft networking when it doesn't do it > itself. > > DeviceIOControl() doesn't help because about all it ever returns is "No > Error" or "A parameter is incorrect". Given that at times you have over > a dozen parameters (including structure members) this seems designed to > drive you mad. > > My first suggestion would be that you try my example with a SCSI device > first of all. When you have that working try it on an IDE device. > Everything you write and change should be documented on a notepad so > that you can be sure you know what you've done. > > -- > Andrue Cope [TeamB] > [Bicester, Uk] > http://info.borland.com/newsgroups/guide.html
Technical Details
Message-ID:
<417fbcd8@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!newsfeed.icl.net!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<417fa0fd@newsgroups.borland.com> <417fa38f@newsgroups.borland.com> <417fa9df@newsgroups.borland.com> <h9bvn0h2b0jkf2sh38ge4frnm6gmp92g8s@4ax.com> <417fb18e@newsgroups.borland.com> <417fb454@newsgroups.borland.com> <417fb931$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,bdae4482adfc73e4 X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit From: "zhan wei ming" <zhanweiming@hotmail.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <417fa0fd@newsgroups.borland.com> <417fa38f@newsgroups.borland.com> <417fa9df@newsgroups.borland.com> <h9bvn0h2b0jkf2sh38ge4frnm6gmp92g8s@4ax.com> <417fb18e@newsgroups.borland.com> <417fb454@newsgroups.borland.com> <417fb931$1@newsgroups.borland.com> Subject: Re: get disk serial number Date: Wed, 27 Oct 2004 23:20:49 +0800 Lines: 43 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1409 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 NNTP-Posting-Host: 211.136.158.34 Message-ID: <417fbcd8@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1098890456 211.136.158.34 (27 Oct 2004 08:20:56 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!newsfeed.icl.net!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail