Popular recipes tagged "windows_api" and "ctypes" but not "fontsmoothing"http://code.activestate.com/recipes/tags/windows_api-fontsmoothing+ctypes/2008-07-25T20:01:50-07:00ActiveState Code RecipesCalling Windows API using ctypes and win32con (Python)
2008-07-25T20:01:50-07:00Gary Eakinshttp://code.activestate.com/recipes/users/470921/http://code.activestate.com/recipes/208699-calling-windows-api-using-ctypes-and-win32con/
<p style="color: grey">
Python
recipe 208699
by <a href="/recipes/users/470921/">Gary Eakins</a>
(<a href="/recipes/tags/ctypes/">ctypes</a>, <a href="/recipes/tags/windows_api/">windows_api</a>).
Revision 4.
</p>
<p>It is easy to call Windows API dlls using the
ctypes module with win32con defining the
constant values for message identifiers and
parameter flags. The demo code shows a simple
but complete application that registers a
window class and a Python WndProc callback function,
creates the window and pumps messages.</p>