registry.h 1.4 KB

1234567891011121314151617181920212223242526272829303132
  1. #ifndef REGISTRY_H
  2. #define REGISTRY_H
  3. #define NSSM_REGISTRY "SYSTEM\\CurrentControlSet\\Services\\%s\\Parameters"
  4. #define NSSM_REG_EXE "Application"
  5. #define NSSM_REG_FLAGS "AppParameters"
  6. #define NSSM_REG_DIR "AppDirectory"
  7. #define NSSM_REG_ENV "AppEnvironment"
  8. #define NSSM_REG_EXIT "AppExit"
  9. #define NSSM_REG_THROTTLE "AppThrottle"
  10. #define NSSM_REG_STOP_METHOD_SKIP "AppStopMethodSkip"
  11. #define NSSM_REG_STDIN "AppStdin"
  12. #define NSSM_REG_STDOUT "AppStdout"
  13. #define NSSM_REG_STDERR "AppStderr"
  14. #define NSSM_REG_STDIO_SHARING "ShareMode"
  15. #define NSSM_REG_STDIO_DISPOSITION "CreationDisposition"
  16. #define NSSM_REG_STDIO_FLAGS "FlagsAndAttributes"
  17. #define NSSM_STDIO_LENGTH 29
  18. int create_messages();
  19. int create_parameters(char *, char *, char *, char *);
  20. int create_exit_action(char *, const char *);
  21. int set_environment(char *, HKEY, char **);
  22. int expand_parameter(HKEY, char *, char *, unsigned long, bool, bool);
  23. int expand_parameter(HKEY, char *, char *, unsigned long, bool);
  24. int get_number(HKEY, char *, unsigned long *, bool);
  25. int get_number(HKEY, char *, unsigned long *);
  26. void override_milliseconds(char *, HKEY, char *, unsigned long *, unsigned long, unsigned long);
  27. int get_parameters(char *, char *, unsigned long, char *, unsigned long, char *, unsigned long, char **, unsigned long *, unsigned long *, STARTUPINFO *);
  28. int get_exit_action(char *, unsigned long *, unsigned char *, bool *);
  29. #endif