I have a C++ console app in VS2005 and from within the app, I make a call to run a standalone executable, and I really want this app to run in the background or minimized and not take focus away from my console app. I have tried a bunch of different methods (See code below) to accomplish what I needed, but it seems to be a no-go. The standalone executable seems to take focus away from my console app, or not starting minimized.
Any help would be greatly appreciated.
Batch file contains: start /min c:\test\EasySuite.exe
memset(&siStartupInfo, 0, sizeof(siStartupInfo));
memset(&piProcessInfo, 0, sizeof(piProcessInfo));
siStartupInfo.cb = sizeof(siStartupInfo);
bSuccess = CreateProcess(TEXT("C:\\Test\\EasySuite.exe"),
NORMAL_PRIORITY_CLASS | CREATE_NO_WINDOW ,