cyminhook-0.1.2
توضیحات
Hook functions on Windows using MinHook
| ویژگی | مقدار |
|---|---|
| سیستم عامل | Microsoft :: Windows |
| نام فایل | cyminhook-0.1.2 |
| نام | cyminhook |
| نسخه کتابخانه | 0.1.2 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Segev Finer |
| ایمیل نویسنده | segev208@gmail.com |
| آدرس صفحه اصلی | https://github.com/segevfiner/cyminhook |
| آدرس اینترنتی | https://pypi.org/project/cyminhook/ |
| مجوز | MIT |
cyminhook
=========
.. image:: https://img.shields.io/pypi/v/cyminhook.svg
:target: https://pypi.org/project/cyminhook/
:alt: PyPI
.. image:: https://github.com/segevfiner/cyminhook/actions/workflows/docs.yml/badge.svg
:target: https://segevfiner.github.io/cyminhook/
:alt: Docs
Hook functions on Windows using `MinHook <https://github.com/TsudaKageyu/minhook>`_.
Quick Start:
.. code-block:: python
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)
نیازمندی
| مقدار | نام |
|---|---|
| ==5.* | sphinx |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.6 | Python |
نحوه نصب
نصب پکیج whl cyminhook-0.1.2:
pip install cyminhook-0.1.2.whl
نصب پکیج tar.gz cyminhook-0.1.2:
pip install cyminhook-0.1.2.tar.gz