#include #include int wmain(int argc, wchar_t **argv) { PDWORD cChars = NULL; HANDLE std = GetStdHandle(STD_OUTPUT_HANDLE); if (std == INVALID_HANDLE_VALUE) { wprintf(L"Cannot retrieve standard output handle\n (%d)", GetLastError()); } WriteConsoleW(std, argv[1], wcslen(argv[1]), cChars, NULL); return EXIT_SUCCESS; }