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… [sourcecode language=’cpp’]DWORD SetAdapterIpAddress( char *pszAdapGUID,                            DWORD dwDHCP,                            DWORD dwIP,                            DWORD dwMask,                            DWORD dwGateway );[/sourcecode] Look here for a demo, it’s in Russian but code is in english 😉
Continue reading…