Einzelnen Beitrag anzeigen

randy_dom

Registriert seit: 28. Apr 2008
17 Beiträge
 
#1

WM_PASTE system-wide hook

  Alt 12. Apr 2012, 17:47
Hi , Is there any way i can hook the Clipboard WM_PASTE operation , i know i must refer to WH_GetMessage hook procedure But really i don't how to implement it .

for WM_COPY i use this in a Hook Dll :

Delphi-Quellcode:
function SysMsgProc(Code:integer; wParam: Word; lParam: Longint) : longint; stdcall;
begin
CallNextHookEx(SysHook, Code, wParam, lParam);
if code = HC_ACTION then
begin
if TMsg(Pointer(lParam)^).message = WM_COPY then
MessageBox(0, 'Copy Operation Detected', 'my DLL', 0);
end;
end;
I need to hook the WM_PASTE for all Processes .


many thanks
  Mit Zitat antworten Zitat