diff --git a/ext/libexecstream/win/exec-stream-impl.cpp b/ext/libexecstream/win/exec-stream-impl.cpp index 42b8805c0..0add2045d 100644 --- a/ext/libexecstream/win/exec-stream-impl.cpp +++ b/ext/libexecstream/win/exec-stream-impl.cpp @@ -166,9 +166,11 @@ void exec_stream_t::start( std::string const & program, std::string const & argu STARTUPINFO si; ZeroMemory( &si, sizeof( si ) ); si.cb=sizeof( si ); + si.wShowWindow = SW_HIDE; + si.dwFlags = STARTF_USESHOWWINDOW; PROCESS_INFORMATION pi; ZeroMemory( &pi, sizeof( pi ) ); - if( !CreateProcess( 0, const_cast< char * >( command.c_str() ), 0, 0, TRUE, 0, 0, 0, &si, &pi ) ) { + if( !CreateProcess( 0, const_cast< char * >( command.c_str() ), 0, 0, TRUE, DETACHED_PROCESS, 0, 0, &si, &pi ) ) { throw os_error_t( "exec_stream_t::start: CreateProcess failed.\n command line was: "+command ); }