add last backwards-compatible version
This commit is contained in:
@@ -2,8 +2,6 @@
|
||||
|
||||
#ifdef FOOBAR2000_DESKTOP_WINDOWS
|
||||
|
||||
#include <libPPUI/win32_op.h>
|
||||
|
||||
namespace ProcessUtils {
|
||||
class PipeIO : public stream_reader, public stream_writer {
|
||||
public:
|
||||
@@ -162,7 +160,7 @@ namespace ProcessUtils {
|
||||
try {
|
||||
WIN32_OP( CreateProcess(pfc::stringcvt::string_os_from_utf8(ExePath), NULL, NULL, NULL, TRUE, 0, NULL, NULL, &si, &pi) );
|
||||
} catch(std::exception const & e) {
|
||||
throw failure(PFC_string_formatter() << "Could not start the worker process - " << e);
|
||||
throw failure(pfc::string_formatter() << "Could not start the worker process - " << e);
|
||||
}
|
||||
hProcess = pi.hProcess; _Close(pi.hThread);
|
||||
} catch(...) {
|
||||
@@ -230,7 +228,7 @@ namespace ProcessUtils {
|
||||
static pfc::string_formatter makePipeName() {
|
||||
GUID id;
|
||||
CoCreateGuid (&id);
|
||||
return PFC_string_formatter() << "\\\\.\\pipe\\" << pfc::print_guid(id);
|
||||
return pfc::string_formatter() << "\\\\.\\pipe\\" << pfc::print_guid(id);
|
||||
}
|
||||
|
||||
static void myCreatePipeOut(HANDLE & in, HANDLE & out) {
|
||||
|
||||
Reference in New Issue
Block a user