|
Electroneum
|
Go to the source code of this file.
Macros | |
| #define | SERVICE_NAME "unbound" |
| #define | MSG_GENERIC_SUCCESS ((DWORD)0x20010001L) |
| #define | MSG_GENERIC_INFO ((DWORD)0x60010002L) |
| #define | MSG_GENERIC_WARN ((DWORD)0xA0010003L) |
| #define | MSG_GENERIC_ERR ((DWORD)0xE0010004L) |
Functions | |
| void | wsvc_command_option (const char *wopt, const char *cfgfile, int v, int c) |
| void | wsvc_setup_worker (struct worker *worker) |
| void | wsvc_desetup_worker (struct worker *worker) |
| void | worker_win_stop_cb (int fd, short ev, void *arg) |
| void | wsvc_cron_cb (void *arg) |
This file contains functions to integrate with the windows services API. This means it handles the commandline switches to install and remove the service (via CreateService and DeleteService), it handles the ServiceMain() main service entry point when started as a service, and it handles the Handler[_ex]() to process requests to the service (such as start and stop and status).
Definition in file win_svc.h.
| #define MSG_GENERIC_ERR ((DWORD)0xE0010004L) |
| #define MSG_GENERIC_INFO ((DWORD)0x60010002L) |
| #define MSG_GENERIC_SUCCESS ((DWORD)0x20010001L) |
| #define MSG_GENERIC_WARN ((DWORD)0xA0010003L) |
| #define SERVICE_NAME "unbound" |
| void worker_win_stop_cb | ( | int | fd, |
| short | ev, | ||
| void * | arg | ||
| ) |
windows worker stop event callback handler
| void wsvc_command_option | ( | const char * | wopt, |
| const char * | cfgfile, | ||
| int | v, | ||
| int | c | ||
| ) |
Handle commandline service for windows.
| wopt | windows option string (install, remove, service). |
| cfgfile | configfile to open (default or passed with -c). |
| v | amount of commandline verbosity added with -v. |
| c | true if cfgfile was set by commandline -c option. |
| void wsvc_cron_cb | ( | void * | arg | ) |
windows cron timer callback handler
| void wsvc_desetup_worker | ( | struct worker * | worker | ) |
Desetup lead worker events.
| worker | the worker |
| void wsvc_setup_worker | ( | struct worker * | worker | ) |
Setup lead worker events.
| worker | the worker |