Back to index

tor  0.2.3.19-rc
ntmain.h
Go to the documentation of this file.
00001 /* Copyright (c) 2001 Matej Pfajfar.
00002  * Copyright (c) 2001-2004, Roger Dingledine.
00003  * Copyright (c) 2004-2006, Roger Dingledine, Nick Mathewson.
00004  * Copyright (c) 2007-2012, The Tor Project, Inc. */
00005 /* See LICENSE for licensing information */
00006 
00012 #ifndef _TOR_NTMAIN_H
00013 #define _TOR_NTMAIN_H
00014 
00015 #ifdef _WIN32
00016 #if !defined (WINCE)
00017 #define NT_SERVICE
00018 #endif
00019 #endif
00020 
00021 #ifdef NT_SERVICE
00022 int nt_service_parse_options(int argc, char **argv, int *should_exit);
00023 int nt_service_is_stopping(void);
00024 void nt_service_set_state(DWORD state);
00025 #else
00026 #define nt_service_is_stopping() 0
00027 #endif
00028 
00029 #endif
00030