Am working on VC++ application
Its a background application that runs on background even on PC restart
Am trying to open the application as say - some antivirus like mcafee, which runs on background but if we click on the exe icon it comes up front of the screen
WinExec("application.exe", SW_SHOW);
exit(1);
Does anyone can help me ?
Sounds like your application is a good candidate for a Windows Service. A Service runs in the background with no GUI, starts when Windows starts, can re-start automatically if it fails, etc. For a GUI, you would write a separate application which would attach to the Service via some type of inter-process-communication for the purposes of configuration/control.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.