Re: IP Address and NetMask
Posted: 07-23-2003, 03:19 PM
Designer set a static IP address for a run-time image, and that run-time
image was replicated across a bunch of devices, they all would have the same
IP address.
You can use netsh to configure networking on a run-time image after it has
been deployed. Also, you can create a netsh script that you can call from
your application.
To enable netsh, add the following components:
Network Command Shell
Network Command Shell Interface Context
IP Router Monitor Library
If you're not using the Explorer shell, you will need to name the
network interface by manually calling HrRenameConnection. Explorer names
the
interfaces when it starts ("Local Area Connection" for example). If you're
using a different shell, run this command:
rundll32 netshell.dll HrRenameConnection
You should be able to find more information on using netsh on MSDN. If
you're looking for specific APIs, you should probably take a look on MSDN
for networking SDKs and make sure the relevant libraries are added to your
system.
thanks,
Dan
--
This posting is provided "AS IS" with no warranties, and confers no rights.
"BN" <crap@eltrek.no> wrote in message
news:e%23VgBkQUDHA.304@tk2msftngp13.phx.gbl...
> I am doing some tests with XPe, and see that it is not possible to set IP
> address and netmask "easily" from Target Designer.
>
> My question is:
>
> Does anyone know of a Windows API that will allow me to set these from my
> program..?
>
> Any comments and ideas are welcome..
>
>




Linear Mode


Posts: n/a