Setting IP Address of Machine

Hi,
i wonder if there is a way to set the IP address of the machine in an MFC-based application. i mean, i'd like to do what i do using the Control panel/Network/TCP-IP Properties to set the IP address of the machine in my application.
can anyone help?,
thanx in advance...
[290 byte] By [ilhamig] at [2007-11-17 11:49:36]