C # Starting minimization / hiding process on Pocket PC Windows CE

I am working on a Pocket PC application that runs on Windows CE. I need to start another process, but I need it to start hiding or minimizing. Running this on a full Windows system is not a problem, I just installed

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

or

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

however, StartInfo.WindowStyle does not exist on Windows CE. How to do this using what's available in Windows CE?

Edit: I do not have any information or even access to applications / processes that run this way. I get the path and optional arguments in the ini file, so I can not change the applications that will be launched.

+3
source share
2 answers

Windows CE itself does not support the STARTUPINFO structure passed to CreateProcess in its own APIs, so it is impossible to implement CF This. Your only option is to run it and then use FindWindow to find and hide / minimize it.

+3
source

Do you have control over the source of both applications? You can specify a command line parameter that has the semantic "start hidden" - the second program can read it and start as hidden.

0
source

Source: https://habr.com/ru/post/1710137/


All Articles