Fwd: Hooking
ramalingareddy bommalapura <[email protected]> Fri, 9 Sep 2005 08:52:28 +0530
| 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;=20
static HINSTANCE hinstDLL;=20
static HHOOK hhookSysMsg;=20
=20
hinstDLL =3D LoadLibrary((LPCTSTR) "c:\\windows\\sysmsg.dll");=20
hkprcSysMsg =3D (HOOKPROC)GetProcAddress(hinstDLL, "SysMessageProc");=20
hhookSysMsg =3D SetWindowsHookEx(WH_SYSMSGFILTER,hkprcSysMsg,hinstDLL,0);=
=20
Please suggest a function similar to SetWindowsHookEx in Linux or else su=
ggest=20
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]
--=20
Thanks&Regards
Reddy