[python-win32] Network configuration change notification

Jim Vickroy Jim.Vickroy at noaa.gov
Thu Jul 31 14:14:42 EDT 2003


You may wish to investigate "ctypes" which allows you to directly access
DLL functions from Python.  A relevant link is:

http://starship.python.net/crew/theller/ctypes/

Rudy Schockaert wrote:

> Hi,
>
> I would like to write a Python application that sits and waits in the
> background (a service I guess) for changes in my network configuration
> on my laptop. I want to reconfigure my system depending on the network
> I'm connected to.
> I want to change proxy settings map drives, set default printer, ......
> I found on MSDN Library that there is a IPHLPAPI.dll taht provides a
> NotifyAddrChange function. That far I got. Now I should be able to call
> that function from Python and be notified somehow when my ip-address
> changes.
>
> Any that can point me in the right direction? I was thinking of using
> ctypes for it but maybe there are easier ways to do this,
>
> TIA,
>
> Rudy
>
> _______________________________________________
> Python-win32 mailing list
> Python-win32 at python.org
> http://mail.python.org/mailman/listinfo/python-win32




More information about the Python-win32 mailing list