Accessing windows structures through ctypes.

alex23 wuwei23 at gmail.com
Thu Jul 2 08:25:38 CEST 2009


On Jul 2, 3:42 pm, Rajat <rajat.dud... at gmail.com> wrote:
> Using ctypes can I access the windows structures like:
>
> PROCESS_INFORMATION_BLOCK, Process Environment Block(PEB),
> PEB_LDR_DATA, etc?

ctypes.wintypes lists all of the Windows structures included with the
module.

You should be able to use ctypes.Structure class to roll your own:

http://docs.python.org/library/ctypes.html#structured-data-types
http://code.activestate.com/recipes/208699/
http://msdn.microsoft.com/en-us/library/ms684855(VS.85).aspx




More information about the Python-list mailing list