Re: RRAS Static Route
From: Ashok Nandoori [MSFT] (ashnando_at_online.microsoft.com)
Date: 09/06/04
- Next message: Sharoon Shetty K [MSFT]: "Re: Cannot start IAS and RRAS"
- Previous message: Rick Knight: "RRAS Static Route"
- In reply to: Rick Knight: "RRAS Static Route"
- Next in thread: Rick Knight: "Re: RRAS Static Route"
- Reply: Rick Knight: "Re: RRAS Static Route"
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 6 Sep 2004 11:56:51 +0530
You can use CreateProcess() to create a command line shell and execute netsh
commands as an argument. You may have to parse the output which is in
textual format. For more information on CreateProcess() go though
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dllproc/base/createprocess.asp.
-- Thanks, Ashok --------------------------------------------------------- This posting is provided "AS IS" with no warranties, and confers no rights. "Rick Knight" <knight_rjb@yahoo.com.au> wrote in message news:4b3eabf7.0409052130.737aace6@posting.google.com... > Hi, > > I have Routing and Remote Access server installed. I have added a > Dial-On-Demand interface. I have also added a Static Route, and set it > up so that it uses my DOD Interface. If I ping the required IP address > windows automatically connects and all works fine. > > If I use the command line tool NetSH (ie. netsh routing ip show > persistentroutes) it displays the current static/persistent route and > it's associated Interface Name. > > Does anyone know how to extract this information from within an MFC > application. > > Thanks in Advance. > Rick 8-)
- Next message: Sharoon Shetty K [MSFT]: "Re: Cannot start IAS and RRAS"
- Previous message: Rick Knight: "RRAS Static Route"
- In reply to: Rick Knight: "RRAS Static Route"
- Next in thread: Rick Knight: "Re: RRAS Static Route"
- Reply: Rick Knight: "Re: RRAS Static Route"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|