Page 1 of 1

Ip Address

PostPosted: Mar 26, 2003 @ 10:36am
by Students
PIP_INTERFACE_INFO if_info;
ulong size=0;
DWORD result;
result=GetInterfaceInfo(NULL,&size);
// check result here


if_info=(PIP_INTERFACE_INFO)malloc(size);
if(if_info != NULL)
{
result=GetInterfaceInfo(if_info,&size);

if(IpRenewAddress(&if_info->Adapter[0]) == NO_ERROR)

sockClient.Connect(destination, PORT)

i think that after renew, it have not get a ip and its start connect ..

can someone help ..

PostPosted: Mar 26, 2003 @ 4:09pm
by Dan East

PostPosted: Mar 27, 2003 @ 11:42am
by Students