Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to close an OpenVPN
Message
 
 
To
06/05/2008 16:49:29
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
01315438
Message ID:
01315454
Views:
57
This message has been marked as the solution to the initial question of the thread.
Koen,

See if http://www.berezniker.com/content/pages/visual-foxpro/check-if-exe-running-and-optionally-terminate-it can help

>
>To open an OpenVPN connection using OpenVPN can be done with
>
>
>Declare INTEGER ShellExecute IN shell32.dll ;
>		INTEGER hndWin, ;
>		STRING cAction, ;
>		STRING cFileName, ;
>		STRING cParams, ;
>		STRING cDir, ;
>		INTEGER nShowWin
>	
>test = .t.
>	If Test
>		cFileName = "C:\Program Files\OpenVPN\config\mysql.ovpn"
>		cAction = "open"
>		ShellExecute(0,cAction,cFileName,"","",7)
>
>
>However, how about closing?
>
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform