26 lines
490 B
C++
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;
|
|
}
|