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