Hey hey, how ya doing ya'll?

Could any one help me or guide me to a reference that might walk me through a step by step tutorial, of how could i open or close a Cd-drive's tray using C/C++ codes?

thanx in advance.

Recommended Answers

All 4 Replies

what OS r u on?

Hii.. Check this site maybe it help you ;)
download

I'm using Windows XP.

Hi,

For portability reasons, make sure you don't do a dumb Windows thing and hardcode a drive letter. Why? My D: is a second hard drive, not a CD-ROM!

And if it is Unix / Linux, might want to do a check to make sure that the process has authority to access the CD-ROM device. :)

Christian

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.