我正在为Windows CE上运行的Pocket PC开发应用程序。我需要启动另一个过程,但是我需要它来启动“隐藏”或“最小化”。在完整的Windows框架上执行此操作没问题,我只是设置

Process.StartInfo.WindowStyle = System.Diagnostics.ProcessWindowStyle.Hidden;


要么

Process.StartInfo.WindowStyle = System.Diagnostics.ProcessWindowStyle.Minimized;


但是Windows CE上不存在StartInfo.WindowStyle。如何使用Windows CE上的可用功能来完成此操作?

编辑:我没有任何信息,甚至没有访问以这种方式运行的应用程序/进程。我在ini文件中获得了路径和可选参数,因此无法更改将要运行的应用程序。

最佳答案

Windows CE itself doesn't support the STARTUPINFO structure通过本机API传递给CreateProcess,因此CF无法实现它。您唯一的选择是运行它,然后使用FindWindow查找和隐藏/最小化它。

关于c# - 在Pocket PC Windows CE上最小化/隐藏了C#启动过程,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/974621/

10-13 03:44