手动加载和放大器;在Windows中卸载驱动程序与.net [英] Manual loading&unloading driver in Windows with .Net

查看:145
本文介绍了手动加载和放大器;在Windows中卸载驱动程序与.net的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个正在使用的USB端口通过COM-USB转换器连接到电脑的设备,而我使用FTDI驱动程序来模拟一个虚拟COM端口此USB。

I have a device which is connected to a computer using the USB port through a COM-USB converter, and I use FTDI drivers to emulate a virtual COM port on this USB.

我的转换有时冻结和Windows驱动程序了​​。我无法打开/关闭COM,该软件无法通过它进行通信,并在最后 - 我不能停止或从Windows设备管理器中删除该虚拟端口。唯一的解决办法是重新启动计算机。

My converter sometimes freezes and the Windows driver too. I cannot open/close the COM, the software cannot communicate through it, and at last - I cannot stop or delete this virtual port from the device manager in Windows. The only solution is to reboot computer.

本软件采用的是自动化,所以重新启动是最糟糕的解决方案,我们有。

This software is used in automation, so rebooting is the worst solution we have.

我认为,加载该驱动程序从我的程序,通过驱动程序的这个副本的工作,并卸载它,如果它冻结是唯一的出路。

I think, that loading this driver from my program, working through this copy of driver, and unloading it, if it freezes is the only way.

你能帮助我,我该怎么办呢?或者,也许可用另一种解决方案?

Can you help me, how can I do this? Or maybe another solutions is available?

推荐答案

从你写的,我认为这全是司机的错。因此,装卸也无济于事,因为驱动程序无法正常工作。然而,这可以帮助你编写一个函数来加载和使用卸载驱动程序 .NET

From what You wrote I think that whole it's driver fault. So loading and unloading won't help because driver doesn't work properly. However this can help You to write a function to load and unload a driver using .NET

这篇关于手动加载和放大器;在Windows中卸载驱动程序与.net的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆