LookingGlass/host/main.cpp

25 lines
426 B
C++
Raw Normal View History

2017-10-31 09:20:37 +00:00
#include <Windows.h>
#include <tchar.h>
2017-10-31 13:51:53 +00:00
#include "common\debug.h"
2017-10-31 09:20:37 +00:00
#include "Service.h"
2017-10-31 09:20:37 +00:00
int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, PSTR szCmdParam, int iCmdShow)
2017-10-31 09:20:37 +00:00
{
#ifdef DEBUG
AllocConsole();
#endif
2017-10-31 09:20:37 +00:00
Service *svc = svc->Get();
if (!svc->Initialize())
{
DEBUG_ERROR("Failed to initialize service");
return -1;
}
while (true)
svc->Process();
svc->DeInitialize();
return 0;
}