如何在C#中获取活动进程名称?
我知道我必须使用这段代码:
[DllImport("user32.dll")] private static extern IntPtr GetForegroundWindow();
但我不知道怎么用它.
c#
c# ×1