Hypoviax
asked on
Pausing another program
I have noticed with programs such as Zone Alarm that the program has the ability to effectively pause another program in its tracks, or prevent it from loading. I was wondering how this can be achieved in Delphi. I do not want the 'other' program terminated just paused. If i decide it to be 'good' then allow the program to continue from where it was paused.
Thanks,
Hypoviax
Thanks,
Hypoviax
Yes, there are the solution there.
http://oldlook.experts-exchange.com/questions/20783366/How-do-I-pause-a-process-other-than-my-own-and-then-later-allow-it-to-continue.html
http://oldlook.experts-exchange.com/questions/20783366/How-do-I-pause-a-process-other-than-my-own-and-then-later-allow-it-to-continue.html
GloomyFriar,
that is the same Q I posted
that is the same Q I posted
rbohac,
You have the sources? I have. ;-)
You have the sources? I have. ;-)
It's not that difficult. Using toolhelp + OpenThread + SuspendThread. It gets more difficult if you want to support NT4, win95 and win98, though.
ASKER
Hi GloomyFriar,
I totally forgot about that post, i myself made a couple posts. However having re-read the posts i see that you e-mailed the final accepted answer to the guy. Will the code you wrote further up the page work satisfactoraly or do i need your other code you e-mailed. If so then can you post it or if it is to big e-mail it to
hypoviax@zin.dhs.org
Regards,
Hypoviax
I totally forgot about that post, i myself made a couple posts. However having re-read the posts i see that you e-mailed the final accepted answer to the guy. Will the code you wrote further up the page work satisfactoraly or do i need your other code you e-mailed. If so then can you post it or if it is to big e-mail it to
hypoviax@zin.dhs.org
Regards,
Hypoviax
Hypoviax,
I've sent the sources to you.
I've sent the sources to you.
ASKER
Hi GloomyFriar - can you re-send the sources, the server may have been down around when you sent it. I'll accept your answer when i get it. Thanks all
Regards,
Hypoviax
Regards,
Hypoviax
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks Gloomy, I can not raise it much but i did any way. I'll accept the last comment so you can get the points from your comments...
Regards, and Thanks heaps,
Hypoviax
Regards, and Thanks heaps,
Hypoviax
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dllproc/base/suspendthread.asp
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dllproc/base/resumethread.asp
here is anothe discussion on it
https://www.experts-exchange.com/questions/20783366/How-do-I-pause-a-process-other-than-my-own-and-then-later-allow-it-to-continue.html