c# - Detect when paste event ocured in whole system -


i need detect when paste in whole system. example in notepad or word not in c# application. examples find describe winforms application.

when able detect event modify pasted value.

thanks

to achieve asking, have inject application in other windows running on system. process called hook.

excerpt how set windows hook in visual c# .net

global hooks not supported in .net framework

except wh_keyboard_ll low-level hook , wh_mouse_ll low-level hook, cannot implement global hooks in microsoft .net framework. install global hook, hook must have native dll export inject in process requires valid, consistent function call into. behavior requires dll export. .net framework not support dll exports. managed code has no concept of consistent value function pointer because these function pointers proxies built dynamically. low-level hook procedures called on thread installed hook. low-level hooks not require hook procedure implemented in dll.

what hooks:

a hook point in system message-handling mechanism application can install subroutine monitor message traffic in system , process types of messages before reach target window procedure.


Popular posts from this blog