
sharing variables accros processes & process starting
Yes. An NT service can launch new processes. By default they will run under
the same account (e.g., LocalSystem) that the service is running under. To run
under a different account it will need access to credentials for that account
(e.g., a token), and use an API such as CreateProcessAsUser.
There's a few different mechanisms to pass data to child processes:
memory-mapped files, environment variables, inherited object handles,
WM_COPYDATA, anonymous pipes. "Best" depends on a number of factors (speed,
security, ease of coding, ...).
Quote:
> hi all
> I want to have an NT service fire up certain processes depending upon some
> specific characteristics.
> I have some questions i hope some of you can answer.
> Can an NT service start either a win32 application, or a win32 console
> application, when no user is logged on.
> secondly, what is the best way for me to pass some data, or a pointer to
> some data from the NT service to the process is creates?
> tia
> mike
-- Aaron
---------------------
Aaron J Margosis
Fortress-NT - NT Workstation/Server Security Utility:
http://www.sunbelt-software.com/fortress.htm
ScrnSaveSwitch/Plus - Screen Saver Control Utility:
http://www.ssswitch.com