ntmain.h 641 B

123456789101112131415161718192021222324252627282930
  1. /* Copyright (c) 2001 Matej Pfajfar.
  2. * Copyright (c) 2001-2004, Roger Dingledine.
  3. * Copyright (c) 2004-2006, Roger Dingledine, Nick Mathewson.
  4. * Copyright (c) 2007-2012, The Tor Project, Inc. */
  5. /* See LICENSE for licensing information */
  6. /**
  7. * \file ntmain.h
  8. * \brief Header file for ntmain.c.
  9. **/
  10. #ifndef _TOR_NTMAIN_H
  11. #define _TOR_NTMAIN_H
  12. #ifdef _WIN32
  13. #if !defined (WINCE)
  14. #define NT_SERVICE
  15. #endif
  16. #endif
  17. #ifdef NT_SERVICE
  18. int nt_service_parse_options(int argc, char **argv, int *should_exit);
  19. int nt_service_is_stopping(void);
  20. void nt_service_set_state(DWORD state);
  21. #else
  22. #define nt_service_is_stopping() 0
  23. #endif
  24. #endif