Re: RRAS Static Route

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: Rick Knight (knight_rjb_at_yahoo.com.au)
Date: 09/06/04


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-)



Relevant Pages

  • Re: API vs. FSO
    ... > Would some of you please explain why you prefer the Windows API ... FSO is slow, adds overhead, requires and external DLL, and is sometimes ... numerous samples exist. ...
    (microsoft.public.vb.general.discussion)
  • Re: Changing the text of a Command Button using SetWindowText
    ... simplified it to a direct call to SetWindowText in vb.net. ... Why not simply pass the button as a parameter to your DLL? ... Can I force .NET to redraw the button using a Windows API call? ... API Function SetWindowText, which I have declared as follows: ...
    (microsoft.public.dotnet.languages.vb)
  • Re: SysAllocString
    ... It is appreciated if you could list the DLL and import library file names ... for Windows API and CRT. ... CloseHandle there, because CreateFile and CloseHandle are Windows APIs ...
    (microsoft.public.vc.language)
  • Re: Learn API or VB.Net instead
    ... To code for the Windows API with VB IMHO there are three essential things: ... You have to read the documentation of the Windows API function you would ... For b) a good source of information is the VB online help. ... another one "DLL" since programming the Windows API with VB primarily is ...
    (microsoft.public.vb.winapi)