Solved

How to get the manufacturer name and model of the CD-ROM drive?

Posted on 1997-09-28
7
406 Views
Last Modified: 2013-12-03
I need to get the manufacturer name and model of the CD-ROM drive, something like the string which appears in Start | Settings | Control Panel | System | CD-ROM drive in Windows 95. I tried with MCI, but it returns an useless 'CD audio' string, not the information I need. I would need to get such an information under every version of Windows (Windows 3.x, Windows 95 and, if possible, Windows NT): is there any API call? I use Borland Pascal for Windows 7.0.
0
Comment
Question by:mauromol
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 2
7 Comments
 

Expert Comment

by:JohnnyBoy
ID: 1407112
Have a look at the "GetSystemInfo" function, it may help...
0
 

Author Comment

by:mauromol
ID: 1407113
To JohnnyBoy: where can I find GetSystemInfo function?
0
 

Author Comment

by:mauromol
ID: 1407114
Adjusted points to 150
0
Salesforce Has Never Been Easier

Improve and reinforce salesforce training & adoption using WalkMe's digital adoption platform. Start saving on costly employee training by creating fast intuitive Walk-Thrus for Salesforce. Claim your Free Account Now

 

Accepted Solution

by:
borov earned 150 total points
ID: 1407115
Pretending to answer, but not sure...

Try to enumerate all the keys under HKEY_LOCAL_MACHINE\Enum\SCSI\ key in the registry (this is true for Win95, cant try it on NT). Each key here must have "Class=CDROM" value and "DeviceDesc" contains exact CDROM manufacturer name. Also you can find there many other useful information.

0
 

Author Comment

by:mauromol
ID: 1407116
Thank you for your answer. Anyway, there are some problems:
- how can I get the same information under Windows 3.x? Isn't there any way to do it through Windows? Do I have to use MSCDEX and Assembly?
- is there any way to access the information contained in the registry with a 16-bit compiler? I use Borland Pascal for Windows 7.0, which is designed for Windows 3.1: how can I get this
information from the registry under Windows 95?
- browsing my registry through REGEDIT, I noticed that there are old devices listed, too: I mean, once I installed an IDE CD-ROM drive to test, and today I found its information in the registry
even if I had already uninstalled it. Is there any way to recognize a currently installed device from an old one? I thought of this: check how many CD-ROM drives are installed, get their letters and then compare these letters with the device descriptions (CurrentLetterAssignment key), but I realized that old devices have their old assigned letter value, too...

Just for my curiosity: why both SCSI and IDE CD-ROM drives are listed under "SCSI" folder in the registry?
0
 

Expert Comment

by:borov
ID: 1407117
Sorry, I've missed that you doing it with 16-bit Pascal. I don't know it very well. About access to registry: I am sure that there is way to call 32 functions from 16-bit program (called 'thunking' or something like that). Nothing to say about Win31.

Now I see that using registry is not very good way to get info you need. It was just first thought. I suppose that there must be special functions to query current hardware configuration. I will try to see...

Has ExpertsExchange a way to reject answered question? I did not earn any points - the answer is too vague.

About IDE CDROM in SCSI section: its myst for me, too. May be it was done to simplify classification of devices?

0
 

Author Comment

by:mauromol
ID: 1407118
Yes, I heard about "thunking", but which function do I have to access? In which DLL is it? What's
its index?

About your question to reject answered questions: I don't fully understand what you are asking: I
can only tell you that I have graded your answer as "Average"...

Thanks again and let me know if you discover something more!
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Saving the SQL Login Credentials for Excel 2010 Microsoft Queries 1 186
Dialogbox API leak? 18 109
Problem to open text file 11 136
Windows ICD FFU Issue 4 90
This article describes how to programmatically preset the "Pages per Sheet" option that's available with most printer drivers.   This setting lets you do "n-Up" printing, where two, four, or more pages are printed on each sheet of paper. If your …
For most people, the WrapPanel seems like a magic when they switch from WinForms to WPF. Most of us will think that the code that is used to write a control like that would be difficult. However, most of the work is done by the WPF engine, and the W…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…

749 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question