[forum] Fwd: Hooking
ramalingareddy bommalapura
ramalingareddyb@gmail.com
Fri, 9 Sep 2005 08:52:28 +0530
Hi All,
Can anybody please suggest how hooking can be done
in the xserver functions. XServer needs to invoke my function before
the call is passed to the XServer original function. I have found that
this is the procedure in windows for doing hooking:
HOOKPROC hkprcSysMsg;
static HINSTANCE hinstDLL;
static HHOOK hhookSysMsg;
hinstDLL = LoadLibrary((LPCTSTR) "c:\\windows\\sysmsg.dll");
hkprcSysMsg = (HOOKPROC)GetProcAddress(hinstDLL, "SysMessageProc");
hhookSysMsg = SetWindowsHookEx(WH_SYSMSGFILTER,hkprcSysMsg,hinstDLL,0);
Please suggest a function similar to SetWindowsHookEx in Linux or else suggest
some procedure in which I can do the hooking in linux.
Any help in this regard will be greatly appreciated,
Thank you.
Best Regards
Rama
Email : ramalingareddyb@gmail.com
--
Thanks&Regards
Reddy