Skip to main content
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)

Download files

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

Source Distribution

cyminhook-0.1.6.tar.gz (30.1 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

cyminhook-0.1.6-cp315-cp315t-win_amd64.whl (73.8 kB view details)

Uploaded CPython 3.15tWindows x86-64

cyminhook-0.1.6-cp315-cp315t-win32.whl (60.7 kB view details)

Uploaded CPython 3.15tWindows x86

cyminhook-0.1.6-cp315-cp315-win_amd64.whl (67.8 kB view details)

Uploaded CPython 3.15Windows x86-64

cyminhook-0.1.6-cp315-cp315-win32.whl (55.8 kB view details)

Uploaded CPython 3.15Windows x86

cyminhook-0.1.6-cp314-cp314t-win_amd64.whl (74.0 kB view details)

Uploaded CPython 3.14tWindows x86-64

cyminhook-0.1.6-cp314-cp314t-win32.whl (60.6 kB view details)

Uploaded CPython 3.14tWindows x86

cyminhook-0.1.6-cp314-cp314-win_amd64.whl (67.8 kB view details)

Uploaded CPython 3.14Windows x86-64

cyminhook-0.1.6-cp314-cp314-win32.whl (55.8 kB view details)

Uploaded CPython 3.14Windows x86

cyminhook-0.1.6-cp313-cp313-win_amd64.whl (66.3 kB view details)

Uploaded CPython 3.13Windows x86-64

cyminhook-0.1.6-cp313-cp313-win32.whl (54.3 kB view details)

Uploaded CPython 3.13Windows x86

cyminhook-0.1.6-cp312-cp312-win_amd64.whl (67.0 kB view details)

Uploaded CPython 3.12Windows x86-64

cyminhook-0.1.6-cp312-cp312-win32.whl (55.0 kB view details)

Uploaded CPython 3.12Windows x86

cyminhook-0.1.6-cp311-cp311-win_amd64.whl (68.5 kB view details)

Uploaded CPython 3.11Windows x86-64

cyminhook-0.1.6-cp311-cp311-win32.whl (55.5 kB view details)

Uploaded CPython 3.11Windows x86

cyminhook-0.1.6-cp310-cp310-win_amd64.whl (68.5 kB view details)

Uploaded CPython 3.10Windows x86-64

cyminhook-0.1.6-cp310-cp310-win32.whl (55.6 kB view details)

Uploaded CPython 3.10Windows x86

cyminhook-0.1.6-cp39-cp39-win_amd64.whl (68.7 kB view details)

Uploaded CPython 3.9Windows x86-64

cyminhook-0.1.6-cp39-cp39-win32.whl (55.9 kB view details)

Uploaded CPython 3.9Windows x86

File details

Details for the file cyminhook-0.1.6.tar.gz.

File metadata

  • Download URL: cyminhook-0.1.6.tar.gz
  • Upload date:
  • Size: 30.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for cyminhook-0.1.6.tar.gz
Algorithm Hash digest
SHA256 f2256f7700a6876fc3a823dca7022900ce8e2577daabbe42263d5f73e2f5da5b
MD5 5b95b929f82f43cd02f7bee0d9593121
BLAKE2b-256 ca1ac1981634b4d42ebb54d0b7c3a9f05964a66e420f2379a552a99697fbd3c4

See more details on using hashes here.

Provenance

The following attestation bundles were made for cyminhook-0.1.6.tar.gz:

Publisher: wheels.yml on segevfiner/cyminhook

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file cyminhook-0.1.6-cp315-cp315t-win_amd64.whl.

File metadata

  • Download URL: cyminhook-0.1.6-cp315-cp315t-win_amd64.whl
  • Upload date:
  • Size: 73.8 kB
  • Tags: CPython 3.15t, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for cyminhook-0.1.6-cp315-cp315t-win_amd64.whl
Algorithm Hash digest
SHA256 40a43acf9ded73a0fa9394ace4cb0f24f8be79f8fa16df4257873fe83fdb224b
MD5 d6acfa8896e083dd5d402de184128764
BLAKE2b-256 da3c59e9816047474fa768edb2bffdbdc7c48451610ce7ace5bdbbedf58242e9

See more details on using hashes here.

Provenance

The following attestation bundles were made for cyminhook-0.1.6-cp315-cp315t-win_amd64.whl:

Publisher: wheels.yml on segevfiner/cyminhook

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file cyminhook-0.1.6-cp315-cp315t-win32.whl.

File metadata

  • Download URL: cyminhook-0.1.6-cp315-cp315t-win32.whl
  • Upload date:
  • Size: 60.7 kB
  • Tags: CPython 3.15t, Windows x86
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for cyminhook-0.1.6-cp315-cp315t-win32.whl
Algorithm Hash digest
SHA256 928ea7bdb5d7248988bbc9138c4d38c4c570fafcadd0c950278cede612b0c1ba
MD5 ec3301c4a69fb9283a2fbe21ad3f0206
BLAKE2b-256 dd0dc0a47bae43ee41c54a3543a7802d4d9fd7985d34930099ab721a323a678e

See more details on using hashes here.

Provenance

The following attestation bundles were made for cyminhook-0.1.6-cp315-cp315t-win32.whl:

Publisher: wheels.yml on segevfiner/cyminhook

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file cyminhook-0.1.6-cp315-cp315-win_amd64.whl.

File metadata

  • Download URL: cyminhook-0.1.6-cp315-cp315-win_amd64.whl
  • Upload date:
  • Size: 67.8 kB
  • Tags: CPython 3.15, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for cyminhook-0.1.6-cp315-cp315-win_amd64.whl
Algorithm Hash digest
SHA256 7dd84c1af9fd1099bfa7d83e7279d0459d47677760562efd860e3a78072bb2db
MD5 65fe26d93df09a3b8a5ed57efa3e3221
BLAKE2b-256 72564ca223019154930cb4f9349190ba48bc124d25fdd6cad172ae4f5f7b7207

See more details on using hashes here.

Provenance

The following attestation bundles were made for cyminhook-0.1.6-cp315-cp315-win_amd64.whl:

Publisher: wheels.yml on segevfiner/cyminhook

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file cyminhook-0.1.6-cp315-cp315-win32.whl.

File metadata

  • Download URL: cyminhook-0.1.6-cp315-cp315-win32.whl
  • Upload date:
  • Size: 55.8 kB
  • Tags: CPython 3.15, Windows x86
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for cyminhook-0.1.6-cp315-cp315-win32.whl
Algorithm Hash digest
SHA256 286b382f428d301c0e52b32ed9836b5a1246f2fb84a68357994bb1a9e608134c
MD5 4af71cebb9d7189a82aa7fb7b0ea5d62
BLAKE2b-256 865e4aea2e5d67f93868aee59f9e6c5bdf08fc9a2bc83cc9f28e2152d20da707

See more details on using hashes here.

Provenance

The following attestation bundles were made for cyminhook-0.1.6-cp315-cp315-win32.whl:

Publisher: wheels.yml on segevfiner/cyminhook

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file cyminhook-0.1.6-cp314-cp314t-win_amd64.whl.

File metadata

  • Download URL: cyminhook-0.1.6-cp314-cp314t-win_amd64.whl
  • Upload date:
  • Size: 74.0 kB
  • Tags: CPython 3.14t, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for cyminhook-0.1.6-cp314-cp314t-win_amd64.whl
Algorithm Hash digest
SHA256 a0157886e776624255b6d3934a08a9c49b81f9993e4bcaaef7e33d59e482583e
MD5 1f7f029b012eec253a84db55ba0d5023
BLAKE2b-256 38841ec72e879bf4dc3b2214940a970818940dfeab666d06e73e8d0f291157fe

See more details on using hashes here.

Provenance

The following attestation bundles were made for cyminhook-0.1.6-cp314-cp314t-win_amd64.whl:

Publisher: wheels.yml on segevfiner/cyminhook

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file cyminhook-0.1.6-cp314-cp314t-win32.whl.

File metadata

  • Download URL: cyminhook-0.1.6-cp314-cp314t-win32.whl
  • Upload date:
  • Size: 60.6 kB
  • Tags: CPython 3.14t, Windows x86
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for cyminhook-0.1.6-cp314-cp314t-win32.whl
Algorithm Hash digest
SHA256 be3f512b540e1800cfd42400ff7ec92d1389cab28500963ac94f225aabdd9aa1
MD5 70108ae7dfa068921ac42b2752001bf7
BLAKE2b-256 b809e00a4ee76f3eca3ead0f8aa8e69f0e290c36871c952a68b052cd749bf095

See more details on using hashes here.

Provenance

The following attestation bundles were made for cyminhook-0.1.6-cp314-cp314t-win32.whl:

Publisher: wheels.yml on segevfiner/cyminhook

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file cyminhook-0.1.6-cp314-cp314-win_amd64.whl.

File metadata

  • Download URL: cyminhook-0.1.6-cp314-cp314-win_amd64.whl
  • Upload date:
  • Size: 67.8 kB
  • Tags: CPython 3.14, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for cyminhook-0.1.6-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 20dd86f8abd32715365a2842c041f6345bb29cedb091bab418e1eb7db7068e94
MD5 0bc0e51e118aee7716f334b3f543192e
BLAKE2b-256 7d6a9fd6b25ce3753a94c4a4b11032f91c1add3bff877a1d2be2a68c1d62d94e

See more details on using hashes here.

Provenance

The following attestation bundles were made for cyminhook-0.1.6-cp314-cp314-win_amd64.whl:

Publisher: wheels.yml on segevfiner/cyminhook

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file cyminhook-0.1.6-cp314-cp314-win32.whl.

File metadata

  • Download URL: cyminhook-0.1.6-cp314-cp314-win32.whl
  • Upload date:
  • Size: 55.8 kB
  • Tags: CPython 3.14, Windows x86
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for cyminhook-0.1.6-cp314-cp314-win32.whl
Algorithm Hash digest
SHA256 8fea46e4e7ab3b8cf4349285b6bedbb4acd8c962160c93fd84d9784650800da0
MD5 f5f12104d0c52947913e2b9a88d88e55
BLAKE2b-256 73b96ecaa66be5989808f7f0679c240b082fec4ed7f82286b1353c97870559db

See more details on using hashes here.

Provenance

The following attestation bundles were made for cyminhook-0.1.6-cp314-cp314-win32.whl:

Publisher: wheels.yml on segevfiner/cyminhook

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file cyminhook-0.1.6-cp313-cp313-win_amd64.whl.

File metadata

  • Download URL: cyminhook-0.1.6-cp313-cp313-win_amd64.whl
  • Upload date:
  • Size: 66.3 kB
  • Tags: CPython 3.13, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for cyminhook-0.1.6-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 abf92a407c3044c192487df2a4137dc3b4084df9a680b3d3e5795b448a5e4041
MD5 e5bbe4ee127740af51517f16d2649a33
BLAKE2b-256 b1937846b23b964591e6eb2e7e6e4fe602f0f84c2bc5d70df6f1afccf76da182

See more details on using hashes here.

Provenance

The following attestation bundles were made for cyminhook-0.1.6-cp313-cp313-win_amd64.whl:

Publisher: wheels.yml on segevfiner/cyminhook

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file cyminhook-0.1.6-cp313-cp313-win32.whl.

File metadata

  • Download URL: cyminhook-0.1.6-cp313-cp313-win32.whl
  • Upload date:
  • Size: 54.3 kB
  • Tags: CPython 3.13, Windows x86
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for cyminhook-0.1.6-cp313-cp313-win32.whl
Algorithm Hash digest
SHA256 a64216058d4872b7f9e594167464a0e83bca2d54e5f029040e24e9c3d47f8bfe
MD5 4a904021c6bef839e7ab80844c476e90
BLAKE2b-256 2435735e21dc452c9b026ce194e1e3bad06ec0111f758fb4cb5e224a39ab8542

See more details on using hashes here.

Provenance

The following attestation bundles were made for cyminhook-0.1.6-cp313-cp313-win32.whl:

Publisher: wheels.yml on segevfiner/cyminhook

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file cyminhook-0.1.6-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: cyminhook-0.1.6-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 67.0 kB
  • Tags: CPython 3.12, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for cyminhook-0.1.6-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 9694e7213850530313b55d112d8138f96f0350947eb768055ac312f0d4dee43e
MD5 b01db170e66e97003fca70414840adb6
BLAKE2b-256 9f908e578cb2e5bdde3e08de2632e81b83c554ddf983f5442c82bf7598d37f5c

See more details on using hashes here.

Provenance

The following attestation bundles were made for cyminhook-0.1.6-cp312-cp312-win_amd64.whl:

Publisher: wheels.yml on segevfiner/cyminhook

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file cyminhook-0.1.6-cp312-cp312-win32.whl.

File metadata

  • Download URL: cyminhook-0.1.6-cp312-cp312-win32.whl
  • Upload date:
  • Size: 55.0 kB
  • Tags: CPython 3.12, Windows x86
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for cyminhook-0.1.6-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 82ec515128e47a111144ff9a3fa69c4e8c2d03db358c2b460c701d94d543c748
MD5 c2b122b225e890a63087036d7980f235
BLAKE2b-256 cf6f2f3727d7c1729fc31cb97d2c6a97a189ea5aa19e29bcb3874d9d0393fe02

See more details on using hashes here.

Provenance

The following attestation bundles were made for cyminhook-0.1.6-cp312-cp312-win32.whl:

Publisher: wheels.yml on segevfiner/cyminhook

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file cyminhook-0.1.6-cp311-cp311-win_amd64.whl.

File metadata

  • Download URL: cyminhook-0.1.6-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 68.5 kB
  • Tags: CPython 3.11, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for cyminhook-0.1.6-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 66b75b3ad956044bf1fa2d8f436932db07a944cc702f23ad4c8dae443b6e9ead
MD5 bdb80d94dc0db7da2fde37eaf1d092af
BLAKE2b-256 895a15d6edb52653a3e3428a726871717e8ef41c4a65782c213a137d409da2c9

See more details on using hashes here.

Provenance

The following attestation bundles were made for cyminhook-0.1.6-cp311-cp311-win_amd64.whl:

Publisher: wheels.yml on segevfiner/cyminhook

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file cyminhook-0.1.6-cp311-cp311-win32.whl.

File metadata

  • Download URL: cyminhook-0.1.6-cp311-cp311-win32.whl
  • Upload date:
  • Size: 55.5 kB
  • Tags: CPython 3.11, Windows x86
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for cyminhook-0.1.6-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 ca4a6338e0a00ff0697b3932c517970cba0cd98793430389ae1d3ee026739031
MD5 8031f970b1f79c467e7b629aaa0b2461
BLAKE2b-256 9f13652cc3d2588c949637fb0236b44706f588a3a694647750a0e526aa9f2626

See more details on using hashes here.

Provenance

The following attestation bundles were made for cyminhook-0.1.6-cp311-cp311-win32.whl:

Publisher: wheels.yml on segevfiner/cyminhook

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file cyminhook-0.1.6-cp310-cp310-win_amd64.whl.

File metadata

  • Download URL: cyminhook-0.1.6-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 68.5 kB
  • Tags: CPython 3.10, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for cyminhook-0.1.6-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 214ed5a19988d96a75c0153c5596df8c6f1e964ca04dc52d2bb310ccc8a755db
MD5 757cfb9edb0e256c65b6ddc66f445f43
BLAKE2b-256 4c6da6eb248d36787fb88b31db64382fdb81198f86e3092c21f37235baa02aa3

See more details on using hashes here.

Provenance

The following attestation bundles were made for cyminhook-0.1.6-cp310-cp310-win_amd64.whl:

Publisher: wheels.yml on segevfiner/cyminhook

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file cyminhook-0.1.6-cp310-cp310-win32.whl.

File metadata

  • Download URL: cyminhook-0.1.6-cp310-cp310-win32.whl
  • Upload date:
  • Size: 55.6 kB
  • Tags: CPython 3.10, Windows x86
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for cyminhook-0.1.6-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 053b85afbda38a38416b87d6628a5194cdfb71f1518ae1156e685beffa156ff5
MD5 dfd4ab5cf57d760a0f3835726e887124
BLAKE2b-256 4f2348b1fdff160fa9070c6ed4f692cdb04b31691132708dfffd6b2c016918e2

See more details on using hashes here.

Provenance

The following attestation bundles were made for cyminhook-0.1.6-cp310-cp310-win32.whl:

Publisher: wheels.yml on segevfiner/cyminhook

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file cyminhook-0.1.6-cp39-cp39-win_amd64.whl.

File metadata

  • Download URL: cyminhook-0.1.6-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 68.7 kB
  • Tags: CPython 3.9, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for cyminhook-0.1.6-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 7981a03314519696bb993cddb9a70de9b0665b2630263383729c59e8492a01e6
MD5 c0e17f64c6dc9cc57cd05d8ec10c5dbc
BLAKE2b-256 5654097695967a4af1d70f6844b9008fb83fdd90a92f4e3bc022c87f79601520

See more details on using hashes here.

Provenance

The following attestation bundles were made for cyminhook-0.1.6-cp39-cp39-win_amd64.whl:

Publisher: wheels.yml on segevfiner/cyminhook

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file cyminhook-0.1.6-cp39-cp39-win32.whl.

File metadata

  • Download URL: cyminhook-0.1.6-cp39-cp39-win32.whl
  • Upload date:
  • Size: 55.9 kB
  • Tags: CPython 3.9, Windows x86
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for cyminhook-0.1.6-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 28c1d222546fe3f1ec5e22e8b31c8ea0744bb0ec1323e5ce202a9953c8018076
MD5 ef9a36c796b442db4888348d09373fb4
BLAKE2b-256 e08fec1226229449a1637fc1644536f55bb6fd1a7c7d699eea299453275fc7a4

See more details on using hashes here.

Provenance

The following attestation bundles were made for cyminhook-0.1.6-cp39-cp39-win32.whl:

Publisher: wheels.yml on segevfiner/cyminhook

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

This release

0.1.6 This release

19 files

0.1.5

17 files

0.1.4

15 files

0.1.3

15 files

0.1.2

13 files

0.1.1

11 files

0.1.0

11 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page