Wednesday 7 August 2013

How to use ctypes.windll.Wininet.InternetQueryOptionW in python

How to use ctypes.windll.Wininet.InternetQueryOptionW in python

several month ago,I wrote
https://github.com/325862401/goagent/blob/master/local/ieproxysetting.cpp.
that program can set internet proxy automatically.
Now I want to use ctypes.windll.Wininet to do the same thing.
But I donot know how to pass the argument to InternetQueryOptionW. and I
also don't find the class refer to the INTERNET_PER_CONN_OPTION_LIST
structure.
is there any demo for the usage of InternetQueryOptionW or
InternetSetOptionW in python.
this
https://bitbucket.org/canassa/switch-proxy/src/685ac447783a7cb3ead6ce8369b66483790c26be/proxy.py?at=default
maybe be helpful. but I donot want to modify Registry. just use the api.
Thanks a lot. sorry for poor English.

No comments:

Post a Comment