wdm过滤器驱动程序与win32控制台应用程序交互 [英] wdm filter driver interact with win32 console application

查看:92
本文介绍了wdm过滤器驱动程序与win32控制台应用程序交互的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想开发一个程序来限制用密码访问u盘。目前,我有两个想法。

I want to develop a program to limit access to u-disk with password. at present, I have two ideas.

1.用户插入U盘后,过滤器驱动程序调用控制台应用程序以要求输入密码。

1.after the user plugs in the u-disk, the filter driver call the console app to require the password.

2.用户插入U盘后,没有任何反应。用户必须打开控制台应用程序,输入密码,然后使用U盘。

2.after the user plugs in the u-disk, nothing happens. The user has to open the console app, input the password, and use the u-disk.

任何人都可以告诉我哪种方式更容易,并使用什么技术或机制来做到这一点?谢谢!

can anyone tell me which way is easier, and use what technique or mechanism to do it? thanks!




推荐答案

无论哪种方式都有效,但没有驱动程序弹出控制台(或任何其他类型)应用程序的方式。通常对于#1,你有一个在后台运行的总是运行的用户代理没有显示ui,监听设备到达通知,
从你的过滤器(WMI,一个笔下的io等)监听某些内容并显示ui需要的时候。选择#2不那么复杂,但要求用户知道先行做什么
either way works, but there is no way for a driver to pop up a console (or any other type of) application. typically for #1 you have an always running user agent running in the background that is not displaying ui, listens for a device arrival notification, listens for something from your filter (WMI, a pended io, etc) and shows ui when needed. choice #2 is less complex, but requires the user to know what to do a priori


这篇关于wdm过滤器驱动程序与win32控制台应用程序交互的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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