🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Drive letter

#1286
From: Ted Lyngmo
Date: Mon, 01 Oct 2007 22:02
17 lines
1488 bytes
Anton wrote:
> 
> To determine the Hardware-id of the storage media (harddisc and 
> usb-storage) I use the Register information and this works fine.
> 
> Now I'm looking for a way wich driveletter belongs to each storage medium.

I'm not quite sure if this is what you are after, but take a look at the 
Win32 calls:

GetLogicalDrives()
GetVolumeInformation()

Don't know about "hardware id" though...

Best regards,
Ted Lyngmo
Technical Details
Message-ID: <47016e72$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news.glorb.com!newsgate.cistron.nl!xs4all!feeder.news-service.com!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <4701649a@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,1b40a17d6647f089
X-Google-Attributes: gid10cc67,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
Date: Tue, 02 Oct 2007 00:02:32 +0200
From: Ted Lyngmo <tedREMOVETHIS@lyncon.se>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.2) Gecko/20040804 Netscape/7.2 (ax)
X-Accept-Language: sv, en, en-us
MIME-Version: 1.0
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Re: Drive letter
References: <4701649a@newsgroups.borland.com>
In-Reply-To: <4701649a@newsgroups.borland.com>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 85.195.27.81
Message-ID: <47016e72$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1191276146 85.195.27.81 (1 Oct 2007 15:02:26 -0700)
Lines: 17
Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news.glorb.com!newsgate.cistron.nl!xs4all!feeder.news-service.com!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail