🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Device Manager / How To extract data from?

#15558
From: Vladimir Afanasyev
Date: Wed, 25 Jun 2003 15:43
24 lines
1884 bytes
Hi Marc,

"Marc" <bukwheat@axess.com> wrote:
>
>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...

You can see source code for TDevInfoPnP (BCB5) in codecentral:
http://codecentral.borland.com/codecentral/ccweb.exe/listing?id=19049

It can enumerate devices and device resources but it still beta.

Vladimir.
Technical Details
Message-ID: <3ef9c31e$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-01!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
References: <3ef9b525$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,a6a257d2b3e22831
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-06-25 08:52:04 PST
From: "Vladimir Afanasyev" <avv@systema.kiev.ua>
Sender: "Vladimir Afanasyev" <avv@systema.kiev.ua>
Reply-To: "Vladimir Afanasyev" <avv@systema.kiev.ua>
Subject: Re: Device Manager / How To extract data from?
Newsgroups: borland.public.cppbuilder.nativeapi
X-User-Info: 62.244.14.114 62.244.14.114    
X-Forwarded-For: 192.168.0.147
References:  <3ef9b525$1@newsgroups.borland.com>
NNTP-Posting-Host: 207.105.83.65
Message-ID: <3ef9c31e$1@newsgroups.borland.com>
Date: 25 Jun 2003 08:43:26 -0700
X-Trace: newsgroups.borland.com 1056555806 207.105.83.65 (25 Jun 2003 08:43:26 -0700)
Lines: 25
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-01!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