STARTUPINFO sti; PROCESS_INFORMATION processInfo; ZeroMemory( &sti, sizeof(sti) ); sti.cb = sizeof(sti); ZeroMemory( &processInfo, sizeof(PROCESS_INFORMATION) ); BOOL bResult = CreateProcess(NULL, (LPTSTR)(LPCTSTR)m_strTranscoderFilePath, NULL, NULL, FALSE, 0, NULL, NULL, &sti, &processInfo); WaitForSingleObject(processInfo.hProcess, INFINITE);