Link to home
Start Free TrialLog in
Avatar of RJSoft
RJSoft

asked on

Determining default CD drive letter

I know how to iterate the known drives and determin if they are CD players using GetDriveType. But I do not need that.

My application uses mciSendString command to open the CD and upon closing the CD I would like to perform a function.

But I need to know the CD drive letter it is using. How do I get the default drive letter?

The only thing comes to mind for me is to look in the Windows registry.

Any ideals on where the entry in the registry might be or other method?

Thanks
RJ
ASKER CERTIFIED SOLUTION
Avatar of Jase-Coder
Jase-Coder

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of RJSoft
RJSoft

ASKER

Well it worked. I guess the answer to the question was that the first drive found to be CD is the default.

Thanks
RJ