|
32 | 32 | * |
33 | 33 | * Type of services |
34 | 34 | */ |
35 | | -define("WIN32_SERVICE_KERNEL_DRIVER", 0x00000001, true); /* 0x00000001 Driver service. */ |
36 | | -define("WIN32_SERVICE_FILE_SYSTEM_DRIVER", 0x00000002, true); /* 0x00000002 File system driver service. */ |
37 | | -define("WIN32_SERVICE_ADAPTER", 0x00000004, true); /* 0x00000004 Reserved. */ |
38 | | -define("WIN32_SERVICE_RECOGNIZER_DRIVER", 0x00000008, true); /* 0x00000008 Reserved. */ |
| 35 | +//define("WIN32_SERVICE_KERNEL_DRIVER", 0x00000001, true); /* 0x00000001 Driver service. */ |
| 36 | +//define("WIN32_SERVICE_FILE_SYSTEM_DRIVER", 0x00000002, true); /* 0x00000002 File system driver service. */ |
| 37 | +//define("WIN32_SERVICE_ADAPTER", 0x00000004, true); /* 0x00000004 Reserved. */ |
| 38 | +//define("WIN32_SERVICE_RECOGNIZER_DRIVER", 0x00000008, true); /* 0x00000008 Reserved. */ |
39 | 39 | define("WIN32_SERVICE_WIN32_OWN_PROCESS", 0x00000010, true); /* 0x00000010 Service that runs in its own process. */ |
40 | | -define("WIN32_SERVICE_WIN32_SHARE_PROCESS", 0x00000020, true); /* 0x00000020 Service that shares a process with one or more other services. */ |
| 40 | +//define("WIN32_SERVICE_WIN32_SHARE_PROCESS", 0x00000020, true); /* 0x00000020 Service that shares a process with one or more other services. */ |
41 | 41 | define("WIN32_SERVICE_INTERACTIVE_PROCESS", 0x00000100, true); /* 0x00000100 The service can interact with the desktop. */ |
42 | 42 | define("WIN32_SERVICE_WIN32_OWN_PROCESS_INTERACTIVE", 0x00000110, true); /* 0x00000110 Service that runs in its own process and interacts with the desktop. */ |
43 | 43 |
|
|
135 | 135 | define("WIN32_SERVICE_ERROR_CRITICAL", 0x00000003, true); /* 0x00000003 The startup program logs the error in the event log, if possible. |
136 | 136 | If the last-known-good configuration is being started, the startup operation fails. Otherwise, the system is restarted with the last-known good configuration. */ |
137 | 137 |
|
138 | | - |
139 | | - |
140 | | - |
141 | 138 | /* dwServiceFlags */ |
142 | 139 | define("WIN32_SERVICE_RUNS_IN_SYSTEM_PROCESS", 0x00000001, true); /* 0x00000001 The service runs in a system process that must always be running. */ |
143 | 140 |
|
144 | 141 |
|
145 | | - |
146 | | - |
147 | 142 | /* Error constants generated in communication with the SCM */ |
148 | 143 | define("WIN32_ERROR_ACCESS_DENIED", 0x00000005, true); /* 0x00000005 The handle to the SCM database does not have the appropriate access rights. */ |
149 | 144 | define("WIN32_ERROR_CALL_NOT_IMPLEMENTED", 0x00000078, true); /* 0x00000028 This function is not supported. */ |
|
175 | 170 | define("WIN32_ERROR_SERVICE_NOT_ACTIVE", 0x00000426, true); /* 0x00000426 The service has not been started. */ |
176 | 171 | define("WIN32_ERROR_SERVICE_REQUEST_TIMEOUT", 0x0000041D, true); /* 0x0000041D The process for the service was started, but it did not call StartServiceCtrlDispatcher, or the thread that called StartServiceCtrlDispatcher may be blocked in a control handler function. */ |
177 | 172 | define("WIN32_ERROR_SHUTDOWN_IN_PROGRESS", 0x0000045B, true); /* 0x0000045B The system is shutting down; this function cannot be called. */ |
| 173 | +define("ERROR_SERVICE_SPECIFIC_ERROR", 0x0000042A, true); /* 0x0000042A The service has returned a service-specific error code. */ |
178 | 174 | define("WIN32_NO_ERROR", 0x00000000, true); /* 0x00000000 No error. */ |
179 | 175 |
|
180 | 176 |
|
|
187 | 183 | define("WIN32_IDLE_PRIORITY_CLASS", 0x00000040, true); /* 0x00000040 Process whose threads run only when the system is idle. The threads of the process are preempted by the threads of any process running in a higher priority class. An example is a screen saver. The idle-priority class is inherited by child processes. */ |
188 | 184 | define("WIN32_NORMAL_PRIORITY_CLASS", 0x00000020, true); /* 0x00000020 Process with no special scheduling needs. */ |
189 | 185 | define("WIN32_REALTIME_PRIORITY_CLASS", 0x00000100, true); /* 0x00000100 Process that has the highest possible priority. The threads of the process preempt the threads of all other processes, including operating system processes performing important tasks. For example, a real-time process that executes for more than a very brief interval can cause disk caches not to flush or cause the mouse to be unresponsive. */ |
| 186 | + |
| 187 | +/* Win32 Recovery Constants */ |
| 188 | +define("WIN32_SC_ACTION_NONE", 0x00000000, true); /* 0x00000000 No Action */ |
| 189 | +define("WIN32_SC_ACTION_REBOOT", 0x00000001, true); /* 0x00000001 Reboot the computer */ |
| 190 | +define("WIN32_SC_ACTION_RESTART", 0x00000002, true); /* 0x00000002 Restart the service */ |
| 191 | +define("WIN32_SC_ACTION_RUN_COMMAND", 0x00000003, true); /* 0x00000003 Run the command */ |
| 192 | + |
| 193 | +/* Win32 Informations Keys */ |
| 194 | +define("INFO_SERVICE", "service", true); |
| 195 | +define("INFO_DISPLAY", "display", true); |
| 196 | +define("INFO_USER", "user", true); |
| 197 | +define("INFO_PASSWORD", "password", true); |
| 198 | +define("INFO_PATH", "path", true); |
| 199 | +define("INFO_PARAMS", "params", true); |
| 200 | +define("INFO_DESCRIPTION", "description", true); |
| 201 | +define("INFO_START_TYPE", "start_type", true); |
| 202 | +define("WIN32_INFO_LOAD_ORDER", "load_order", true); |
| 203 | +define("WIN32_INFO_SVC_TYPE", "svc_type", true); |
| 204 | +define("WIN32_INFO_ERROR_CONTROL", "error_control", true); |
| 205 | +define("WIN32_INFO_DELAYED_START", "delayed_start", true); |
| 206 | +define("WIN32_INFO_BASE_PRIORITY", "base_priority", true); |
| 207 | +define("WIN32_INFO_DEPENDENCIES", "dependencies", true); |
| 208 | +define("WIN32_INFO_RECOVERY_DELAY", "recovery_delay", true); |
| 209 | +define("WIN32_INFO_RECOVERY_ACTION_1", "recovery_action_1", true); |
| 210 | +define("WIN32_INFO_RECOVERY_ACTION_2", "recovery_action_2", true); |
| 211 | +define("WIN32_INFO_RECOVERY_ACTION_3", "recovery_action_3", true); |
| 212 | +define("WIN32_INFO_RECOVERY_RESET_PERIOD", "recovery_reset_period", true); |
| 213 | +define("WIN32_INFO_RECOVERY_ENABLED", "recovery_enabled", true); |
| 214 | +define("WIN32_INFO_RECOVERY_REBOOT_MSG", "recovery_reboot_msg", true); |
| 215 | +define("WIN32_INFO_RECOVERY_COMMAND", "recovery_command", true); |
0 commit comments