I'm writing a console tool. Without privileges elevating for UAC support (manifest file), calling this tool from command prompt (cmd.exe) or console file manager (like far.exe) opens it in the same window, writes its output to the same window, etc.
But now, when manifest file was added, a new console windows is created for tool after UAC request dialog, so tool's output is written there, and window closes. No purpose for such tool being console.
How to fix that? What workarounds are there?