How to get process id and thread id from a Window Handle in .NET CF? Specify the namespace for doing P/Invoke stuff ie calling Win32 API functions from managed code using SystemRuntimeInteropServices; GetWindowThreadProcessId Win32... 42Gears Team in Coding December 3, 2020 1 min read