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.

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