Go thr this link;
http://www.codeproject.com/KB/cs/csharpripper.aspx
You can check if theres any thing that can enable or disable the device.
Also There are ways to Open /Eject it by sending some message to the os.
Please refer the links for more details http://www.codeguru.com/forum/showthread.php?t=387725 http://www.bluechillies.com/screenshot/28078.html http://www.experts-exchange.com/Programming/Languages/Visual_Basic/Q_10251303.html
http://www.codeproject.com/KB/system/Open_Close_CD_DVD_Drawer.aspx
USE;
IOCTL_STORAGE_EJECTION_CONTROL
This control locks the device to prevent removal of the media. If the driver can prevent the media from being removed while the drive is in use, the driver disables or enables the mechanism that ejects media, thereby locking the drive.
You can find more details here.
IOCTL_STORAGE_EJECTION_CONTROL:
http://msdn.microsoft.com/en-us/library/ms804575.aspx
IOCTL_STORAGE_EJECTION_CONTROL Control Code:
http://msdn.microsoft.com/en-us/library/aa363405.aspx
Go through this link to find more search results on IOCTL_STORAGE_ EJECTION_ CONTROL which might help you to find a solution.
http://search.msdn.microsoft.com/Default.aspx?query=IOCTL_STORAGE_EJECTION*&brand=msdn&locale=en-us&refinement=
Also just go thr these links so that you can get some solution for your problem.
http://www.codeproject.com/KB/miscctrl/imapi2.aspx?fid=1134078&df=90&mpp=25&noise=3&sort=Position&view=Quick&select=2559643&fr=51
http://www.experts-exchange.com/Programming/Languages/Visual_Basic/Q_10251303.html
http://www.bluechillies.com/screenshot/28078.html
Best Luck!!!!!!!!!!!!! Sujit. |