hello
I've a question..
It may be involved in how callback function works
anyway what I wonder is.. why we should use dll when using SetWindowHookEx
I'm meaning global hooking.. when callback function(HOOKFUNC) is called in other process by OS
the address is function is matched into memory address of the process ?
if A process used SetWindowHookEx with paramater 7h
(suppose 7h is the address of HOOKFUNC), when HOOKFUNC is called in B process (maybe
there occured message from B process), Does the address of HOOKFUNC (7h) match to the memory address of B process ? if it's true I'm likely to know why HOOKFUNC should be dll..
but isn't it possible that OS calls HOOKFUNC which is defined in exefile of A process no matter
what process provided a message? I leaned each process can't access other's memory.. but
'cause it's OS that calls HOOKFUNC, I think it may be possible to access the address of HOOKFUNC in A process.. anyway the point is that why in gloabl hooking, HOOKFUNC should
be in dll..
thanks

P.S: 'cause english is not mother tongue, it's hard to explain my problem.. plz take time
to catch meaning..