使用 System.Diagnostics.Process 您可以在进程运行时选择该进程。从那里您可以在 .MainWindowHandle 处获取 MainWindow Handle,然后调用 Windows API 来最小化应用程序。
不幸的是,我不知道该电话的具体细节,你必须用谷歌搜索。
For C#:
Using System.Diagnostics.Process you can select the process when it's running. From there you can get the MainWindow Handle at .MainWindowHandle and then call the windows API to minimize the application.
Unfortunately I do not know the specifics for that call, you'd have to google it.
发布评论
评论(1)
对于 C#:
使用
System.Diagnostics.Process
您可以在进程运行时选择该进程。从那里您可以在.MainWindowHandle
处获取 MainWindow Handle,然后调用 Windows API 来最小化应用程序。不幸的是,我不知道该电话的具体细节,你必须用谷歌搜索。
For C#:
Using
System.Diagnostics.Process
you can select the process when it's running. From there you can get the MainWindow Handle at.MainWindowHandle
and then call the windows API to minimize the application.Unfortunately I do not know the specifics for that call, you'd have to google it.