ok ive looked up some infor on terminateprocess, and found CreateProcess, but the thing is how can i make create process create a function, the thing is
see what my program is doing is writing some info to a file, and while its writing to a file, i want the person to have the ability to STOP the writing after a certian button is selected
plz note: when i tried ExitProcess, my hole program closed
ExitProcess only exits the current process. If you want the application ot give to user a possibility to do something before closing the process, you should only warn the user for example with a messagebox. After that wait some time and close the process if it still exists.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.