Kill task?

Just starting out? Need help? Post your questions and find answers here.
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by skypa.

Hi,

ist there a PureBasic internal or API posibility to kill tasks? (Not the "Close" Command which is sent to the application, the taks should be "killed")

thx in advance

skypa
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by Iontichy.

I think

TerminateProcess_(
hProcess, // handle to the process
uExitCode // exit code for the process
)

can do that. All you have to know is the process handle.


---------------
star traveler
Post Reply