|
再一次遇到问题,希望高手可以解答,先谢谢了!
在DriverEntry()中动态枚举文件系统后绑定驱动器时,状态是成功的,可是当DriverEntry()加载结束后,驱动收到几个不明的SfPassThrough消息后就蓝屏了,蓝屏后截图如附件第一张图所示:
!
同时如果选择系统启动时静态加载时,到硬盘时也是遇到如图的问题.
但是如果去掉XP下的动态枚举那部分代码,动态加载U盘时却是成功的,后面的过滤工作也可以正常进行.
下面是加载U盘后的一些调试信息:
5.125 Default GSFilter! SfLoadDynamicFunctions: entered!
5.141 Default GSFilter! SfFsNotification: entered!
5.141 Default GSFilter! SfAttachToFileSystemDevice: entered!
5.141 Default GSFilter! SfAttachDeviceToDeviceStack: entered!
5.141 Default GSFilter! Device Attached just now is (\Device\WebDavRedirector)
5.141 Default GSFilter! SfFsNotification: entered!
5.141 Default GSFilter! SfAttachToFileSystemDevice: entered!
5.141 Default GSFilter! SfAttachDeviceToDeviceStack: entered!
5.141 Default GSFilter! Device Attached just now is (\Device\LanmanRedirector)
5.141 Default GSFilter! SfFsNotification: entered!
5.141 Default GSFilter! SfAttachToFileSystemDevice: entered!
5.141 Default GSFilter! SfFsNotification: entered!
5.141 Default GSFilter! SfAttachToFileSystemDevice: entered!
5.141 Default GSFilter! SfFsNotification: entered!
5.141 Default GSFilter! SfAttachToFileSystemDevice: entered!
5.141 Default GSFilter! SfAttachDeviceToDeviceStack: entered!
5.141 Default GSFilter! Device Attached just now is (\Cdfs)
5.141 Default GSFilter! SfFsNotification: entered!
5.141 Default GSFilter! SfAttachToFileSystemDevice: entered!
5.141 Default GSFilter! SfFsNotification: entered!
5.141 Default GSFilter! SfAttachToFileSystemDevice: entered!
5.141 Default GSFilter! SfFsNotification: entered!
5.141 Default GSFilter! SfAttachToFileSystemDevice: entered!
5.141 Default GSFilter! SfAttachDeviceToDeviceStack: entered!
5.141 Default GSFilter! Device Attached just now is (\Ntfs)
5.141 Default GSFilter! DriverEntry: GSFilter initized successfully!
28.875 Default GSFilter! SfFsNotification: entered!
28.875 Default GSFilter! SfAttachToFileSystemDevice: entered!
28.875 Default GSFilter! SfAttachDeviceToDeviceStack: entered!
28.875 Default GSFilter! Device Attached just now is (\Fat)
28.875 Default GSFilter! SfFsNotification: entered!
28.875 Default GSFilter! SfAttachToFileSystemDevice: entered!
28.875 Default GSFilter! SfAttachDeviceToDeviceStack: entered!
28.875 Default GSFilter! Device Attached just now is (\FatCdrom)
28.906 Default GSFilter! SfFsNotification: entered!
28.906 Default GSFilter! SfDetachFromFileSystemDevice: entered!
28.906 Default GSFilter! SfFsControl: entered!
28.906 Default GSFilter! SfFsControlMountVolume: entered!
28.906 Default GSFilter! SfFsControlCompletion: before send IRP to lower device!
28.906 Default GSFilter! SfFsControlCompletion: IRP is completed by lower device!
39.578 Default GSFilter! SfFsControlCompletion: entered!
39.578 Default GSFilter! SfFsControlMountVolumeComplete: entered!
39.578 Default GSFilter! SfFsControlMountVolumeComplete: State 0!
39.578 Default GSFilter! SfFsControlMountVolumeComplete: State 1!
39.578 Default GSFilter! SfFsControlMountVolumeComplete: State 2!
39.578 Default GSFilter! SfAttachToMountedDevice: entered
39.578 Default GSFilter! SfAttachDeviceToDeviceStack: entered!
39.578 Default GSFilter! SfFsControlMountVolume: Completed!
39.578 Default GSFilter! SfCreate: Received a msg from OS!
39.578 Default GSFilter! SfCreate: Received a msg from OS!
39.766 Default GSFilter! SfPassThrough: Received a msg from OS!
39.797 Default GSFilter! SfPassThrough: Received a msg from OS!
39.797 Default GSFilter! SfCleanupClose: Received a msg from OS!
39.797 Default GSFilter! SfCleanupClose: Received a msg from OS!
请问高手加载U盘(FAT)和硬盘(NTFS)有什么不同,为什么加载NTFS后收到几个SfPassThrough消息就蓝屏了,是加载硬盘时需要一些特殊的操作吗?.为这个问题已经苦恼多时了,望高手解答?
|
|