I’m trying to get the server IP (‘Server IPv4 Address’ as seen from the adapter’s ‘Details’ tab on its Status dialog) on a PPP modem adapter. Going by the listadapters example, the local IP is obtained from the ProtocolBuffer element in RAS_LINK_INFO. Is the Server IP also in this buffer? I’m not finding details on what this buffer contains, as it seems to vary its contents by OS version. Is this information already in there and I just need the correct indexes into the buffer? Or should I be looking to another API to find this information?
The structure referred in listadapters sample for assigned IP address is not documented, so I cant’t say wether server IP can be found there or not. By the way can’t you use for that RAS API or IP Helper API?