I've got a specific application which I can find using
Process.GetProcesses()
and filtering by ProcessName. I'd like to filter out all keypress-events of that process, unfortunately one can only pass a optional thread-id to SetWindowsHookEx as last parameter.
That's why I thought about filtering the incoming events but I can't find a way to retrieve the information where it came from. Is there any solution to do it?
The callback-information are provided within LowLevelKeyboardProc having another struct inside lparam: KBDLLHOOKSTRUCT