Re: RRAS Static Route
From: Rick Knight (knight_rjb_at_yahoo.com.au)
Date: 09/06/04
- Next message: Nobody: "Re: How can I know which DHCP address my RRAS client using?"
- Previous message: Janani V[MSFT]: "Re: How can I know which DHCP address my RRAS client using?"
- In reply to: Ashok Nandoori [MSFT]: "Re: RRAS Static Route"
- Messages sorted by: [ date ] [ thread ]
Date: 6 Sep 2004 16:49:52 -0700
Thanks Ashok for the information, but I was actually thinking about
creating a DLL so many applications could use it.
Is there no windows API or exported DLL function that can do it?
Thanks in advance.
Rick 8-)
"Ashok Nandoori [MSFT]" <ashnando@online.microsoft.com> wrote in message news:<OjzNCq9kEHA.1904@TK2MSFTNGP09.phx.gbl>...
> 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: Nobody: "Re: How can I know which DHCP address my RRAS client using?"
- Previous message: Janani V[MSFT]: "Re: How can I know which DHCP address my RRAS client using?"
- In reply to: Ashok Nandoori [MSFT]: "Re: RRAS Static Route"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|