views:

270

answers:

3

How do I change the IP settings of a Windows CE 6 box Programatically via C++? Functions for Windows might also work.

I found that I can change the hostname via sethostname but couldn't find how to change IP address settings such as:

  • IP Address
  • DHCP
  • Subnet
  • Gateway
  • DNS1 / DNS2
  • WINS1 / WINS2

Any advice / pointers would be great. Thanks.

P.s. How would you get the box to update to those settings - is a refresh or the programming equivalent of ipconfig /renew required?

+1  A: 

Have you checked out the IP Helper Routines on MSDN? I think these provide some, if not all, of what you need.

*EDIT: * Updated link. Thanks ctacke

SB
The link for the CE versions is http://msdn.microsoft.com/en-us/library/aa923597.aspx
ctacke
A: 
Jerry Coffin
WMI isn't available for WinCE.
ctacke
@ctacke: Oops -- in the process of writing the reply, I forgot the minor detail about its being for CE. Thanks for the reminder.
Jerry Coffin
A: 

I would recommend try using a proxy to change your IP address. I've been using a product from a company called Private Proxy. Their product works great and they have excellent customer support, so they'll be able to help you out with any questions that you have, and they're very understanding with the reasons behind getting banned. When you are logged in with this proxy, your real IP address will be completely hidden.

Anonymous Proxy