I have a console app (DOS window) that I am trying to close with the following command:
SendMessage hwnd, WM_CLOSE, 0, ByVal 0
It works fine under 2K/XP, but under 95/98 it tells me i'm trying to close a running app and then I have to click YES or NO.
Can someone give me a better way of shutting this down without having to answer the YES/NO question for the console app? I've tried WM_DESTROY (value of &H2) but it doesn't do anything at all.
HELP!!
Panthaur
SendMessage hwnd, WM_CLOSE, 0, ByVal 0
It works fine under 2K/XP, but under 95/98 it tells me i'm trying to close a running app and then I have to click YES or NO.
Can someone give me a better way of shutting this down without having to answer the YES/NO question for the console app? I've tried WM_DESTROY (value of &H2) but it doesn't do anything at all.
HELP!!
Panthaur