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.
25 lines
426 B
C++
25 lines
426 B
C++
#include <Windows.h>
|
|
#include <tchar.h>
|
|
#include "common\debug.h"
|
|
|
|
#include "Service.h"
|
|
|
|
int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, PSTR szCmdParam, int iCmdShow)
|
|
{
|
|
#ifdef DEBUG
|
|
AllocConsole();
|
|
#endif
|
|
|
|
Service *svc = svc->Get();
|
|
if (!svc->Initialize())
|
|
{
|
|
DEBUG_ERROR("Failed to initialize service");
|
|
return -1;
|
|
}
|
|
|
|
while (true)
|
|
svc->Process();
|
|
|
|
svc->DeInitialize();
|
|
return 0;
|
|
} |