Click here to Skip to main content
15,877,553 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hello. I want to write a program to disable and enable my DVD or CD Rom Drive... Can i get some help. I am writing my program in C.
Posted
Comments
Nelek 3-Mar-12 5:30am    
Have you even started or tried it on your own? Where are you getting stuck?
Dawood Awan 3-Mar-12 5:38am    
No. I want some help to start it from the beginning.

1 solution

A not so hard way could be changing the setting
C++
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\CDRom

in the registry. But this needs a restart of the computer to activate the changes
 
Share this answer
 
v3
Comments
Dawood Awan 3-Mar-12 12:06pm    
Thanks...Can you just tell me what to change it to?
Nelek 3-Mar-12 14:01pm    
What about doing a bit research on your own? Most users here will help you with a problem, but they are not going to do the job for you.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900