[host] simplify capture logic and fix re-init bug

This commit is contained in:
Geoffrey McRae
2018-11-02 21:37:26 +11:00
parent 9f67f42f94
commit d235d076c4
3 changed files with 144 additions and 125 deletions

View File

@@ -28,6 +28,13 @@ Place, Suite 330, Boston, MA 02111-1307 USA
#define MAX_FRAMES 2
enum ProcessStatus
{
PROCESS_STATUS_OK,
PROCESS_STATUS_RETRY,
PROCESS_STATUS_ERROR
};
class Service
{
public:
@@ -40,7 +47,7 @@ public:
bool Initialize(ICapture * captureDevice);
void DeInitialize();
bool Process();
ProcessStatus Process();
private:
bool InitPointers();
@@ -52,6 +59,8 @@ private:
Service();
~Service();
bool ReInit(volatile char * flags);
bool m_initialized;
bool m_running;
DWORD m_consoleSessionID;