38 lines
1.4 KiB
C
38 lines
1.4 KiB
C
|
/*
|
||
|
* Copyright (C) 2021-2022 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
|
||
|
* Copyright (C) 2008-2010 Gianluigi Tiesi <sherpya@netfarm.it>
|
||
|
*
|
||
|
* Authors: Gianluigi Tiesi
|
||
|
*
|
||
|
* This program is free software; you can redistribute it and/or modify
|
||
|
* it under the terms of the GNU General Public License version 2 as
|
||
|
* published by the Free Software Foundation.
|
||
|
*
|
||
|
* This program 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 General Public License for more details.
|
||
|
*
|
||
|
* You should have received a copy of the GNU General Public License
|
||
|
* along with this program; if not, write to the Free Software
|
||
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
|
||
|
* MA 02110-1301, USA.
|
||
|
*/
|
||
|
|
||
|
#ifndef __SERVICE_H
|
||
|
#define __SERVICE_H
|
||
|
|
||
|
#include <platform.h>
|
||
|
#include <winsvc.h>
|
||
|
|
||
|
int svc_uninstall(const char *name, int verbose);
|
||
|
int svc_install(const char *name, const char *dname, const char *desc);
|
||
|
static void svc_getcpvalue(const char *name);
|
||
|
void svc_register(const char *name);
|
||
|
void svc_ready(void);
|
||
|
int svc_checkpoint(const char *type, const char *name, unsigned int custom, void *context);
|
||
|
void WINAPI ServiceCtrlHandler(DWORD code);
|
||
|
BOOL WINAPI cw_stop_ctrl_handler(DWORD CtrlType);
|
||
|
void WINAPI ServiceMain(DWORD dwArgc, LPSTR *lpszArgv);
|
||
|
|
||
|
#endif
|