Skip to main content

Access selected win32 APIs through ctypes

Project description

logo ctwin32

PyPI - Version PyPI - Python Version License - MIT PyPI - Stats


ctwin32 is a pure Python module, that wraps some Windows APIs (win32) by using ctypes. Since it is my personal playground, the selection of supported APIs and the way those are wrapped are solely dictated by my needs and preferences.

ctwin32 is definitely not a replacement for pywin32, although it serves that purpose for me (in conjunction with comtypes). Compared with pywin32 the coverage of ctwin32 is downright tiny.

While there is already another Python module that does something very similar to ctwin32 (pywin32-ctypes), it has a different purpose (namely to serve the internal needs of its creator).

See the samples directory for several instances of how ctwin32 can be used.


Note: Even though ctwin32 is a pure Python module, it can of course only be used on Windows. Therefore, the wheel packages provided are intentionally tagged with the x86, x64 and and arm64 Windows platform tags (in terms of content, those are the same). This is just to keep pip from installing them on a non-Windows OS.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ctwin32-2.5.0.tar.gz (169.8 kB view hashes)

Uploaded Source

Built Distributions

ctwin32-2.5.0-py3-none-win_arm64.whl (152.7 kB view hashes)

Uploaded Python 3 Windows ARM64

ctwin32-2.5.0-py3-none-win_amd64.whl (152.7 kB view hashes)

Uploaded Python 3 Windows x86-64

ctwin32-2.5.0-py3-none-win32.whl (152.7 kB view hashes)

Uploaded Python 3 Windows x86

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page