Fwd: Hooking
ramalingareddy bommalapura <[email protected]>
| Newsgroups | gmane.comp.xfree86.forum,gmane.comp.xfree86.devel,gmane.comp.freedesktop.xorg |
|---|---|
| Message-ID | <[email protected]> |
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 : [email protected]
--
Thanks&Regards
Reddy