Problem:
In MFC application on Windows 7, we call windows API CreateProcess() to execute following command,
"\"C:\\Windows\\System32\\runas.exe\" \"/user:Tom\" \"/savecred\" \"cmd /c start /MIN /b\\\"abc\\\" Notepad.exe"
This command invokes 2 pop-up dos windows. We need to run above command in silent mode i.e, without popup windows.
Popping of these dos windows seems unavoidable, so we hide these dos windows on popping.
Issue is with “Windows Aero” theme above works, and with “Windows classic”(Non-Aero) theme dos windows hides but re-paint issue comes.
After investigation we found following by Microsoft,
Any help/comment to words this painting issue is welcome.