Link to home
Start Free TrialLog in
Avatar of sageryd
sagerydFlag for Sweden

asked on

CanClose

How can I close a Delphi-made program which has the CanClose property set to False? (might add: another program, not my own)

CloseWindow(hWnd); doesn't work!

Neither does DestroyWindow(hWnd);!

Plz help!

johan
Avatar of Epsylon
Epsylon

Use:

Application.Terminate;


Regards,

Epsylon.
Avatar of sageryd

ASKER

Well, as I said, it is not my own app that I want to terminate, it's another app, another process!
Avatar of sageryd

ASKER

Well, as I said, it is not my own app that I want to terminate, it's another app, another process!
ASKER CERTIFIED SOLUTION
Avatar of inthe
inthe

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of sageryd

ASKER

Thanx!
I think TerminateProcess will do but I don't know how to find the right ProcessID.
:o)
:o)
Avatar of sageryd

ASKER

;o)