Sorry for the slightly OT post, but I’ve had no luck finding an answer
to this and I’m hoping this rings a bell with someone out there.
I have a virtual ndis ethernet miniport that functions as a VPN
adapter. When the VPN is connected, I need to be able to cause windows
(98/98SE/Me) to use a DNS server specified by the VPN server for all
name lookups while the connection is active. I’m using a method
involving SetupDiXXX functions that seems to work most of the time, but
it takes a very long time on some boxes. The worst part is that I can’t
tell when it has completed successfully (the api doesn’t block), so I’m
reduced to guessing with a timeout - doomed to failure.
I’m wondering if anybody knows how the DNS information is changed by the
network control panel applet. It tells you to reboot, but if you hit
‘no’, DNS is still reconfigured correctly, and it happens quickly. Or,
failing that, any recommendations would be appreciated.
Thanks in advance.
-sd