阅读:1689回复:10
怎样写scsi class的upperfilter?
听说scsi不是wdm的,不能用普通方法去过滤它。
但是我搜索osr online,有人曾经通过修改diskperf来 写scsi class的upperfilter,而且成功地过滤掉了ASPI的调用。 我试了一下,结论是wdm的filter,安装后运行不起来。 所以请教各位,应该怎么写scsi class的upper filter? osr online有没有什么资料或者book,作相关介绍的? 先谢谢了! |
|
|
沙发#
发布于:2005-02-07 13:56
srb结构是封装在irp里头的,按理......
......还是不明白。 |
|
|
板凳#
发布于:2005-02-07 14:58
SFD
SCSI filter driver. An add-on driver that is layered above an existing SCSI class driver. An SFD intercepts requests for a particular SCSI peripheral device that has special features (not shared by other SCSI devices of its class), or that does not accept standard SCSI-II CDBs, in order to set up device-specific requests. |
|
|
地板#
发布于:2005-02-07 17:28
我的 inf 文件如下:
; diswrite.inf ; ; Installation inf for the Disk Performance Monitor Filter driver [ DDK Sample ] ; ; Copyright (c) Microsoft Corporation ; [Version] Signature = "$Windows NT$" Class = SCSI ClassGUID = {4D36E97B-E325-11CE-BFC1-08002BE10318} Provider = %msft% DriverVer = 03/22/2002,5.1.2600.0 ; ; General installation section ; [DefaultInstall.NT] CopyFiles = @diswrite.sys Addreg = diswrite.AddReg [DestinationDirs] DefaultDestDir = 12 [diswrite.AddReg] HKLM, System\CurrentControlSet\Control\Class\{4D36E97B-E325-11CE-BFC1-08002BE10318}, UpperFilters, 0x00010008, diswrite ; ; Service installation section ; [DefaultInstall.NT.Services] AddService = diswrite, , diswrite.Service.Install [diswrite.Service.Install] DisplayName = %service_desc% ServiceType = 1 StartType = 0 ErrorControl = 1 ServiceBinary = %12%\diswrite.sys LoadOrderGroup = "PnP Filter" ; ; Localizable Strings ; [Strings] msft = "Microsoft Corporation" service_desc = "Disabling DVD_Writer" |
|
|
地下室#
发布于:2005-02-07 18:46
应该可以
|
|
|
5楼#
发布于:2005-02-14 16:37
肯定有办法。
我最近下载到了scsi的inf文件。准备上班后去研究一下。看看有没有启发。 另外我发现我的inf文件少了一个特殊的section。 |
|
|
6楼#
发布于:2005-02-14 16:54
应该可以 应该可以吗?不见得 |
|
|
7楼#
发布于:2005-02-17 09:59
应该可以吗?不见得 如果不可以,我就大大地糟了。 其实我在whdc上发现有资料讲解scsi filter driver,但是很遗憾, 都没有提到sfd的安装方法。 |
|
|
8楼#
发布于:2005-02-18 17:05
没有成功。
不过我发现过滤cdrom就可以禁止nero burning了。 至于有些刻录机调用aspi的,暂时不管了。 |
|
|
9楼#
发布于:2005-02-18 19:19
没有成功。 :D |
|
|
10楼#
发布于:2005-03-24 17:04
我现在可以hook scsi的例程了。
|
|
|