How to stop another exe from current project.
-
I have a one exe running how can I terminate it through another project.
|| ART OF LIVING ||
-
I have a one exe running how can I terminate it through another project.
|| ART OF LIVING ||
-
I have a one exe running how can I terminate it through another project.
|| ART OF LIVING ||
-
Use EnumProcesses, GetModuleFileNameExA, GetModuleBaseNameA, EnumProcessModules to get proper process handle. Then use ::TerminateProcess.
NishantB++ wrote:
Then use ::TerminateProcess.
And what if that process is doing something important?
TerminateProcess()
should be used as a last resort.
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
-
NishantB++ wrote:
Then use ::TerminateProcess.
And what if that process is doing something important?
TerminateProcess()
should be used as a last resort.
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
-
DavidCrow wrote:
TerminateProcess() should be used as a last resort.
Or when your desired goal is to build a frail brittle software system... could happen.
led mike wrote:
... could happen
I'll go farther and say it happens often :)
Mark Salsbery Microsoft MVP - Visual C++ :java:
-
I have a one exe running how can I terminate it through another project.
|| ART OF LIVING ||
You can send
WM_CLOSE
. -
You can send
WM_CLOSE
. -
I hope it solved your problem.:)