Re: IP Address and NetMask

Posted: 07-23-2003, 03:19 PM
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..
>
>

Reply With Quote

Responses to "Re: IP Address and NetMask"

Chew Lek Wah
Guest
Posts: n/a
 
Re: IP Address and NetMask
Posted: 07-24-2003, 02:50 AM
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..
> >
> >
>
>

Reply With Quote
 
LinkBack Thread Tools Display Modes
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
IP address Graham Broadbridge Windows XP Embedded 5 10-14-2005 08:23 PM
Address bar Ollie Windows XP Basics 56 01-31-2004 02:25 PM
Address Bar Yolonda Windows XP Accessibility 6 01-25-2004 10:40 PM
IP Address Windows XP Network & Web 29 01-05-2004 08:04 PM
what address/pc name should i use Sooner Al Windows XP Work Remotely 0 07-01-2003 03:07 PM


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90