通过任务管理器退出应用程序时重置USB端口 [英] Reset a USB port when quitting an application via Task Manager

查看:116
本文介绍了通过任务管理器退出应用程序时重置USB端口的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个使用连接到usb端口的设备的应用程序。在Windows冻结的情况下,我们设置笔记本电脑的电源设置,以便在按住电源按钮时usb端口断电。

I have an application that uses a device connected to a usb port. In the case where Windows freezes, we have the laptop's power settings set up so that the the usb ports power down when we push and hold the power button.

恢复的唯一其他选择是通过任务管理器退出应用程序。在这种情况下,我已确认即使在正常的Windows操作下,USB设备也会继续独立运行。    usb
设备的独立操作非常不受欢迎。

The only other option for recovery is to quit the application via the task manger. In that case, I have confirmed that the usb device continues to operate independently, even with normal Windows operation.  Independent operation of the usb device is highly undesirable.

通过任务管理器退出应用程序时,如何让笔记本电脑重置USB设备或为设备重启电源?一个简单且可接受但不那么优雅的替代方案是提醒操作员在退出使用该设备的应用程序时拔掉连接
的USB线缆的对话框。

How can I have my laptop reset the usb device or cycle power to the device when quitting the app via the task manager? A simple and acceptable, though not as elegant, alternative would be a dialog to remind the operator to unplug the usb cable connected to the device when he quits the app that uses the device.

谢谢,

MinerHokieRamp

MinerHokieRamp

推荐答案

Hi MinerHokieRamp,

Hi MinerHokieRamp,

感谢您在此发帖。

>>"  有一个使用连接到USB端口的设备的应用程序。如果Windows冻结 "

>>"  have an application that uses a device connected to a usb port. In the case where Windows freezes "

根据我的搜索,当USB端口未连接到Windows时,操作将调用退出的USB驱动程序。功能 

Based on my search, when the USB port doesn't connect to windows, the operating will call the USB driver of exit function. 

窗户无法冻结。我想你需要修理的USB驱动程序。

the windows cannot be freezed. I guess that the driver of USB you need to repair.

你写过usb的驱动程序吗?

Did you write the driver of usb?

关于USB问题,你可以发帖 Windows硬件WDK和驱动程序开发<上的问题/ a> 论坛

About the USB issue, you could post the issue on Windows Hardware WDK and Driver Development forum.

最好的问候,

Hart


这篇关于通过任务管理器退出应用程序时重置USB端口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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