2009-08-03 20:55:00 +00:00
|
|
|
// This file is part of BOINC.
|
|
|
|
// http://boinc.berkeley.edu
|
|
|
|
// Copyright (C) 2008 University of California
|
2004-01-19 20:53:40 +00:00
|
|
|
//
|
2009-08-03 20:55:00 +00:00
|
|
|
// BOINC is free software; you can redistribute it and/or modify it
|
|
|
|
// under the terms of the GNU Lesser General Public License
|
|
|
|
// as published by the Free Software Foundation,
|
|
|
|
// either version 3 of the License, or (at your option) any later version.
|
|
|
|
//
|
|
|
|
// BOINC is distributed in the hope that it will be useful,
|
|
|
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
|
|
|
// See the GNU Lesser General Public License for more details.
|
|
|
|
//
|
|
|
|
// You should have received a copy of the GNU Lesser General Public License
|
|
|
|
// along with BOINC. If not, see <http://www.gnu.org/licenses/>.
|
2004-01-19 20:53:40 +00:00
|
|
|
|
2009-08-03 20:55:00 +00:00
|
|
|
#ifndef _SYSMON_WIN_H
|
|
|
|
#define _SYSMON_WIN_H
|
2004-01-19 20:53:40 +00:00
|
|
|
|
|
|
|
#if defined(_WIN32) && defined(_CONSOLE)
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2009-08-03 21:46:16 +00:00
|
|
|
extern int initialize_system_monitor(int argc, char** argv);
|
|
|
|
extern int initialize_service_dispatcher(int argc, char** argv);
|
|
|
|
extern int cleanup_system_monitor();
|
2004-04-29 00:57:26 +00:00
|
|
|
|
2009-08-03 20:55:00 +00:00
|
|
|
// Internal name of the service
|
2004-01-19 20:53:40 +00:00
|
|
|
#define SZSERVICENAME "BOINC"
|
|
|
|
|
2009-08-03 20:55:00 +00:00
|
|
|
// Displayed name of the service
|
2004-01-19 20:53:40 +00:00
|
|
|
#define SZSERVICEDISPLAYNAME "BOINC"
|
|
|
|
|
2009-08-03 20:55:00 +00:00
|
|
|
// Displayed description of the service
|
2004-01-19 20:53:40 +00:00
|
|
|
#define SZSERVICEDESCRIPTION "Berkeley Open Infrastructure for Network Computing"
|
|
|
|
|
2004-04-29 00:57:26 +00:00
|
|
|
// Service Accepted Actions
|
|
|
|
#define SERVICE_ACCEPTED_ACTIONS ( \
|
|
|
|
SERVICE_ACCEPT_STOP | \
|
|
|
|
SERVICE_ACCEPT_PAUSE_CONTINUE | \
|
|
|
|
SERVICE_ACCEPT_SHUTDOWN )
|
|
|
|
|
2004-01-19 20:53:40 +00:00
|
|
|
// Service Control Manager Routines
|
2009-08-03 21:46:16 +00:00
|
|
|
extern VOID WINAPI BOINCServiceMain(DWORD dwArgc, LPTSTR *lpszArgv);
|
|
|
|
extern VOID WINAPI BOINCServiceCtrl(DWORD dwCtrlCode);
|
|
|
|
extern BOOL ReportStatus(DWORD dwCurrentState, DWORD dwWin32ExitCode, DWORD dwWaitHint);
|
|
|
|
extern VOID LogEventErrorMessage(LPTSTR lpszMsg);
|
|
|
|
extern VOID LogEventWarningMessage(LPTSTR lpszMsg);
|
|
|
|
extern VOID LogEventInfoMessage(LPTSTR lpszMsg);
|
2004-01-19 20:53:40 +00:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|