🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Device Manager / How To extract data from?

#15560
From: Marc
Date: Wed, 25 Jun 2003 16:28
36 lines
2062 bytes
Hello

Thanks for the code, it seems to work great, I will look at it 
in more detail.  

Thanks
Marc


"Vladimir Afanasyev" <avv@systema.kiev.ua> wrote:
>
>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: <3ef9cdc3$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!border3.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> <3ef9c31e$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 09:37:34 PST
From: "Marc" <Bukwheat@axess.com>
Sender: "Marc" <Bukwheat@axess.com>
Reply-To: "Marc" <Bukwheat@axess.com>
Subject: Re: 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
References:  <3ef9b525$1@newsgroups.borland.com> <3ef9c31e$1@newsgroups.borland.com>
NNTP-Posting-Host: 207.105.83.65
Message-ID: <3ef9cdc3$1@newsgroups.borland.com>
Date: 25 Jun 2003 09:28:51 -0700
X-Trace: newsgroups.borland.com 1056558531 207.105.83.65 (25 Jun 2003 09:28:51 -0700)
Lines: 37
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!border3.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