Tech Support > Microsoft Windows > Drivers > IpRenewAddress FAILED!!
IpRenewAddress FAILED!!
Posted by Jyotsna on August 2nd, 2003


hi

Using IP Helper Api to dynamically assign ip to my
interface.

I am calling GetInterfaceInfo to get IP_ADAPTER_INDEX_MAP
(InterfaceInfo->Adapter)

which i am passing to IPRenewAddress.

The GetInterfaceInfo returns me following values.

InterfaceInfo->NumAdapter =1
InterfaceInfo->Adapter->Name = /Device/TCPIP_{C767E2D2-
8994-470F-9D84-9446D40CD0DB}
InterfaceInfo->Adapter->Index = 2

GetInterfaceInfo also gives the number od bytes written.
its value is 3120 which is very large.
the buffer contains all garbage value after the name of
Adapter.

IPRenewAddress is failing it is returning error code 2
(i.e The system cannot find the file specified )

where i am going wrong?

Thanks in Advance
Jyotsna


Similar Posts