/* Write the messages to the output handle. Frequently hOut
will be standard out or error, but this is not required.
Use WriteConsole (to handle Unicode) first, as the
output will normally be the console. If that fails, use WriteFile.
hOut: Handle for output file.
... : Variable argument list containing TCHAR strings.
The list must be terminated with NULL. */
static BOOL PrintStrings (HANDLE hOut, ...)
{
DWORD MsgLen, Count;
LPCTSTR pMsg;
va_list pMsgList; /* Current message string. */