Search found 47 matches

by highend
26 Nov 2014, 14:46
Forum: Ask for Help (v1)
Topic: DllCall to enumerate all ras (vpn) connections?
Replies: 13
Views: 4929

Re: DllCall to enumerate all ras (vpn) connections?

Unfortunately, it still does crash. I've added "OutputDebug, PBEntry: %PBEntry% Index: %A_Index%" in the first Loop %EC% and this is the output: [3912] PBEntry: ?? Index: 1 [3912] PBEntry: Index: 2 [3912] PBEntry: Index: 3 [3912] PBEntry: Index: 4 [3912] PBEntry: Index: 5 [3912] PBEntry: Index: 6 [3...
by highend
26 Nov 2014, 02:56
Forum: Ask for Help (v1)
Topic: DllCall to enumerate all ras (vpn) connections?
Replies: 13
Views: 4929

Re: DllCall to enumerate all ras (vpn) connections?

Thanks again, SKAN! Unfortunately I does crash immediately on start ("Test.exe doesn't work anymore") By commenting out it crashes during the first "Loop %EC%" It runs through the first 11 connections but on the 12th it crashes (I have 23 connections atm). Btw, the PBEntry variable stays always empt...
by highend
25 Nov 2014, 19:59
Forum: Ask for Help (v1)
Topic: DllCall to enumerate all ras (vpn) connections?
Replies: 13
Views: 4929

Re: DllCall to enumerate all ras (vpn) connections?

Thanks, SKAN :) Connections = 1 Error 0: Is there a way to retrieve all existing connections (by name) with their status as well? Maybe: 0|VPN_Romania 0|VPN_Russia 1|VPN_Netherlands 0|VPN_Mexico ... where 0 = disconnected & 1 = connected? Btw, the WMIC call takes (on my system) between 0.5 and 0.8 s...
by highend
25 Nov 2014, 18:49
Forum: Ask for Help (v1)
Topic: DllCall to enumerate all ras (vpn) connections?
Replies: 13
Views: 4929

Re: DllCall to enumerate all ras (vpn) connections?

Try running script as Admin. Tried it, result wasn't different. @SKAN I've tried all values (from the first line) for dwCb but dwRet is 0 in a cases. What are you up to? May be I can provide you some AHK 1.1 32-bit code for your reference. I'm currently working on a VPN Watchdog (for IKEv2 / SSTP c...
by highend
25 Nov 2014, 15:01
Forum: Ask for Help (v1)
Topic: DllCall to enumerate all ras (vpn) connections?
Replies: 13
Views: 4929

Re: DllCall to enumerate all ras (vpn) connections?

Thank you, HotKeyIt.

It says that it found 0 ras connections. The problem: overall I have 23 of them :)
by highend
24 Nov 2014, 17:32
Forum: Ask for Help (v1)
Topic: DllCall to enumerate all ras (vpn) connections?
Replies: 13
Views: 4929

DllCall to enumerate all ras (vpn) connections?

Hi, I'm trying to get the current active RAS connecion via DllCalls. Trying is the best word for it. I have no C++ / C# background and I'm struggling hard... What I tried so far: ERROR_BUFFER_TOO_SMALL := 603 lpRasConn := 0 dwCb := 0 dwConnections := 0 dwRet := DllCall("rasapi32.dll\RasEnumConnectio...

Go to advanced search