From 618ffae80369dbf00d505020234d3fe0c4966e85 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Tue, 3 Apr 2012 15:55:17 +0000 Subject: Process works...sorta...in windows. --- src/stable/process.h | 25 +++++++++++++++++++++---- 1 file changed, 21 insertions(+), 4 deletions(-) (limited to 'src/stable/process.h') diff --git a/src/stable/process.h b/src/stable/process.h index d6282e0..f010633 100644 --- a/src/stable/process.h +++ b/src/stable/process.h @@ -8,6 +8,10 @@ #ifndef BU_PROCESS_H #define BU_PROCESS_H +#ifdef WIN32 +#include +#endif + #include #include @@ -135,10 +139,23 @@ namespace Bu bool childCoreDumped(); private: - int iStdIn; - int iStdOut; - int iStdErr; - pid_t iPid; + class ProcData + { + public: + ProcData(); +#ifdef WIN32 + void *hStdIn; + void *hStdOut; + void *hStdErr; + PROCESS_INFORMATION piProcInfo; +#else + int iStdIn; + int iStdOut; + int iStdErr; + pid_t iPid; +#endif + }; + ProcData pd; int iProcStatus; bool bBlocking; bool bStdOutEos; -- cgit v1.2.3