[Tutor] ctypes wintypes
Alan Gauld
alan.gauld at yahoo.co.uk
Tue Oct 3 19:50:23 EDT 2017
On 03/10/17 22:30, Michael C wrote:
> I am trying to create SYSTEM_INFO structure and MEMORY_BASIC_INFORMATION
> structure
>
> I think there are modules for this purpose? Is it the ctypes.wintypes?
wintypes does define many of the standard Win32 API types
but sadly neither of the two you mention seem to be included.
Since the module consists entirely of type definitions
the easiest way to find out what it holds is probably
just to open the module source code and search/look.
On my system(Linux) it lives in:
/usr/lib/python3.4/ctypes/wintypes.py
You might be able to create your own definition based
on the Windows type data and combining the more primitive
types that are declared in wintypes.
--
Alan G
Author of the Learn to Program web site
http://www.alan-g.me.uk/
http://www.amazon.com/author/alan_gauld
Follow my photo-blog on Flickr at:
http://www.flickr.com/photos/alangauldphotos
More information about the Tutor
mailing list