VB2010 CMD 開啟USB管理問題

想請教程式方面前輩

目前想設置VB以CMD呼叫regedit後讓他自己打開到HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Enum\USB

該如何編寫呢?

另外這個路徑有set001跟set002的差別我該如何編寫一次打開兩個呢?

Update:

to Chen

您的答案我不懂意思@@"

1 Answer

Rating
  • Chen
    Lv 6
    9 years ago
    Favorite Answer

    When You plunge USB deivce, OS will make PNP driver to attach USB host control and create \device\UDBPDOx device and write pid and vid into

    HKEY_LOCAL_MACHINE\SYSTEM\ CurrentControlSet\Enum\USB\pidxx & vidxxx, and check itself service program. so this Item is writed by OS , not user to write.

Still have questions? Get your answers by asking now.