[python-win32] Waiting for Wireless

Tim Roberts timr at probo.com
Wed Oct 25 21:31:31 CEST 2006


Jürgen Kareta wrote:

>Hi Tim,
>
>the win32api call  GetIPAddrTable could be helpful. See:
>http://msdn.microsoft.com/library/default.asp?url=/library/en-us/iphlp/iphlp/getipaddrtable.asp.
>Unfortual it is currently not implemented in pywin. CTypes should be an 
>option.
>  
>

I was able to get that work with ctypes, but it still doesn't identify
which adapter owns the IP address.  However, your MSDN pointer led me to
GetAdapterAddresses, which does seem to have all of the information I
want.  Unfortunately, it returns an intertwined linked list of linked
lists, which is a bear in ctypes, so I may just fall back to C++ for this...

Good information.  Thanks!

-- 
Tim Roberts, timr at probo.com
Providenza & Boekelheide, Inc.



More information about the Python-win32 mailing list