Article View: borland.public.cppbuilder.nativeapi
Article #16665Re: Problem with GetVolumeInformation
From: Sam Mildener
Date: Sun, 04 May 2003 18:00
Date: Sun, 04 May 2003 18:00
27 lines
1844 bytes
1844 bytes
hpl wrote:
> Hi folks,
>
> I do have a problem with the win32-function GetVolumeInformation.
> With the following line I try to get the VolumeLabel from my CD-ROM
> D:-Drive;
> char vlabel [32]; //* buffer for VolumeLabel
> unsigned int vlabellength;
> GetVolumeLabel ("D:\\", vlabel, vlabellength, NULL, NULL, NULL,NULL)
>
> Nevertheless I always get
> a) nonsens in vlabel and
> b) a totally irrelevant length of the buffer vlabel?
>
> What is going wrong here?
Please ignore my previous message (I was confusing GetVolumeLabel with
something else).
Here's the modification needed:
unsigned int vlabellength=32;
--
Sam Mildener
Technical Details
Message-ID:
<Tycta.4725$cr2.837877802@hestia.telenet-ops.be>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-04!sn-xit-01!sn-xit-08!supernews.com!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed.multikabel.nl!newsfeed.kabelfoon.nl!212.113.2.136.MISMATCH!newsfeed.london1.eu.level3.net!level3eu!ossa.telenet-ops.be!hestia.telenet-ops.be.POSTED!not-for-mailReferences:
<3eb5353d$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,6cac0dea2ce496bd X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2003-05-04 11:06:07 PST Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-04!sn-xit-01!sn-xit-08!supernews.com!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed.multikabel.nl!newsfeed.kabelfoon.nl!212.113.2.136.MISMATCH!newsfeed.london1.eu.level3.net!level3eu!ossa.telenet-ops.be!hestia.telenet-ops.be.POSTED!not-for-mail From: "Sam Mildener" <nospam@hotmail.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <3eb5353d$1@newsgroups.borland.com> Subject: Re: Problem with GetVolumeInformation Lines: 29 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 Message-ID: <Tycta.4725$cr2.837877802@hestia.telenet-ops.be> Date: Sun, 04 May 2003 18:00:19 GMT NNTP-Posting-Host: 81.83.230.197 X-Complaints-To: abuse@telenet.be X-Trace: hestia.telenet-ops.be 1052071219 81.83.230.197 (Sun, 04 May 2003 20:00:19 CEST) NNTP-Posting-Date: Sun, 04 May 2003 20:00:19 CEST Organization: Telenet Internet