How can I simulate a key press event (Esc) on a console
application started using CreateProcess?
I have a dll, that calls an .exe
(like the fem.exe example discussed previously)
I want to limit the run time, by using WaitForSingleObject.
Ok, that exe can be stopped nicely by pressing Esc.
If I just kill the process, the output file is not finished.
How can I "press Esc" from my calling DLL?