skysky
驱动小牛
驱动小牛
  • 注册日期2001-07-18
  • 最后登录2003-06-03
  • 粉丝0
  • 关注0
  • 积分0分
  • 威望0点
  • 贡献值0点
  • 好评度0点
  • 原创分0分
  • 专家分0分
阅读:2777回复:4

!!!请教,win98下让系统重新扫描SCSI总线的方法

楼主#
更多 发布于:2002-02-28 18:15
我知道在控制面板内,系统设备下有\"刷新\"这一功能,可以让系统重新扫描总线.
有哪位高人知道如何编程实现这个功能?它调用了哪些系统函数呢?
望赐教!
谢先.
以德服人,以德服人
WindThruEars
驱动老牛
驱动老牛
  • 注册日期2002-11-17
  • 最后登录2004-07-10
  • 粉丝0
  • 关注0
  • 积分0分
  • 威望0点
  • 贡献值0点
  • 好评度0点
  • 原创分0分
  • 专家分0分
沙发#
发布于: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.)

我是假耳朵
skysky
驱动小牛
驱动小牛
  • 注册日期2001-07-18
  • 最后登录2003-06-03
  • 粉丝0
  • 关注0
  • 积分0分
  • 威望0点
  • 贡献值0点
  • 好评度0点
  • 原创分0分
  • 专家分0分
板凳#
发布于: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!

以德服人,以德服人
WindThruEars
驱动老牛
驱动老牛
  • 注册日期2002-11-17
  • 最后登录2004-07-10
  • 粉丝0
  • 关注0
  • 积分0分
  • 威望0点
  • 贡献值0点
  • 好评度0点
  • 原创分0分
  • 专家分0分
地板#
发布于:2002-03-02 00:39
Try search function CM_xxxx in DDK document, I am not sure if you can find something useful...
我是假耳朵
skysky
驱动小牛
驱动小牛
  • 注册日期2001-07-18
  • 最后登录2003-06-03
  • 粉丝0
  • 关注0
  • 积分0分
  • 威望0点
  • 贡献值0点
  • 好评度0点
  • 原创分0分
  • 专家分0分
地下室#
发布于: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!
以德服人,以德服人
游客

返回顶部