Changing IP Address of a machine!
To change ip address of a machine use SetAdapterIpAddress. It’s an undocumented API found in iphlpapi.dll.
Function signature is as follows…
DWORD SetAdapterIpAddress( char *pszAdapGUID, DWORD dwDHCP, DWORD dwIP, DWORD dwMask, DWORD dwGateway );
Look here for a demo, it’s in Russian but code is in english 😉