As a follow up discussion to the following question here.
The output console to dump is handled by a generic method
HRESULT DumptoOutputConsole(const v