ctypes-windows-sdk
A totally incomplete and random port of the C Windows SDK for Python ctypes. No dependencies besides the Python standard library.
Windows SDK coverage
The shared, user-mode, and kernel-mode bindings are verified against the Windows SDK and Windows Driver Kit (WDK) 10.0.26100.0 headers, corresponding to Windows 11, version 24H2 (build 26100). The shared and um headers come from the SDK; the km headers come from the WDK. See Microsoft’s Windows versions and SDK overview for the official version mapping.
Microsoft’s WDK download guidance states that SDK and WDK build numbers should match for driver builds. The supported WDK versions page lists the 26100 WDK family; the WDK 10.0.26100.6584 installer is the official QFE installer for that build family.
Install
Requires Python 3.7+.
pip install ctypes-windows-sdk
Example
from cwinsdk.windows import GetTickCount64
tickcount = GetTickCount64()
Used by
- Dobatymo/public-scripts
Metadata
Release files for ctypes-windows-sdk 0.0.20
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| ctypes_windows_sdk-0.0.20.tar.gz | 298.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| ctypes_windows_sdk-0.0.20-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 621.8 kB
Release files / ctypes_windows_sdk-0.0.20.tar.gz
| Download URL | ctypes_windows_sdk-0.0.20.tar.gz |
|---|---|
| Size | 298.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
83a95880ba3820ed77c590a5b0bfa37e4ed7ee08dc3737d1e74ec394e1478dd5
|
|
BLAKE2b-256 checksum How to use checksums |
bc295044beaecbf8747f0939714afd6af804eea0be2afdaa9f091b8bdf1b1cc7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.13
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 6, 2026.
Transparency logRelease files / ctypes_windows_sdk-0.0.20-py3-none-any.whl
| Download URL | ctypes_windows_sdk-0.0.20-py3-none-any.whl |
|---|---|
| Size | 323.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3e00623156c3717be07ee0615c6665e0fb2f7a6800204f5158a0f48a757d6dea
|
|
BLAKE2b-256 checksum How to use checksums |
4d693c33b431621849d36fa8cec4219b864016f082227ca3115a419cee05eb12
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.13
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 6, 2026.
Transparency log