mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-08-09 20:24:14 +00:00
[host] simplify capture logic and fix re-init bug
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user