在C中禁用CD/DVD Rom驱动器 [英] Disable CD/DVD Rom Drive in C
本文介绍了在C中禁用CD/DVD Rom驱动器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
你好.我想编写一个程序来禁用和启用我的DVD或CD Rom驱动器.我正在用C编写程序.
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.
推荐答案
一种不太困难的方法是更改设置
A not so hard way could be changing the setting
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\CDRom
在注册表中.但这需要重新启动计算机才能激活更改
in the registry. But this needs a restart of the computer to activate the changes
这篇关于在C中禁用CD/DVD Rom驱动器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文