io.h 1013 B

123456789101112131415161718192021
  1. #ifndef IO_H
  2. #define IO_H
  3. #define NSSM_STDIN_SHARING FILE_SHARE_WRITE
  4. #define NSSM_STDIN_DISPOSITION OPEN_EXISTING
  5. #define NSSM_STDIN_FLAGS FILE_ATTRIBUTE_NORMAL
  6. #define NSSM_STDOUT_SHARING (FILE_SHARE_READ | FILE_SHARE_WRITE)
  7. #define NSSM_STDOUT_DISPOSITION OPEN_ALWAYS
  8. #define NSSM_STDOUT_FLAGS FILE_ATTRIBUTE_NORMAL
  9. #define NSSM_STDERR_SHARING (FILE_SHARE_READ | FILE_SHARE_WRITE)
  10. #define NSSM_STDERR_DISPOSITION OPEN_ALWAYS
  11. #define NSSM_STDERR_FLAGS FILE_ATTRIBUTE_NORMAL
  12. int get_createfile_parameters(HKEY, TCHAR *, TCHAR *, unsigned long *, unsigned long, unsigned long *, unsigned long, unsigned long *, unsigned long);
  13. int set_createfile_parameter(HKEY, TCHAR *, TCHAR *, unsigned long);
  14. HANDLE append_to_file(TCHAR *, unsigned long, SECURITY_ATTRIBUTES *, unsigned long, unsigned long);
  15. void rotate_file(TCHAR *, TCHAR *, unsigned long, unsigned long, unsigned long);
  16. int get_output_handles(nssm_service_t *, HKEY, STARTUPINFO *);
  17. void close_output_handles(STARTUPINFO *);
  18. #endif