🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Problem with GetVolumeInformation

#16664
From: Sam Mildener
Date: Sun, 04 May 2003 17:52
23 lines
1665 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?

Missing ampersand:

GetVolumeLabel ("D:\\", vlabel, &vlabellength, NULL, NULL, NULL,NULL)

--

Sam Mildener
Technical Details
Message-ID: <Zrcta.4698$1K1.835026060@hestia.telenet-ops.be>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!sn-xit-08!supernews.com!newsswitch.lcs.mit.edu!newsfeed.cwix.com!ossa.telenet-ops.be!hestia.telenet-ops.be.POSTED!not-for-mail
References: <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 10:59:21 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!sn-xit-08!supernews.com!newsswitch.lcs.mit.edu!newsfeed.cwix.com!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: 25
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: <Zrcta.4698$1K1.835026060@hestia.telenet-ops.be>
Date: Sun, 04 May 2003 17:52:57 GMT
NNTP-Posting-Host: 81.83.230.197
X-Complaints-To: abuse@telenet.be
X-Trace: hestia.telenet-ops.be 1052070777 81.83.230.197 (Sun, 04 May 2003 19:52:57 CEST)
NNTP-Posting-Date: Sun, 04 May 2003 19:52:57 CEST
Organization: Telenet Internet