🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Device Manager / How To extract data from?

#15557
From: Marc
Date: Wed, 25 Jun 2003 14:43
16 lines
1552 bytes
Hi

I already posted this question on ms_compatibility, but Alex 
from TeamB suggested posting here instead, hopefully this group
will bring me more luck.

I want to extract the name of my cdrom drive programmatically.
I looked at WMI but the results are inconsistent from PC to PC.
I also looked at the Setup API from windows, but can't seem to 
find a way to extract the name of the Cd drive.  The Windows Device Manager has the name in it. "SAMSUNG DVD-ROM SD-612" 

Is there a way I can Programatically get this name?  What API calls should I be looking at etc...

Thanks for the help
Marc
Technical Details
Message-ID: <3ef9b525$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-03!sn-xit-06!sn-xit-08!supernews.com!small1.nntp.aus1.giganews.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,a6a257d2b3e22831,start
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-06-25 08:06:54 PST
From: "Marc" <bukwheat@axess.com>
Sender: "Marc" <bukwheat@axess.com>
Reply-To: "Marc" <bukwheat@axess.com>
Subject: Device Manager / How To extract data from?
Newsgroups: borland.public.cppbuilder.nativeapi
X-User-Info: 138.11.254.204 138.11.254.204    
X-Forwarded-For: 192.168.157.45
NNTP-Posting-Host: 207.105.83.65
Message-ID: <3ef9b525$1@newsgroups.borland.com>
Date: 25 Jun 2003 07:43:49 -0700
X-Trace: newsgroups.borland.com 1056552229 207.105.83.65 (25 Jun 2003 07:43:49 -0700)
Lines: 17
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-03!sn-xit-06!sn-xit-08!supernews.com!small1.nntp.aus1.giganews.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail