Re: [Openvpn-devel] On tap-windows6 adapter installation by tapctl.exe

2020-09-03 Thread Selva Nair
Hi Lev, Thanks for confirming. What you tested is exactly what I have in mind. I suppose you tested it using MSVC. I recall when I worked on creating tap adapters on the fly (patch abandoned for lack of time) some functions in newdev.dll did not resolve with mingw and I always had to load them on

Re: [Openvpn-devel] On tap-windows6 adapter installation by tapctl.exe

2020-09-03 Thread Lev Stipakov
Hi, > > As per setupapi.dev.log, it appears that step 4 (d) is failing with some > access error to the driver store unless elevated to SYSTEM (see Trac 1321). > This leaves the adapter not fully configured. Hard to say exactly what fails > as none of the function calls return any error. I can

[Openvpn-devel] On tap-windows6 adapter installation by tapctl.exe

2020-09-02 Thread Selva Nair
Hi, tldr: a fix for Trac 1321 Currently tapctl.exe does the following to create an adapter and install the driver on it. 1. Create a device info structure 2. Set the hardware id on it 3. Search the driver store for the latest matching driver 4. Select the driver, set it in the device info and th