Click to See Complete Forum and Search --> : How do I kill a 16-Bit Programm under NT4


August 20th, 1999, 03:52 AM
Hello,

i want to kill a 16-Bit Programm (or Prozess) under NT4, and I don't know!

I want to know the ProcessID and over this I want to kill the Programm!

Did anyone know a solution or an example?

Please help me!

Thx!

Lothar Haensler
August 20th, 1999, 03:58 AM
MSDN article Q175030 has all the details for enumerating processes (16 and 32-Bit!) under NT.
Then, if you have the process ID or handle it should be easy to kill that one by calling TerminateProcess.

August 20th, 1999, 07:59 AM
Thank you for your answer,
but how realized this in VB?

The example is in C-Code!

I dont find anything about this in the Win32Api.txt !!!

Please help me!

Lothar Haensler
August 20th, 1999, 08:36 AM
correction: you cannot use the TerminateProcess API. you need to call VDMTerminateTaskWOW from vdmdbg.dll.