Do not open the network location wizard after using RasDial to establish a VPN connection?

I am connecting to my VPN using

  • RasSetEntryPropertiesto create a new phone book entry,
  • RasSetCredentialsto add credentials to this phone book entry,
  • RasGetEntryDialParamsto get parameters for RasDial,
  • and RasDialto eventually establish a new connection.

After a bit of hassle, everything now works like a charm. The only drawback is that so far, as I described above, I'm trying to connect to my VPN, as was the case with Windows Seven. How can I prevent this programmatically?

+5
source share
2 answers

. , . AutoIt script:

WinWaitActive("Network Location Wizard")
WinClose ("Network Location Wizard")

AutoIt , C/++:

system("start Your_Autoit_script.exe");

script , script (WinWaitActive), .

:

  • .
  • .

AutoIt, .

EDIT: . .

0

0 (.. Windows, ), . - 0.

, , , , API -, .

0

All Articles