如何识别智能手机设备的存储卡已删除通知 [英] How to identify the storagecard removed notification of smartphone devices

查看:44
本文介绍了如何识别智能手机设备的存储卡已删除通知的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Windows Mobile设备,我想知道如何从存储设备中删除存储卡.我有DLL,它具有所有导入的方法(如果添加或删除了存储卡则发送消息),但这如果该DLL位于设备内存中,则保护套工作正常.如果该应用程序安装在存储卡中,则一旦将卡取出,DLL就会在Card中,DLL就会熄灭,并且从该卡中取出的手机我也不会收到任何信息或类似的东西.我正在用C#开发应用程序.DLL代码是在C ++中进行的,很难将其移植到C#中,我试图将DLL制成.lib并在c#项目中使用,但是在c#中我们不能使用.lib文件也.那是问题.我们无法将DLL加载到.exe文件等主内存中...所以我很麻烦..任何人都可以让我知道如何解决这个问题.

I am using windows mobile device, i want to know how to get notification if the storage card is removed from the device.I have DLL it has all the imported methods which send messages if the card is added or removed, but this case works fine if the DLL is in the device memory.If the application is installed in storage card, then DLL will be in Card as soon as card removed,the DLL goes out and i will not get any information from the phone that card removed or some thing like that.i am developing application in c#.DLL code is in C++, its quite tough to port it to C#,i tried to make DLL as .lib and use in c# project,but in c# we cant use .lib files also.that is the problem. we cant load DLL to main memory like .exe file.. so i m in trouble.. can any one let me know how to come up with this.

谢谢

推荐答案

据我所知,您在问:如何通知存储卡已被存储卡上运行的程序删除,?

As I understand you're question, you're asking: How can you be notified that a storage card has been removed by a program running on the storage card?

不能.-移除卡后,其上的程序将无法运行.

You can't. - Once the card is removed the programs on it can't run.

如果那不是您的实际问题,可以尝试改写文字.

If that's not you're actual question can you try rewording.

这篇关于如何识别智能手机设备的存储卡已删除通知的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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