Мне удалось использовать ShellExecute в VС++ для запуска документа. Теперь я хочу запустить инструмент командной строки, который получает некоторые аргументы, и запускаться в фоновом режиме (как скрытый, не сведенный к минимуму) и блокировать мой поток программы, чтобы я мог дождаться его завершения. Как изменить строку командной строки:
ShellExecute(NULL,"open",FULL_PATH_TO_CMD_LINE_TOOL,ARGUMENTS,NULL,SW_HIDE);
Проблема заключается в том, что у меня есть инструмент, который преобразует html в pdf, и я хочу, чтобы после завершения работы инструмента aka pdf был готов, чтобы другой ShellExecute просмотрел его.