Home
Top.Mail.Ru Yandeks.Metrika
Forum: "WinAPI";
Current archive: 2004.12.12;
Download: [xml.tar.bz2];

Down

Close a window Find similar branches


Jay   (2004-10-27 16:02) [0]

How can I close the window of another program if I know the handle of this window?
Tried WindowDestroy - does not help, WindowClose, as indeed it is written in the help, just minimizes the window.



TUser ©   (2004-10-27 16:04) [1]

send him wm_quit
DestroyWindow / wm_destroy



Jay   (2004-10-27 16:14) [2]

Thanks, wrote this:
PostMessage (handle, WM_QUIT, 0, 0)
everything works fine



BURN ©   (2004-10-29 02:03) [3]

And you can finish off the whole process :)
WinExec ("taskkill / im xxxx.exe / f", SW_HIDE)



GanibalLector ©   (2004-10-29 02:04) [4]

2 BURN
Not recommended for use Winexec



Pages: 1 whole branch

Forum: "WinAPI";
Current archive: 2004.12.12;
Download: [xml.tar.bz2];

Top





Memory: 0.55 MB
Time: 0.05 c
3-1100521248
Sandre
2004-11-15 15:20
2004.12.12
SQLOLE How to get the name of a query column?


1-1101417695
AP
2004-11-26 00:21
2004.12.12
DirectoryExists


14-1100873270
by
2004-11-19 17:07
2004.12.12
Is there a TClientDataSet component in Delphi 7 Professional?


14-1101233276
DillerXX
2004-11-23 21:07
2004.12.12
and again my screw: (


14-1101117833
Petr V. Abramov
2004-11-22 13:03
2004.12.12
Shoot it?





afrikaans albanian Arabic armenian azerbaijani basque belarusian bulgarian catalan Chinese (Simplified) Chinese (Traditional) croatian Czech danish Dutch English estonian filipino finnish French
galician georgian German greek haitian Creole hebrew Hindi hungarian icelandic indonesian Irish italian Japanese Korean latvian lithuanian macedonian malay maltese norwegian
persian polish portuguese Romanian russian serbian slovak Slovenian Spanish swahili Swedish thai turkish Ukrainian urdu vietnamese welsh yiddish bengali bosnian
cebuano Esperanto gujarati hausa hmong igbo javanese kannada Khmer lao latin maori marathi mongolian nepali punjabi somali tamil telugu yoruba
zulu
English French German Italian Portuguese Russian Spanish