阅读:1422回复:1
Win98(VXD)文件重定向进展及问题
小弟目前正在做关于Windows98下文件保护及重定向问题,目前遇到的问题是:
如何将文件操作重定向。例如我要建立 C:\\A.txt,但实际建立的是 D:\\A.txt 或者 C:\\Temp\\A.txt? 我已经看了前面所有文章,FileMon源代码以及MSDN帮助,试过如下方法: 修改 Drive 无效 修改 ioreq->ir_ppath 有效,但无法正确建立,Exploer报错说对象建立出错。为防止ppath修改出错,修改后的ppath长度等属性均相同,仅路径名不同 请问大侠们如何解决此问题 另外,偶是初来咋到,还没有分可以给,哪位大侠帮我解决了问题,下次一定给! 另外,我得E-Mail是:FrogMouse97@sohu.com |
|
沙发#
发布于:2003-10-17 23:08
另外,我在VXD中把 IFS_OPEN ACTION_CREATENEW,也就是新建文件时的 IOReq 打印出来如下(参考 SystemProgrammingForWin95第16章内提出的结构)
我修改了pp_path,并且转换成了BCS,证明是正确的格式,但不能建立文件,说对象创建错误,有谁知道怎么解决么? Explorer: ******************************** Explorer: * IO Req Info * Explorer: ******************************** Explorer: IO Req Address : 0xC83F4BF4 Size : 0xA0 Explorer: 00h~03h : ir_length : 20 0 1 3C Explorer: 04h : ir_flags : C2 Explorer: 05h : ir_user : 1 Explorer: 06h~07h : ir_sfn : B0 2 Explorer: 08h~0Bh : ir_pid : 37 17 1 0 Explorer: 0Ch~0Fh : ir_pppath : B0 1D 56 C1 : <ttmm\"新建 文本文档 (26).TXT> Explorer: 10h~13h : ir_aux1 : 60 1D 56 C1 Explorer: 14h~17h : ir_data : 0 0 0 0 Explorer: 18h~19h : ir_options : 12 0 Explorer: 1Ah~1Bh : ir_error : 0 0 Explorer: 1Ch~1Fh : ir_rh : 60 92 53 C1 Explorer: 20h~23h : ir_fh : 0 0 0 0 Explorer: 24h~27h : ir_pos : 0 0 0 0 Explorer: 28h~2Bh : ir_aux2 : 30 DD 89 C1 Explorer: 2Ch~2Fh : ir_aux3 : 20 DD 89 C1 Explorer: 30h~33h : ir_pev : 0 0 0 0 Explorer: 34h~74h : ir_fsd : 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 |
|