PC Review
Forums
Newsgroups
Windows XP
Windows XP Embedded
Re: IP Address and NetMask
Forums
Newsgroups
Windows XP
Windows XP Embedded
Re: IP Address and NetMask
![]() |
Re: IP Address and NetMask |
|
|
Thread Tools | Rate Thread |
|
|
#1 |
|
Guest
Posts: n/a
|
Networking Configuration defaults to DHCP. This is because if Target
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.. ![]() > > |
|
|
|
#2 |
|
Guest
Posts: n/a
|
Can Microsoft confirm that the Networking APIs does not have any functions
to change IP or netmask ? MSDN do not have a listing on such a function, only on functions get and set certain properties but not IP and netmask. "Dan Simpson [MS]" <dansimp@online.microsoft.com> wrote in message news:3f1e9987$1@news.microsoft.com... > Networking Configuration defaults to DHCP. This is because if Target > 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.. ![]() > > > > > > |
|
![]() |
|
| Thread Tools | |
| Rate This Thread | |
|
|

Main Page 


