如何检测时,插入SD卡? [英] How can I detect when an SD card is plugged in?

查看:449
本文介绍了如何检测时,插入SD卡?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在写在C中的PC应用程序++,需要在用户的SD卡连接到他/她的计算机检测。我知道如何检测,当卡读卡器连接,但我不知道如何检测时,各个卡连接/移除。

I'm writing a PC application in C++ that needs to detect when a user connects an SD card to his/her computer. I know how to detect when the card reader is connected, but I do not know how to detect when individual cards are connected/removed.

Windows能否有一个IO接口检测SD卡到货/去除?

Does Windows have an IO interface to detect arrival/removal of SD cards?

[更新]的WM_DEVICECHANGE技术,建议仅适用于在SD卡读卡器插入检测,不检测,当个人卡插入读卡器。

[Update] the WM_DEVICECHANGE technique that was suggested works only for detecting when an SD Card reader is plugged in. It does not detect when individual cards are inserted into the card reader.

推荐答案

想这是你需要的:

HTTP://www.$c$cproject.com/KB/ DOTNET / devicevolumemonitor.aspx

这篇关于如何检测时,插入SD卡?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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