mauromol
asked on
How to get the manufacturer name and model of the CD-ROM drive?
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.
Have a look at the "GetSystemInfo" function, it may help...
ASKER
To JohnnyBoy: where can I find GetSystemInfo function?
ASKER
Adjusted points to 150
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
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?
- 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?
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?
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?
ASKER
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!
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!