Page 1 of 1

Renew IP

PostPosted: Mar 19, 2003 @ 2:04pm
by Students

PostPosted: Mar 19, 2003 @ 4:43pm
by refractor

PostPosted: Mar 19, 2003 @ 5:27pm
by Dan East

PostPosted: Mar 20, 2003 @ 9:58am
by refractor

PostPosted: Mar 20, 2003 @ 11:31am
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);
result=GetInterfaceInfo(if_info,&size);
// check result here
result=IpRenewAddress(&if_info->Adapter[0]);

if(result != NO_ERROR)
{
MessageBox(_T("Data Received !!"));
}
else
MessageBox(_T("Data Received 2 !!"));

I execute this code by the reply was
Data Received 2

PostPosted: Mar 20, 2003 @ 11:46am
by Students
Ok Thanks its working now .. I misinterpret the if else

Thanks Alot