Hooking Linux???



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.

.



Relevant Pages

  • Re: Hooking Linux???
    ... Can anybody please suggest how hooking can be done ... XServer needs to invoke my function before ... static HHOOK hhookSysMsg; ... Please suggest a function similar to SetWindowsHookEx in Linux or else ...
    (comp.os.linux.misc)
  • Re: Hooking Linux???
    ... Can anybody please suggest how hooking can be done ... XServer needs to invoke my function before ... Please suggest a function similar to SetWindowsHookEx in Linux or else ... X Window System, Version 11 ...
    (comp.os.linux.misc)
  • Re: Hooking Linux???
    ... Can anybody please suggest how hooking can be done ... XServer needs to invoke my function before ...
    (comp.os.linux.misc)
  • keyboard problem using Xserver
    ... The xserver has been started OK on Linux and a telnet session ... the AIX host. ... qwerty keyboard) the characters that are echoed are one-character to ...
    (comp.unix.aix)
  • Re: X window manager als root
    ... Oder meinst du den Xserver, ... um Vollzugriff auf die Grafikhardware haben zu ... Linux ist nicht Windows, um es auch nochmal zu sagen. ... dass man Zeit totschlagen muss. ...
    (de.comp.os.unix.linux.misc)