I have strange problem with the API CreateProcess. I have an ATL windows service and want to run a GUI MFC application from it using CreateProcess dependent on a pacific conditions.
The problem is the application is run successfully but in background, how can I show it I try many things in STARTUPINFO structure like to use SW_SHOW with STARTF_USESHOWWINDOW, but nothing happen also.
Thank you so much Igor. I think it can work I will try it using a hard coded user information. But I have one more question regarding the MSDN sample.
How to extract the user information like user name, password and domain name using APIs to pass it to logon function.
Thanks so much