本文介绍了如何确定何时将某些东西连接到我的USB端口的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
你好朋友,
我在Windows Vista中使用CODE :: BLOCKS.
我想在USB上编写一个程序,当笔驱动器或其他设备连接到USB端口时,我的程序应警告我某些设备已连接.
我想用C或C ++语言编写相同的内容.
请给我一些提示.
我想我可以从注册表中看出来.如果是,那么我想知道在连接USB驱动器之前和之后注册表项的值是什么.因为我没发现任何区别.
请帮助我.
Hello friends,
I use CODE::BLOCKS in Windows vista.
I would like to write a program on USB, that, when a pen drive or something is connected to the USB port my program should warn me that something is connected.
I would like to write the same in C or C++ language.
Please provide me some tips.
I think I can make it out from registry. If yes, then I would like to know what will be value of registry key before and after USB drive connected. Because I did not find any difference.
Please help me.
推荐答案
这篇关于如何确定何时将某些东西连接到我的USB端口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!