none
Handling/Detecting IP Conflict issue occuring on same network RRS feed

  • Question

  • Hi Everyone,


    I am trying to develop a DLL for network setting. This DLL will be used by Application layer.
    I am using following method after writing Registry settings:

    DeviceIoControl(hNdis, IOCTL_NDIS_REBIND_ADAPTER, AdapterName ,(_tcslen(AdapterName)+2) * sizeof(TCHAR), NULL, 0, &xcount, NULL )

    I am facing one issue with this method.
    On trying to set Static IP which is already taken by any other machine on same network i get following POP UP from windows public networking code:
    "Another computer on this network has the same IP address as this computer. Contact you network administrator for help resolving......"


    As of now, DeviceIoControl( ) method returns without detecting this error so my DLL can not inform it to upper application layers.

    Please suggest how can I detect such errors at my DLL level and inform application UI for such errors

    Monday, November 13, 2017 10:37 AM

All replies