ctypes module and some problems

Dave Brueck dave at pythonapocrypha.com
Sat Dec 14 00:14:15 EST 2002


On Fri, 13 Dec 2002, Chad Anderson wrote:

> Well, I've been trying to use the SystemParametersInfo function from
> user32.dll. Of course, with my luck, it doesn't work. The code I'm
> trying just to see if it even works looks a bit like this:
> 
> from ctypes import windll, cdll
> windll.user32.SystemParametersInfo

Hi Chad,

Just about any Windows API that takes a string parameter will have an ANSI
version and a Unicode version (usually at the end of the help page for 
that API it will say whether this is the case). Try this:

windll.user32.SystemParametersInfoA

-Dave





More information about the Python-list mailing list