|
|
@ -132,7 +132,7 @@ void I2PService::Start(DWORD dwArgc, PSTR *pszArgv) |
|
|
|
} |
|
|
|
} |
|
|
|
catch (DWORD dwError) |
|
|
|
catch (DWORD dwError) |
|
|
|
{ |
|
|
|
{ |
|
|
|
LogPrint("Win32Service Start", dwError); |
|
|
|
LogPrint(eLogError, "Win32Service Start", dwError); |
|
|
|
|
|
|
|
|
|
|
|
SetServiceStatus(SERVICE_STOPPED, dwError); |
|
|
|
SetServiceStatus(SERVICE_STOPPED, dwError); |
|
|
|
} |
|
|
|
} |
|
|
@ -147,7 +147,7 @@ void I2PService::Start(DWORD dwArgc, PSTR *pszArgv) |
|
|
|
|
|
|
|
|
|
|
|
void I2PService::OnStart(DWORD dwArgc, PSTR *pszArgv) |
|
|
|
void I2PService::OnStart(DWORD dwArgc, PSTR *pszArgv) |
|
|
|
{ |
|
|
|
{ |
|
|
|
LogPrint("Win32Service in OnStart", |
|
|
|
LogPrint(eLogInfo, "Win32Service in OnStart", |
|
|
|
EVENTLOG_INFORMATION_TYPE); |
|
|
|
EVENTLOG_INFORMATION_TYPE); |
|
|
|
|
|
|
|
|
|
|
|
Daemon.start(); |
|
|
|
Daemon.start(); |
|
|
@ -186,7 +186,7 @@ void I2PService::Stop() |
|
|
|
} |
|
|
|
} |
|
|
|
catch (DWORD dwError) |
|
|
|
catch (DWORD dwError) |
|
|
|
{ |
|
|
|
{ |
|
|
|
LogPrint("Win32Service Stop", dwError); |
|
|
|
LogPrint(eLogInfo, "Win32Service Stop", dwError); |
|
|
|
|
|
|
|
|
|
|
|
SetServiceStatus(dwOriginalState); |
|
|
|
SetServiceStatus(dwOriginalState); |
|
|
|
} |
|
|
|
} |
|
|
|