This commit is contained in:
2024-08-07 09:12:07 -04:00
parent ca445435a0
commit fdfadd5c7e
1021 changed files with 73601 additions and 0 deletions

25
CapServer/Main.cpp Normal file
View File

@@ -0,0 +1,25 @@
#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;
}