mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-10 08:38:20 +00:00
01b10b3ee1
NvFBC will not start when running as a service, likely intentional security of the API to prevent it from being abused.
36 lines
524 B
C++
36 lines
524 B
C++
#pragma once
|
|
|
|
#define W32_LEAN_AND_MEAN
|
|
#include <Windows.h>
|
|
#include <stdbool.h>
|
|
|
|
#include "IVSHMEM.h"
|
|
#include "ICapture.h"
|
|
|
|
class Service
|
|
{
|
|
public:
|
|
static Service * Get()
|
|
{
|
|
if (!m_instance)
|
|
m_instance = new Service();
|
|
return m_instance;
|
|
}
|
|
|
|
bool Initialize();
|
|
void DeInitialize();
|
|
bool Process();
|
|
|
|
private:
|
|
static Service * m_instance;
|
|
|
|
Service();
|
|
~Service();
|
|
|
|
bool m_initialized;
|
|
IVSHMEM * m_ivshmem;
|
|
HANDLE m_readyEvent;
|
|
ICapture * m_capture;
|
|
void * m_memory;
|
|
};
|