Article View: borland.public.cppbuilder.nativeapi
Article #8471Re: get disk serial number
From: Ed Mulroy [TeamB]
Date: Wed, 27 Oct 2004 13:38
Date: Wed, 27 Oct 2004 13:38
28 lines
2033 bytes
2033 bytes
> Yes but it's not simple. We issue a SCSI Identify > command then interpret what comes back. Since > Windows 'fakes' SCSI responses for IDE ... Do you have any hints about how one could do that or at least where to find the info on how to do it? The only way I know is with a 16 bit program that reads the serial number and feeds it back. That's enough of a kludge that I've long since given up on doing that. . Ed > Andrue Cope wrote in message > news:417fa38f@newsgroups.borland.com... > >> any body knows how to get serial number (not volume >> serial number) of a disk, say C drive? > > Yes but it's not simple. We issue a SCSI Identify command > then interpret what comes back. Since Windows 'fakes' > SCSI responses for IDE drives the resulting data block will > often have been manufactured by the OS and it's contents > aren't neccessarily useful. > > There may be a better method using the EnumDevices > functions but this will only work under Windows 2000 or > XP where SetupAPI.DLL is available.
Technical Details
Message-ID:
<417fa4dd@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!news.tele.dk!news.tele.dk!small.news.tele.dk!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>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,bdae4482adfc73e4 X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Ed Mulroy [TeamB]" <dont_email_me@invalid.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <417fa0fd@newsgroups.borland.com> <417fa38f@newsgroups.borland.com> Subject: Re: get disk serial number Date: Wed, 27 Oct 2004 09:38:34 -0400 Lines: 30 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.74.175.102 Message-ID: <417fa4dd@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1098884317 24.74.175.102 (27 Oct 2004 06:38:37 -0700) X-Authenticated-User: edmulroy Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail