The MASM Forum

General => The Campus => Topic started by: Magnum on November 21, 2012, 02:54:01 PM

Title: Where is KillProcess
Post by: Magnum on November 21, 2012, 02:54:01 PM
I did a search for killprocess in the includes but could not find it.

Where is it ?

Andy
Title: Re: Where is KillProcess
Post by: dedndave on November 21, 2012, 03:05:13 PM
i think that's a DOS command
what you may want is TerminateProcess which is, by nature, a kernel32 function
Title: Re: Where is KillProcess
Post by: hutch-- on November 21, 2012, 03:18:27 PM
Try this.

BOOL TerminateProcess(
    HANDLE hProcess,   // handle to the process
    UINT uExitCode    // exit code for the process 
   );
Title: Re: Where is KillProcess
Post by: Magnum on November 22, 2012, 03:48:13 AM
Thanks Hutch, I forgot that KillProcess was a procedure.

Andy