Re: Need IP address for ethernet devices
|
Yvonnet Vogel |
|
3/31/2009 11:22:10 PM |
Hi Larry, Take a look at GetAdaptersInfo(). I have an example at: http://www.codeguru.com/cpp/i-n/inte...le.php/c10855/ Post Comments |
|
Thanks, I've downloaded the code and it looks like this might work. I just got to get to to work with the older Visual C++ 6 and get it to work in a DLL. I haven't tried that yet. Next thing to do.
Thanks again. Reply With Quote
Post Comments |
|
Re: I had to switch over to Visual Studio 2005
|
Larry Coons |
|
3/31/2009 11:23:33 PM |
I had to switch over to Visual Studio 2005 to get my DLL to compile correctly. Your code helped me see how to get information about the adapter. The only thing I don't know how to do is determine which adapter is the default adapter. Is it the first one on the list? How does Windo ws determines which adapter to use? Is it first detected first use type of methodology? Post Comments |
|
Re: First detected adapter....
|
Yvonnet Vogel |
|
3/31/2009 11:24:23 PM |
First detected adapter that has an established connection. If it cannot resolve, it goes on to the next, then the next, etc. I did not read this anyware, it is personal observat ion. Post Comments |
|