i want to get one process CurrentThreadId.
i can get my application Current Thread ID with AppDomain.GetCurrentThreadId();
for example i want to get Task Manager CurrentThreadId.
var proces = System.Diagnostics.Process.GetProcessesByName("taskmgr");
proces[0].Threads//write code for get currentThreadID?
If you want the Process Id, you are already on the right track!
Here is an example: