Howto get IP address for a given adapter

Home Forums Discussions Support Howto get IP address for a given adapter

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #5631
    Vadim Smirnov
    Keymaster

      The only documented way is IP Helper API.

      #5632
      glandegrande
      Participant

        Thank you, SerpentFly. That was fast.

        printf("Adapter Name: %sn", pAdapter->AdapterName);
        printf("Adapter Desc: %sn", pAdapter->Description);
        printf("Adapter Addr: %ldn", pAdapter->Address);
        printf("IP Address: %sn", pAdapter->IpAddressList.IpAddress.String);
        printf("IP Mask: %sn", pAdapter->IpAddressList.IpMask.String);
      Viewing 2 posts - 1 through 2 (of 2 total)
      • You must be logged in to reply to this topic.