|
|
|
[求助]关于编写一个简单的磁盘整理软件
自己维护一个表? 也就是需要自己遍历文件系统格式的“头部分"(不知道专业名词叫什么),得到具体的存放数据部分,而且操作系统没有提供这样的API? 如果一个100G的分区,512byte为一扇区,4Kbyte为一簇, 那么我需要提供100*1024*1024/4= 26214400bit=3276800byte=3200Kbyte的空间来放置这个表?! 笨笨的问下,FAT32与NTFS是否都是以“簇"为最小读取单元,但是我看见比如MBR,DBR啊什么的貌似都是以扇区为读取单位,请教下如果我希望获得一个分区所有未使用的空间,是记录扇区好呢?还是记录簇好? |
|
[求助]请教下关于U盘控制的两个关键性问题(看了驱网的老贴,头晕中~~~)
感谢 drwch 前辈的回复 你所说的PNP通知回调是在哪一层过滤驱动中呢? 而且只要涉及到PNP就应该属于设备过滤驱动了吧。我是想在文件系统过滤驱动中完成相应的监测。 现在的问题就是如何在文件系统将“卷”绑定到“存储设备”的时候,检测该“卷”绑定到的是“移动设备”而不是“本地设备”。 不知道在哪里有相关的文档。希望各位前辈能指点一二。 PS:我能否自己发送一个IRP检测物理设备的类型呢?哪里可以找到相关文档? |
|
[作品提交]AutoRun病毒防御程序
感谢 “轩辕小聪”前辈的指导 我是想在驱动级别完成对U盘上的autorun进行过滤,不过前辈的的描述中学到不少东西 比如 WM_DEVICECHANGE 消息中包含U盘的卷信息(盘符),那么我就可以肯定WM_DEVICECHANGE 消息是在文件系统完成卷绑定以后发送的(不过WM_DEVICECHANGE 消息是在什么地方发出的呢?内核态?用户态?哪个进程?),所以稳妥的方式应该是文件系统在U盘设备上绑定卷的时候就开始过滤。 还有个笨笨的问题,U盘上的autorun.inf到底是在什么时候什么进程开始调用的?相关文档MSDN中是否有论述呢? 个人猜测应该是某个系统服务收到WM_DEVICECHANGE 后,再在用户态读取autorun.inf并解析。但是有没有可能是在WM_DEVICECHANGE 发送之前系统就已经读取了autorun.inf呢?不了解windows的预读机制 =。= |
|
[作品提交]AutoRun病毒防御程序
没有VS2008 能否解释下程序的原理呢? 比如我将已经感染autorun病毒的U盘插入时时 程序是通过什么方法阻止其运行呢? 其外如果我的本地硬盘也感染了,能否阻止恶意代码通过autorun自动加载呢? |
操作理由
RANk
{{ user_info.golds == '' ? 0 : user_info.golds }}
雪币
{{ experience }}
课程经验
{{ score }}
学习收益
{{study_duration_fmt}}
学习时长
基本信息
荣誉称号:
{{ honorary_title }}
能力排名:
No.{{ rank_num }}
等 级:
LV{{ rank_lv-100 }}
活跃值:
在线值:
浏览人数:{{ visits }}
最近活跃:{{ last_active_time }}
注册时间:{{ user_info.create_date_jsonfmt }}
勋章
兑换勋章
证书
证书查询 >
能力值