I believe CMD.EXE runs as a win32 process - not in the NTVDM

if you have the hwnd for it try posting a WM_CLOSE message

ns



-----Original Message-----
From: Phil Scadden <[EMAIL PROTECTED]>
To: Multiple recipients of list delphi <[EMAIL PROTECTED]>
Date: Tuesday, 12 September 2000 10:50
Subject: [DUG]: Terminating an NTVDM process in code..


I am really hitting my head on a brick wall here. I am running a bat file
under
cmd.exe through CreateProcess. I want to kill the beggar but

Terminateprocess
generateconsoleevent
sendmessage(WM_DESTROY)
or createremotethread on Exitprocess
all fail to kill the dos box on NT. I am happy to kill entire NTVDM but
cannot
figure out to do it. Ideas anyone? It looks some kind of enumprocesses and
finding the NTVDM somehow....

----------------------------------------------------------
Phil Scadden, Institute of Geological and Nuclear Sciences
41 Bell Rd South, PO Box 30368, Lower Hutt, New Zealand
Ph +64 4 5704821, fax +64 4 5704603
---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED]
with body of "unsubscribe delphi"


---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED] 
with body of "unsubscribe delphi"

Reply via email to