i want a program that can run a application, for example, notepad.exe.
After i run it, i want to close this Application...
Therefore, i called the function WinExec("notepad.exe", SM_SHOW);
but my question is: after i call this function, is there any way to close the application that i have just opened?
Please help me~ thanks ^_^