mirror of
https://github.com/PurpleI2P/i2pd
synced 2024-11-13 01:20:22 +03:00
31 lines
409 B
C++
31 lines
409 B
C++
#include "Daemon.h"
|
|
|
|
#ifdef _WIN32
|
|
|
|
#include "./Win32/Win32Service.h"
|
|
|
|
|
|
namespace i2p
|
|
{
|
|
namespace util
|
|
{
|
|
bool DaemonWin32::start()
|
|
{
|
|
setlocale(LC_CTYPE, "");
|
|
SetConsoleCP(1251);
|
|
SetConsoleOutputCP(1251);
|
|
setlocale(LC_ALL, "Russian");
|
|
|
|
service_control(isDaemon);
|
|
|
|
return Daemon_Singleton::start();
|
|
}
|
|
|
|
bool DaemonWin32::stop()
|
|
{
|
|
return Daemon_Singleton::stop();
|
|
}
|
|
}
|
|
}
|
|
|
|
#endif |