Skip to main content

cyminhook

PyPI Docs

Hook functions on Windows using MinHook.

Quick Start:

import ctypes
import ctypes.wintypes
import cyminhook
import win32api
import win32con


class MessageBoxExWHook(cyminhook.MinHook):
    signature = ctypes.WINFUNCTYPE(
        ctypes.c_int,
        ctypes.wintypes.HWND,
        ctypes.wintypes.LPCWSTR,
        ctypes.wintypes.LPCWSTR,
        ctypes.wintypes.UINT,
        ctypes.wintypes.WORD,
        use_last_error=True,
    )

    target = ctypes.windll.user32.MessageBoxExW

    def detour(self, hWnd, lpText, lpCaption, uType, langId):
        return self.original(hWnd, "Hooked", "Hooked", uType, langId)


with MessageBoxExWHook() as hook:
    hook.enable()

    win32api.MessageBox(None, "Hello, World!", "Python", win32con.MB_OK)

Metadata

Release files for cyminhook 0.1.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for cyminhook 0.1.6
File Size Uploaded
cyminhook-0.1.6.tar.gz 30.1 kB Details

Built distributions (wheels)

Table of built distributions (wheels) for cyminhook 0.1.6
File
cyminhook-0.1.6-cp315-cp315t-win_amd64.whl CPython 3.15 CPython 3.15 free-threading Windows x86-64 Details
cyminhook-0.1.6-cp315-cp315t-win32.whl CPython 3.15 CPython 3.15 free-threading Windows x86-32 Details
cyminhook-0.1.6-cp315-cp315-win_amd64.whl CPython 3.15 CPython 3.15 Windows x86-64 Details
cyminhook-0.1.6-cp315-cp315-win32.whl CPython 3.15 CPython 3.15 Windows x86-32 Details
cyminhook-0.1.6-cp314-cp314t-win_amd64.whl CPython 3.14 CPython 3.14 free-threading Windows x86-64 Details
cyminhook-0.1.6-cp314-cp314t-win32.whl CPython 3.14 CPython 3.14 free-threading Windows x86-32 Details
cyminhook-0.1.6-cp314-cp314-win_amd64.whl CPython 3.14 CPython 3.14 Windows x86-64 Details
cyminhook-0.1.6-cp314-cp314-win32.whl CPython 3.14 CPython 3.14 Windows x86-32 Details
cyminhook-0.1.6-cp313-cp313-win_amd64.whl CPython 3.13 CPython 3.13 Windows x86-64 Details
cyminhook-0.1.6-cp313-cp313-win32.whl CPython 3.13 CPython 3.13 Windows x86-32 Details
cyminhook-0.1.6-cp312-cp312-win_amd64.whl CPython 3.12 CPython 3.12 Windows x86-64 Details
cyminhook-0.1.6-cp312-cp312-win32.whl CPython 3.12 CPython 3.12 Windows x86-32 Details
cyminhook-0.1.6-cp311-cp311-win_amd64.whl CPython 3.11 CPython 3.11 Windows x86-64 Details
cyminhook-0.1.6-cp311-cp311-win32.whl CPython 3.11 CPython 3.11 Windows x86-32 Details
cyminhook-0.1.6-cp310-cp310-win_amd64.whl CPython 3.10 CPython 3.10 Windows x86-64 Details
cyminhook-0.1.6-cp310-cp310-win32.whl CPython 3.10 CPython 3.10 Windows x86-32 Details
cyminhook-0.1.6-cp39-cp39-win_amd64.whl CPython 3.9 CPython 3.9 Windows x86-64 Details
cyminhook-0.1.6-cp39-cp39-win32.whl CPython 3.9 CPython 3.9 Windows x86-32 Details

Total release size: 1.2 MB

Release files / cyminhook-0.1.6.tar.gz

Download URL cyminhook-0.1.6.tar.gz
Size 30.1 kB
Tags Source
SHA-256 checksum
How to use checksums
f2256f7700a6876fc3a823dca7022900ce8e2577daabbe42263d5f73e2f5da5b
BLAKE2b-256 checksum
How to use checksums
ca1ac1981634b4d42ebb54d0b7c3a9f05964a66e420f2379a552a99697fbd3c4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Aug 21, 2026.

Transparency log

Release files / cyminhook-0.1.6-cp315-cp315t-win_amd64.whl

Download URL cyminhook-0.1.6-cp315-cp315t-win_amd64.whl
Size 73.8 kB
Tags CPython 3.15 CPython 3.15 free-threading Windows x86-64
SHA-256 checksum
How to use checksums
40a43acf9ded73a0fa9394ace4cb0f24f8be79f8fa16df4257873fe83fdb224b
BLAKE2b-256 checksum
How to use checksums
da3c59e9816047474fa768edb2bffdbdc7c48451610ce7ace5bdbbedf58242e9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Aug 21, 2026.

Transparency log

Release files / cyminhook-0.1.6-cp315-cp315t-win32.whl

Download URL cyminhook-0.1.6-cp315-cp315t-win32.whl
Size 60.7 kB
Tags CPython 3.15 CPython 3.15 free-threading Windows x86-32
SHA-256 checksum
How to use checksums
928ea7bdb5d7248988bbc9138c4d38c4c570fafcadd0c950278cede612b0c1ba
BLAKE2b-256 checksum
How to use checksums
dd0dc0a47bae43ee41c54a3543a7802d4d9fd7985d34930099ab721a323a678e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Aug 21, 2026.

Transparency log

Release files / cyminhook-0.1.6-cp315-cp315-win_amd64.whl

Download URL cyminhook-0.1.6-cp315-cp315-win_amd64.whl
Size 67.8 kB
Tags CPython 3.15 Windows x86-64
SHA-256 checksum
How to use checksums
7dd84c1af9fd1099bfa7d83e7279d0459d47677760562efd860e3a78072bb2db
BLAKE2b-256 checksum
How to use checksums
72564ca223019154930cb4f9349190ba48bc124d25fdd6cad172ae4f5f7b7207
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Aug 21, 2026.

Transparency log

Release files / cyminhook-0.1.6-cp315-cp315-win32.whl

Download URL cyminhook-0.1.6-cp315-cp315-win32.whl
Size 55.8 kB
Tags CPython 3.15 Windows x86-32
SHA-256 checksum
How to use checksums
286b382f428d301c0e52b32ed9836b5a1246f2fb84a68357994bb1a9e608134c
BLAKE2b-256 checksum
How to use checksums
865e4aea2e5d67f93868aee59f9e6c5bdf08fc9a2bc83cc9f28e2152d20da707
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Aug 21, 2026.

Transparency log

Release files / cyminhook-0.1.6-cp314-cp314t-win_amd64.whl

Download URL cyminhook-0.1.6-cp314-cp314t-win_amd64.whl
Size 74.0 kB
Tags CPython 3.14 CPython 3.14 free-threading Windows x86-64
SHA-256 checksum
How to use checksums
a0157886e776624255b6d3934a08a9c49b81f9993e4bcaaef7e33d59e482583e
BLAKE2b-256 checksum
How to use checksums
38841ec72e879bf4dc3b2214940a970818940dfeab666d06e73e8d0f291157fe
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Aug 21, 2026.

Transparency log

Release files / cyminhook-0.1.6-cp314-cp314t-win32.whl

Download URL cyminhook-0.1.6-cp314-cp314t-win32.whl
Size 60.6 kB
Tags CPython 3.14 CPython 3.14 free-threading Windows x86-32
SHA-256 checksum
How to use checksums
be3f512b540e1800cfd42400ff7ec92d1389cab28500963ac94f225aabdd9aa1
BLAKE2b-256 checksum
How to use checksums
b809e00a4ee76f3eca3ead0f8aa8e69f0e290c36871c952a68b052cd749bf095
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Aug 21, 2026.

Transparency log

Release files / cyminhook-0.1.6-cp314-cp314-win_amd64.whl

Download URL cyminhook-0.1.6-cp314-cp314-win_amd64.whl
Size 67.8 kB
Tags CPython 3.14 Windows x86-64
SHA-256 checksum
How to use checksums
20dd86f8abd32715365a2842c041f6345bb29cedb091bab418e1eb7db7068e94
BLAKE2b-256 checksum
How to use checksums
7d6a9fd6b25ce3753a94c4a4b11032f91c1add3bff877a1d2be2a68c1d62d94e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Aug 21, 2026.

Transparency log

Release files / cyminhook-0.1.6-cp314-cp314-win32.whl

Download URL cyminhook-0.1.6-cp314-cp314-win32.whl
Size 55.8 kB
Tags CPython 3.14 Windows x86-32
SHA-256 checksum
How to use checksums
8fea46e4e7ab3b8cf4349285b6bedbb4acd8c962160c93fd84d9784650800da0
BLAKE2b-256 checksum
How to use checksums
73b96ecaa66be5989808f7f0679c240b082fec4ed7f82286b1353c97870559db
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Aug 21, 2026.

Transparency log

Release files / cyminhook-0.1.6-cp313-cp313-win_amd64.whl

Download URL cyminhook-0.1.6-cp313-cp313-win_amd64.whl
Size 66.3 kB
Tags CPython 3.13 Windows x86-64
SHA-256 checksum
How to use checksums
abf92a407c3044c192487df2a4137dc3b4084df9a680b3d3e5795b448a5e4041
BLAKE2b-256 checksum
How to use checksums
b1937846b23b964591e6eb2e7e6e4fe602f0f84c2bc5d70df6f1afccf76da182
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Aug 21, 2026.

Transparency log

Release files / cyminhook-0.1.6-cp313-cp313-win32.whl

Download URL cyminhook-0.1.6-cp313-cp313-win32.whl
Size 54.3 kB
Tags CPython 3.13 Windows x86-32
SHA-256 checksum
How to use checksums
a64216058d4872b7f9e594167464a0e83bca2d54e5f029040e24e9c3d47f8bfe
BLAKE2b-256 checksum
How to use checksums
2435735e21dc452c9b026ce194e1e3bad06ec0111f758fb4cb5e224a39ab8542
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Aug 21, 2026.

Transparency log

Release files / cyminhook-0.1.6-cp312-cp312-win_amd64.whl

Download URL cyminhook-0.1.6-cp312-cp312-win_amd64.whl
Size 67.0 kB
Tags CPython 3.12 Windows x86-64
SHA-256 checksum
How to use checksums
9694e7213850530313b55d112d8138f96f0350947eb768055ac312f0d4dee43e
BLAKE2b-256 checksum
How to use checksums
9f908e578cb2e5bdde3e08de2632e81b83c554ddf983f5442c82bf7598d37f5c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Aug 21, 2026.

Transparency log

Release files / cyminhook-0.1.6-cp312-cp312-win32.whl

Download URL cyminhook-0.1.6-cp312-cp312-win32.whl
Size 55.0 kB
Tags CPython 3.12 Windows x86-32
SHA-256 checksum
How to use checksums
82ec515128e47a111144ff9a3fa69c4e8c2d03db358c2b460c701d94d543c748
BLAKE2b-256 checksum
How to use checksums
cf6f2f3727d7c1729fc31cb97d2c6a97a189ea5aa19e29bcb3874d9d0393fe02
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Aug 21, 2026.

Transparency log

Release files / cyminhook-0.1.6-cp311-cp311-win_amd64.whl

Download URL cyminhook-0.1.6-cp311-cp311-win_amd64.whl
Size 68.5 kB
Tags CPython 3.11 Windows x86-64
SHA-256 checksum
How to use checksums
66b75b3ad956044bf1fa2d8f436932db07a944cc702f23ad4c8dae443b6e9ead
BLAKE2b-256 checksum
How to use checksums
895a15d6edb52653a3e3428a726871717e8ef41c4a65782c213a137d409da2c9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Aug 21, 2026.

Transparency log

Release files / cyminhook-0.1.6-cp311-cp311-win32.whl

Download URL cyminhook-0.1.6-cp311-cp311-win32.whl
Size 55.5 kB
Tags CPython 3.11 Windows x86-32
SHA-256 checksum
How to use checksums
ca4a6338e0a00ff0697b3932c517970cba0cd98793430389ae1d3ee026739031
BLAKE2b-256 checksum
How to use checksums
9f13652cc3d2588c949637fb0236b44706f588a3a694647750a0e526aa9f2626
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Aug 21, 2026.

Transparency log

Release files / cyminhook-0.1.6-cp310-cp310-win_amd64.whl

Download URL cyminhook-0.1.6-cp310-cp310-win_amd64.whl
Size 68.5 kB
Tags CPython 3.10 Windows x86-64
SHA-256 checksum
How to use checksums
214ed5a19988d96a75c0153c5596df8c6f1e964ca04dc52d2bb310ccc8a755db
BLAKE2b-256 checksum
How to use checksums
4c6da6eb248d36787fb88b31db64382fdb81198f86e3092c21f37235baa02aa3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Aug 21, 2026.

Transparency log

Release files / cyminhook-0.1.6-cp310-cp310-win32.whl

Download URL cyminhook-0.1.6-cp310-cp310-win32.whl
Size 55.6 kB
Tags CPython 3.10 Windows x86-32
SHA-256 checksum
How to use checksums
053b85afbda38a38416b87d6628a5194cdfb71f1518ae1156e685beffa156ff5
BLAKE2b-256 checksum
How to use checksums
4f2348b1fdff160fa9070c6ed4f692cdb04b31691132708dfffd6b2c016918e2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Aug 21, 2026.

Transparency log

Release files / cyminhook-0.1.6-cp39-cp39-win_amd64.whl

Download URL cyminhook-0.1.6-cp39-cp39-win_amd64.whl
Size 68.7 kB
Tags CPython 3.9 Windows x86-64
SHA-256 checksum
How to use checksums
7981a03314519696bb993cddb9a70de9b0665b2630263383729c59e8492a01e6
BLAKE2b-256 checksum
How to use checksums
5654097695967a4af1d70f6844b9008fb83fdd90a92f4e3bc022c87f79601520
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Aug 21, 2026.

Transparency log

Release files / cyminhook-0.1.6-cp39-cp39-win32.whl

Download URL cyminhook-0.1.6-cp39-cp39-win32.whl
Size 55.9 kB
Tags CPython 3.9 Windows x86-32
SHA-256 checksum
How to use checksums
28c1d222546fe3f1ec5e22e8b31c8ea0744bb0ec1323e5ce202a9953c8018076
BLAKE2b-256 checksum
How to use checksums
e08fec1226229449a1637fc1644536f55bb6fd1a7c7d699eea299453275fc7a4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Aug 21, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.1.6 This release

19 release files

0.1.3

15 release files

0.1.1

11 release files

0.1.0

11 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page