未检测到插入的CD / DVD [英] Inserted CD/DVD is not getting detected

查看:95
本文介绍了未检测到插入的CD / DVD的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Windows 7中,我们正在弹出一个选择CD作为USB或CD / DVD的弹出窗口。此弹出窗口阻止插入光盘的事件。

In windows 7, we are getting a popup to choose CD as USB or CD/DVD. This popup blocks the event for disc inserted.

在互联网上有人建议设置注册表项"DisableAutoPlay"。禁用此弹出窗口,但它没有帮助。

In internet someone proposed to set the registry entry "DisableAutoPlay" to disable this popup, but it didnt help.

如何禁用此弹出窗口?我也想要"使用CD / DVD播放器"被选为默认值。是否有任何注册表项?我想为所有用户设置。

How to disable this popup? Also I want "With a CD/DVD player" to be selected as default. Is there any registry entry for this? I want to set that for all users.

设备更改事件代码

  &NBSP; &NBSP; &NBSP; ///< summary>

  &NBSP; &NBSP; &NBSP; ///挂钩窗口程序并过滤WM_DEVICECHANGE消息。

  &NBSP; &NBSP; &NBSP; ///< / summary>

  &NBSP; &NBSP; &NBSP; ///< param name =" m">窗口消息结构< / param>

  &NBSP; &NBSP; &NBSP; protected override void WndProc(ref message m){

  &NBSP; &NBSP; &NBSP; &NBSP; &NBSP; if(

         m.Msg == Win32Constants.WM_DEVICECHANGE ||

          m.Msg == Win32Constants.WM_SHNOTIFY

      ){

  &NBSP; &NBSP; &NBSP; &NBSP; &NBSP; &NBSP; &NBSP; OnDeviceChange(m);

  &NBSP; &NBSP; &NBSP; &NBSP; &NBSP; }


  &NBSP; &NBSP; &NBSP; &NBSP; &NBSP; base.WndProc(ref m);

  &NBSP; &NBSP; &NBSP; }

        /// <summary>
        /// Hooks window procedure and filters WM_DEVICECHANGE message.
        /// </summary>
        /// <param name="m">Window message structure</param>
        protected override void WndProc(ref Message m) {
            if (
                m.Msg == Win32Constants.WM_DEVICECHANGE ||
                m.Msg == Win32Constants.WM_SHNOTIFY
            ) {
                OnDeviceChange(m);
            }

            base.WndProc(ref m);
        }

Senthil Kumar M

Senthil Kumar M

推荐答案

Hello Senthil,

Hello Senthil,

您可以在控制面板>>硬件和声音>> AutoPlay(窗口)中插入外部设备时设置操作10)。

至于编程,我建议您尝试查找Windows进程ID并将其终止。而且你也可以尝试使用win32 api来操作窗口。或者你

模拟
鼠标或键盘键以选择选项并触发"下一个"按钮。按钮。并且有一些有用的信息供您参考。

As for programming, I suggest you could try to find the windows process id and kill it. And also you could try to use win32 api to operate the window . Or you simulate the mouse or keyboard keys to choose the options and trigger the "next" button. And there are some useful information for your refer.

https://stackoverflow.com/questions/2732792/can-i-disable-window-autoplay-function-programatically-with-c-net

祝你好运,

Neil Hu


这篇关于未检测到插入的CD / DVD的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆