registry.h 863 B

12345678910111213141516171819202122
  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. int create_messages();
  11. int create_parameters(char *, char *, char *, char *);
  12. int create_exit_action(char *, const char *);
  13. int set_environment(char *, HKEY, char **);
  14. int expand_parameter(HKEY, char *, char *, unsigned long, bool);
  15. int get_number(HKEY, char *, unsigned long *, bool);
  16. int get_number(HKEY, char *, unsigned long *);
  17. int get_parameters(char *, char *, int, char *, int, char *, int, char **, unsigned long *);
  18. int get_exit_action(char *, unsigned long *, unsigned char *, bool *);
  19. #endif