阅读:2779回复:4
!!!请教,win98下让系统重新扫描SCSI总线的方法
我知道在控制面板内,系统设备下有\"刷新\"这一功能,可以让系统重新扫描总线.
有哪位高人知道如何编程实现这个功能?它调用了哪些系统函数呢? 望赐教! 谢先. |
|
|
沙发#
发布于:2002-03-04 10:39
Thanks for you suggestion!
yeah, I get it! a useful function \"ConfigMG_Reenumerate_DevNode\" with DevNode as a parameter can be used to rescan the specified bus. But the problem is it\'s a VxD function. DDK document says a custom IOS layer VxD program should be written to call this funtion. Does it mean I have to write a VxD? I wonder if there is a API funtion to realize the utility. Any body known please tell me! Help and thanks in advance! |
|
|
板凳#
发布于:2002-03-02 00:39
Try search function CM_xxxx in DDK document, I am not sure if you can find something useful...
|
|
|
地板#
发布于:2002-03-01 14:10
IOCTL_SCSI_RESCAN_BUS cannot work well in win98 and winNT,is it right?
and it seems IoInvalidateDeviceRelations cann\'t be called in miniport driver. actually I wanna implement the function in user mode in win98. what shall I do? Thanks a lot for any reply! |
|
|
地下室#
发布于:2002-03-01 00:15
It depends on where you are initiating this request from.
1) IoInvalidateDeviceRelations using the PDO of the adapter (kernel mode.) 2) IOCTL_SCSI_RESCAN_BUS targeted at the adapter FDO (user or kernel mode.) |
|
|