Windows Server 2003
1833012 Members
2605 Online
110048 Solutions
New Discussion

How to launch a process from a Service in Windows Server 2003?

 
Tony Varghese
Occasional Advisor

How to launch a process from a Service in Windows Server 2003?

I want to launch a process from a Windows Service in Windows Server.

I have used the following API's for the same ie
system(), CreateProcessA(), ShellExecute(), but the call returns succesfully but the
new process is not launched. The new process can be something like mstsc or mspaint.

The new process is launched in Windows XP and Windows Vista but not in Server 2k3 and 2k8.

I have also set the properties of the process to "Allow service to interact with Desktop".

Could someone please tell me why the process is not being launched and what other interfaces
can be used to launch a process from a service in Server 2003 or 2008?