wildmoon
驱动牛犊
驱动牛犊
  • 注册日期2003-02-09
  • 最后登录2005-02-18
  • 粉丝0
  • 关注0
  • 积分0分
  • 威望0点
  • 贡献值0点
  • 好评度0点
  • 原创分0分
  • 专家分0分
阅读:1488回复:5

为什么我用WINDRIVER写的的驱动找不到硬件

楼主#
更多 发布于:2003-05-11 10:10
但是在系统的硬件列表中又存在,这时如果启动一此WINDRIVER开发工具再退出,我的软件就全部恢复正常。
PS:我用的是在驱动开发网中找到的注册码。
ILznFE
驱动牛犊
驱动牛犊
  • 注册日期2003-04-26
  • 最后登录2009-01-12
  • 粉丝0
  • 关注0
  • 积分52分
  • 威望25点
  • 贡献值0点
  • 好评度5点
  • 原创分0分
  • 专家分0分
沙发#
发布于:2003-05-11 11:15
你需要注册你的驱动程序
以下摘自Windriver帮助文档


Copy VxD or SYS files to the target computer.
In the driver installation script you create, you must copy the following files to the target computer (the system on which you want to install your driver):


For Windows 98/Me/NT/2000/XP: Copy WINDRVR.SYS file to [Windows installation directory]\\SYSTEM32\\DRIVERS

Add WinDriver to the list of Device Drivers Windows loads on boot.
This is done by calling WDREG install. You can add the WDREG source code (found in \\WinDriver\\samples\\wdreg\\wdreg.cpp) to your own installation code, in order to install WinDriver programmatically. The utility WDREG.EXE is found it the UTIL subdirectory under the WinDriver installation.

For Windows 98/Me, WDREG.EXE install installs WINDRVR.SYS and requires a reboot. For a reboot free installation on Windows 98/Me, please install WINDRVR.VXD instead and use the command WDREG -vxd install to install it.

If you have created a WinDriver Kernel PlugIn as well, call: WDREG.EXE -name [Your driver name] install.

If you have created a VXD Kernel PlugIn driver, use the following installation command: WDREG -vxd -name [Your driver name] install.

You can add the `WDREG\' source code (found in \\WinDriver\\samples\\wdreg\\wdreg.cpp) to your own installation code, in order to install a kernel plugin.


NOTE: When distributing your driver, take care to see that you DO NOT overwrite a newer version of windrvr.sys or windrvr.vxd with an older version of the file, in the Windows\' driver directoy (WINNT\\system32\\drivers on Windows NT/2000/XP, Windows\\system32\\drivers for *.sys on Windows 98/ME or Windows\\system\\vmm32 for *.vxd on Windows 95/98/ME). You should configure your Install Shield installation program (if you are using Install Shield) or your .INF file such that the installer automatically compares the timestamp on these two files and DOES NOT overwrite a newer version with an older one.
chenlei1980
驱动牛犊
驱动牛犊
  • 注册日期2003-05-09
  • 最后登录2003-05-26
  • 粉丝0
  • 关注0
  • 积分0分
  • 威望0点
  • 贡献值0点
  • 好评度0点
  • 原创分0分
  • 专家分0分
板凳#
发布于:2003-05-14 20:59
请问,你是怎样用windriver开发的驱动呀?
能不能把你的代吗给我发一份?
谢谢!

my2008china@tom.com
wildmoon
驱动牛犊
驱动牛犊
  • 注册日期2003-02-09
  • 最后登录2005-02-18
  • 粉丝0
  • 关注0
  • 积分0分
  • 威望0点
  • 贡献值0点
  • 好评度0点
  • 原创分0分
  • 专家分0分
地板#
发布于:2003-05-15 10:19
ILznFE:你提供的方法我正在测试,谢谢,我现在把代码附上,有空给我看看.稍候再给你回复.
chenlei1980:见附件
附件名称/大小 下载次数 最后更新
2003-05-15_abc.zip (64KB)  0
wildmoon
驱动牛犊
驱动牛犊
  • 注册日期2003-02-09
  • 最后登录2005-02-18
  • 粉丝0
  • 关注0
  • 积分0分
  • 威望0点
  • 贡献值0点
  • 好评度0点
  • 原创分0分
  • 专家分0分
地下室#
发布于:2003-05-15 12:22
1,wdreg -file wdpnp.sys created倒是可以用,可是驱动程序还没有正确加载,如何正确使用wdreg?
2,是否可以修改inf文件来达到正确加载驱动的目的,如何做?
wildmoon
驱动牛犊
驱动牛犊
  • 注册日期2003-02-09
  • 最后登录2005-02-18
  • 粉丝0
  • 关注0
  • 积分0分
  • 威望0点
  • 贡献值0点
  • 好评度0点
  • 原创分0分
  • 专家分0分
5楼#
发布于:2003-05-15 15:49
谢谢各位,问题已经解决.
原因是windriver每次使用都要注册,我将注册码加入到我的程序就OK了.具体参见[Windriver install dir]\\regist\\register.txt
游客

返回顶部