低液位驱动器挂钩 [英] Low Level Drive Hooks

查看:131
本文介绍了低液位驱动器挂钩的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道在插入卷时生成哪个窗口消息,即,当我将卡插入存储卡阅读器的插槽时,会出现一个自动运行对话框,这意味着我插入内存时必须生成一些消息卡在插槽中,我已经尝试了WM_DEVICEARRIVED以及WMI Win32_DeviceChangeEvent,但是当我将读取器插入USB插槽时,它们被触发,而不是在更换卡时触发,但是窗口显示了自动运行对话框,我想知道那是低级窗口消息当我插入或取出卡式插槽而不是整个读卡器时产生.

I want to know which window message is generated when a volume is inserted, i.e when i insert card in memory card reader''s slot an autorun dialog box appears it means there must be some message that is generated when i insert memory card in the slot, I have tried WM_DEVICEARRIVED and also WMI Win32_DeviceChangeEvent but they get fired when I insert the reader into USB slot not when i change the card, but window shows auto run dialog box i want to know that low level window message that is generated when i insert or remove card form slot not the whole card reader.

推荐答案

我相信您正在寻找WM_DEVICECHANGE消息 [ ^ ].请注意,默认情况下,您的应用程序将不会收到此消息.您将需要调用 RegisterDeviceNotification函数 [
I believe you are looking for the WM_DEVICECHANGE Message[^]. Note that your application will not recieve this message by default. You will need to call the RegisterDeviceNotification Function[^] to register to receive device change notifications.

Best Wishes,
-David Delaune


您好,您可以尝试WM_DEVICECHANGE消息,RegisterDeviceNotification()可能有用,祝您好运![酷]
Hello guy, you can try WM_DEVICECHANGE message, and RegisterDeviceNotification() may be useful, good luck![cool]


这篇关于低液位驱动器挂钩的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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