Files
Work/CapServer/hold/Main.cpp
2024-08-07 09:12:07 -04:00

26 lines
490 B
C++

#include <common/windows.hpp>
#include <common/string.hpp>
#include <CapServer/MainApplication.hpp>
int handlerRoutine(DWORD ctrlType);
bool running=true;
MainApplication mainApplication;
void main(int argc,char **argv)
{
mainApplication.run(argc,argv);
}
int handlerRoutine(DWORD eventType) // this is connected ad-hoc to generic server, could be cleaner
{
if(CTRL_C_EVENT==eventType)
{
::printf("Caught Ctrl-C...\n");
running=false;
return true;
}
return false;
}