English 中文(简体)
OpenVPN TAP Driver Installation
原标题:
  • 时间:2010-01-19 13:36:01
  •  标签:
  • openvpn
  • tap

I m trying to control multiple instances of OpenVPN s TAP driver in windows via tapinstall. It seems that because all of the devices have the same HWID -- tap0901 -- I m unable to remove any single one with tapinstall -- all of them disappear when i issue

tapinstall.exe remove tap0901

Furthermore, when I do install another instance with

tapinstall.exe install OemWin2k.inf tap0901

all the other ones get reset (open connections using those existing tap installations are broken) because tapinstall tries to update the drivers on all the existing instances.

My solution thus far was to rename all instances of the hwid specified in the INF file to something else and to also rename the .cat and .sys files to this new name as well; however, this breaks the driver signing.

Does anyone know of any alternative ways to manage multiple OpenVPN TAP driver instances that allow me to:

  1. Remove any single instance of the driver without interfering with the operation of other instances
  2. Install new instances without interfering with the operation of the other instances

Win32 API calls are okay too; I m trying to write a program to automate this.

Thanks for the help!

最佳回答

If anyone is wondering, I found a way to do this, but it s pretty hacky. Inspired by the devcon source code.

  1. SetupDiCreateDeviceInfoList
  2. SetupDiCreateDeviceInfo
  3. SetupDiSetDeviceRegistryProperty
  4. SetupDiCallClassInstaller
  5. UpdateDriverForPlugAndPlayDevices
  6. SetupDiSetDeviceRegistryProperty - Rename the Hardware ID to something unique here.
问题回答

暂无回答




相关问题
tap detecting garbage value

I m using Apple TapDetectingImageView class from Autoscroll example. Static analizer shows the following warning: Classes/TapDetectingImageView.m:68:30:{68:17-68:29}: warning: The left operand of ...

Double Tap for certain part of view

I am bit stacked with a functionality that should perform a certain task after double taping on a certain place on UIView. I know how to count number of taps, but do not know how to determinate which ...

jQtouch tap and link problem

I m having a problem with jQtouch when using tap on links, I m trying to get a link to change background color when tapped a la iphone appstore (the blue color) so I m using this code : <script&...

Making images appear... How?

Could someone please tell me how to make an image appear when the user taps the screen and make it appear at the position of the tap. Thanks in advance, Tate

iPhone + detect tap of disabled UIControl

I am developing In App purchase for one existing application. Scenario is something like I have a feature in application (which contain UITextField control), which is initially disabled and when user ...

OpenVPN TAP Driver Installation

I m trying to control multiple instances of OpenVPN s TAP driver in windows via tapinstall. It seems that because all of the devices have the same HWID -- tap0901 -- I m unable to remove any single ...

热门标签