🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Problem with GetVolumeInformation

#16662
From: hpl
Date: Sun, 04 May 2003 15:44
17 lines
1353 bytes
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?

Thanks in advance.

hpl
Technical Details
Message-ID: <3eb5353d$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-06!sn-xit-08!supernews.com!priapus.visi.com!news-out.visi.com!petbe.visi.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,6cac0dea2ce496bd,start
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-05-04 08:52:11 PST
From: "hpl" <hpl.muc@web.de>
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Problem with GetVolumeInformation
Date: Sun, 4 May 2003 17:44:38 +0200
Lines: 19
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
NNTP-Posting-Host: 213.7.6.33
Message-ID: <3eb5353d$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1052063037 213.7.6.33 (4 May 2003 08:43:57 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-06!sn-xit-08!supernews.com!priapus.visi.com!news-out.visi.com!petbe.visi.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail