Handle well-known account names.
[nssm.git] / service.h
index 6da55f3..68c0147 100644 (file)
--- a/service.h
+++ b/service.h
@@ -1,8 +1,6 @@
 #ifndef SERVICE_H\r
 #define SERVICE_H\r
 \r
-#include <ntsecapi.h>\r
-\r
 /*\r
   MSDN says the commandline in CreateProcess() is limited to 32768 characters\r
   and the application name to MAX_PATH.\r
@@ -19,7 +17,6 @@
 \r
 #define ACTION_LEN 16\r
 \r
-#define NSSM_LOCALSYSTEM_ACCOUNT _T("LocalSystem")\r
 #define NSSM_KERNEL_DRIVER _T("SERVICE_KERNEL_DRIVER")\r
 #define NSSM_FILE_SYSTEM_DRIVER _T("SERVICE_FILE_SYSTEM_DRIVER")\r
 #define NSSM_WIN32_OWN_PROCESS _T("SERVICE_WIN32_OWN_PROCESS")\r
@@ -53,6 +50,7 @@ typedef struct {
   TCHAR *env_extra;\r
   unsigned long env_extralen;\r
   unsigned long priority;\r
+  unsigned long no_console;\r
   TCHAR stdin_path[PATH_LENGTH];\r
   unsigned long stdin_sharing;\r
   unsigned long stdin_disposition;\r
@@ -100,6 +98,7 @@ typedef struct {
   LARGE_INTEGER throttle_duetime;\r
   FILETIME creation_time;\r
   FILETIME exit_time;\r
+  TCHAR *initial_env;\r
 } nssm_service_t;\r
 \r
 void WINAPI service_main(unsigned long, TCHAR **);\r
@@ -124,7 +123,6 @@ int set_service_description(const TCHAR *, SC_HANDLE, TCHAR *);
 int get_service_description(const TCHAR *, SC_HANDLE, unsigned long, TCHAR *);\r
 int get_service_startup(const TCHAR *, SC_HANDLE, const QUERY_SERVICE_CONFIG *, unsigned long *);\r
 int get_service_username(const TCHAR *, const QUERY_SERVICE_CONFIG *, TCHAR **, size_t *);\r
-int grant_logon_as_service(const TCHAR *);\r
 int pre_install_service(int, TCHAR **);\r
 int pre_remove_service(int, TCHAR **);\r
 int pre_edit_service(int, TCHAR **);\r