dnscrypt-proxy 1.4.0
[tomato.git] / release / src / router / dnscrypt / src / proxy / windows_service.h
blob958b971d91f082c223b8127707edf1482223e1d2
2 #ifndef __WINDOWS_SERVICE_H__
3 #define __WINDOWS_SERVICE_H__ 1
5 #ifndef WINDOWS_SERVICE_NAME
6 # define WINDOWS_SERVICE_NAME "dnscrypt-proxy"
7 #endif
9 #ifndef WINDOWS_SERVICE_REGISTRY_PARAMETERS_KEY
10 # define WINDOWS_SERVICE_REGISTRY_PARAMETERS_KEY \
11 "SYSTEM\\CurrentControlSet\\Services\\" \
12 WINDOWS_SERVICE_NAME "\\Parameters"
13 #endif
15 typedef enum WinOption_ {
16 WIN_OPTION_INSTALL = 256,
17 WIN_OPTION_REINSTALL,
18 WIN_OPTION_UNINSTALL
19 } WinOption;
21 int windows_service_install(ProxyContext * const proxy_context);
22 int windows_service_uninstall(void);
24 #endif