I am creating a windows service with Delphi. What I need to do is open the program. In my code I use WinExec(aux,SW_SHOWNORMAL); . When I start and start the service, nothing happens, but when I look in the TaskManager, the program that my service should open is in the list, and SYSTEM appears in the Username column.
So, the program opens, but it does not appear on the screen. I did a research on Google and found some features like CreateProcess , but I don't know how to use it. What am I doing wrong?
Sorry for my bad english.
source share