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