Fadhley Salim wrote: > Thanks for the advice. Unfortunately I'm not a C developer - I would > have no idea how to go about this. I was hoping that there would be an > easy way to use these functions purely in Python. >
Yes, there is. I am convinced the path you are on will lead to eventual happiness. The issue is that all of the documentation and all of the examples on the web are for C and C++. When you begin exploring an area like this that hasn't had a lot of exercise in Python, you end up spending a lot of time trying to figure out how to spell those C recipes in Python. I suspect your next steps are to go pore through the MSDN documentation on the API and the structure, and try playing with some of the flag values in AUTOPROXY_OPTIONS. You will stumble upon the answer eventually. > The problem is I've no idea how to use the syntax - I'm quite unfamiliar > with how you provide a value for AUTOPROXY_OPTIONS - I had hoped that I > could provide a tuple of values which match the arguments expected by > the function (as desctribed by MSDN) however there seems to be some > other trick I am missing. > I checked the source code for the Wininet module, and the implementation is exactly what you describe. It expects a tuple or list, and each item in the object is assigned in order to the members of the structure. > PS. Unfortunately I have no control over the legal disclaimers - I work > for an institution which is overly fond of such things. I'm sure they > are nonsense in all but a few very spesific circumstances. > ;) Those kind of long disclaimers used to be rather common. After a while, most companies dropped them because their employees griped about complaints from their correspondents, and the lawyers couldn't really assert that they had any value at all. -- Tim Roberts, t...@probo.com Providenza & Boekelheide, Inc. _______________________________________________ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32