In Windows 10 device manager, for the "Generic USB Hub" & "USB Root Hub" there is a new function under advanced tab called: "Reset Hub".
I want to be able to reset these with each wakeup/restart.
Can you tell me how i can call this function via commandline?
I have found the DevCon sources on github.
On examination of the program, there are no surprises. DevCon uses the WDK for Windows 10, version 1709 (Windows Development Kit) of which it is a part. The WDK is the only tool on Windows to develop, test, and deploy Windows drivers.
Specifically, DevCon uses a unified function, ControlCallback
, for doing the operations of Enable, Disable and Restart. Restart is therefore equivalent to doing Disable and Enable.
There is no other tool than the WDK to operate on devices, and there are no other functions in the WDK to enable/disable devices than the ones that are used by DevCon.
As the Device Manager is also written using the WDK, I would say that it almost surely does the same operations for "Reset Hub" as DevCon does for Restart. There are no other operations in the WDK for doing this, as far as I have been able to find.
It should be noted that the operation itself is executed by the driver of the device, to which the WDK passes the command. The actual action that is done depends on the driver of the device. Examining in Device Manager the drivers for the "Generic USB Hub" and "USB Root Hub" devices shows that the same drivers are used for both, so the command "Reset Hub" or Restart very likely does a very similar operation for both devices.
(This answer cannot be definitive, since the source of the Device Manager is not published by Microsoft, but I believe it is correct.)
この記事はインターネットから収集されたものであり、転載の際にはソースを示してください。
侵害の場合は、連絡してください[email protected]
コメントを追加