I made a small service program that is starting as SYSTEM. In it I need to open a file. I'm using the following line that works perfectly fine in a regular Win32 app:
but when I run it from my service the return code is greater than 32 (meaning success), and I can see calc.exe in the task manager but there's nothing on the screen.Code:ShellExecute(NULL, _T(""), _T("calc.exe"), _T(""), _T(""), SW_SHOW);
What am I not doing right?