Hi!
I'm just wondering if it would be possible to get pid of the process that calls hooked by my application function. For example if i hook 'send' from WinSock i would like to know that it was orginally called by some pid, that i would use to get 'explorer.exe' for example.
Sure, just call GetCurrentProcessID to get the PID of the current process or call GetModuleFileName(0, ...) to get the name of the exe which called the hooked API!