问题
How to get this part of process name with C#?
WindowsAPI.GetWindowThreadProcessId(hwnd, out pid);
Process p = Process.GetProcessById((int)pid);
p.MainWindowTitle.ToString();
is closes I've got to. But for many programs it shows opened window names. For example instead of "Google Chrome" it shows name of the active tab.
EDIT: Solution in "possible duplicated" thread lists things I've tried. From what I've gathered "Process" doesn't even contain information which is used in Task manager.
来源:https://stackoverflow.com/questions/48623678/get-processes-name-like-you-can-see-in-task-manager