I wrote an MFC-app using VC++.NET 2003, which starts a screensaver
It also terminates the screensaver using TerminateProcess() /
If the user activates mouse/keyboard before my app terminates the
the screensaver terminates itself and the z-order and focus-handling
of open windows somehow gets mixed up. this just happens when I use
CreateProcess(), when I use PostMessage(WM_SYSCOMMAND, SC_SCREENSAVE,
0) for the standrad-screen-saver, everything works fine, but I dont
want to use this approach.
maybe the system uses different CreateProcess()-params ???
I am using the follwing CreateProcess() call:
::CreateProcess(NULL, cmdLine, NULL, NULL, TRUE,
NORMAL_PRIORITY_CLASS, NULL, NULL, &m_si, &m_pi);
any idea/help on how to solve this issue would be greatly appreciated,
thanx in advance!