registry.h 668 B

123456789101112131415161718
  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_EXIT "AppExit"
  8. #define NSSM_REG_THROTTLE "AppThrottle"
  9. int create_messages();
  10. int create_parameters(char *, char *, char *, char *);
  11. int create_exit_action(char *, const char *);
  12. int expand_parameter(HKEY, char *, char *, unsigned long, bool);
  13. int get_parameters(char *, char *, int, char *, int, char *, int, unsigned long *);
  14. int get_exit_action(char *, unsigned long *, unsigned char *, bool *);
  15. #endif