CreateProcessWithLogonW() problems - Need to launch sub-processes with the same user
I have a Windows executable that is launched from within a service by calling CreateProcessWithLogonW() with a set of specfied user details. This works fine and the process starts as expected. However, when this process tries to launch other processes itself, currently just using CreateProcess() these start then die straight away - they are executables that require desktop access. After reading up on Microsoft's article on CreateProcess() - http://msdn.microsoft.com/en-us/library/ms682425(VS.85).aspx I think can see why this is happening and it makes sense to an extent. CreateProcess() knows