When we run our exe from any service or through any background process, it won't interact with the applications running in the foreground, I mean launched when the user is logged in or in GUI mode.
Let's say, the onedrive sync app can't be detected from the exe we created and running it in background.
I tried both options below.
Any Idea how to interact with foreground processes.
Present as a temporary solution I kept my exe in the windows startup.As the startup won't work till the user is logged in, I have enabled AutoLogon.But AutoLogon is not acceptable with the security team, so I need to search for other solution.