Normaly, every service ist started, say spawned, from services.exe.
The environment, say all machine variables, is inherited from this
"father"-process. If your self-written service-process doesn't handle
"WININICHANGES", that is default behavior, the only way to change
the environment for that proces is to restart services.exe. Services.exe
is restartet during machine reboot.
Any change you made, maybe written into the registry, but this
reources is'nt read by the process services.exe again and again.
Any environment you see, e.g. in a dos cmd-box, is a mixture
of the values in the registry: machine-values and user-values.
Those values are normaly inherited or rebuild during process-creation.
Hope it's helpfull.
"Jeffrey Meng" < XXXX@XXXXX.COM > schrieb im Newsbeitrag