Hi to all !
Well, I have been looking for some time for the answer for this question. I haven't found answer in Delphi or Windows SDK Help files or even on the internet after some searching...
Is there an easy (or hard) and efficient (or not) way for killing/terminating a procedure (or action from the action menu), which is running at that moment, from another procedure/action?
I know there are procedures for killing processes/threads, but my procedures/actions would be from the same exe/process, and, basically, I would like to have e.g. two buttons, presing one would start some action, and pressing the second would stop the current action right then, and would set everything to the state before action actually started...
Any help will be highly appreciated...
Well, I have been looking for some time for the answer for this question. I haven't found answer in Delphi or Windows SDK Help files or even on the internet after some searching...
Is there an easy (or hard) and efficient (or not) way for killing/terminating a procedure (or action from the action menu), which is running at that moment, from another procedure/action?
I know there are procedures for killing processes/threads, but my procedures/actions would be from the same exe/process, and, basically, I would like to have e.g. two buttons, presing one would start some action, and pressing the second would stop the current action right then, and would set everything to the state before action actually started...
Any help will be highly appreciated...