Einzelnen Beitrag anzeigen

Benutzerbild von Assarbad
Assarbad

Registriert seit: 8. Okt 2010
Ort: Frankfurt am Main
1.234 Beiträge
 
#2

AW: WM_PASTE system-wide hook

  Alt 14. Apr 2012, 16:00
System-wide? Simply put: nope there isn't. Each hook is limited to the window station in which it was installed.

But quite frankly it would make more sense had you also commented on what you are trying to achieve.

Installing a clipboard viewer, for example, is more than enough to achieve what you are trying with the WM_COPY hook you gave as sample code.

Aside from that each global hook (with few exceptions such as low-level keyboard hooks) causes the DLL with the hook function to be injected into the target process. This will only work if the bitness of process and DLL agree. If not, this will simply fail.
Oliver
"... aber vertrauen Sie uns, die Physik stimmt." (Prof. Harald Lesch)
  Mit Zitat antworten Zitat