I want to terminate/shut down an external program from C++ after printing a document. When printing a PDF document the program Adobe Reader remains open after printing even if the documents itself are closed.
The code snipplet:
WinAPI::shellExecute(DIRECTORY + "\\" + filename, '', '', "Print");
I have read about WM_QUIT(), Application.Quit(), TerminateApp() and TerminateProcess(), but all seams to require an ID of the opened application. As far as I can see, there is no such ID to be fetched.
Any ideas?
*This post is locked for comments
I have the same question (0)