How to forcibly end a process?

praduk
06-03-2004, 02:49 PM
I'm trying to close a process in visual basic that gives me an access denied error otherwise in task manager. I believe c has a TerminateProcess command but I have no clue about vb, even a workaround method would be great. Any help is greatly appreciated!

sscheinfe
06-03-2004, 02:51 PM
"Exit Sub"


I'm trying to close a process in visual basic that gives me an access denied error otherwise in task manager. I believe c has a TerminateProcess command but I have no clue about vb, even a workaround method would be great. Any help is greatly appreciated!

sscheinfe
06-03-2004, 02:54 PM
If by process you mean a method...if you mean an actual PCU thread or process, then I think it would be the "ExitProcess" API function. (If you don't yet know what APIs are, go to www.allapi.net)

John
06-03-2004, 03:05 PM
You can use TerminateProcess in vb.

praduk
06-03-2004, 09:05 PM
I don't think I made myself very clear, I'm talking about killing another process, not ending the vb one. Or maybe I'm just confused...

serp343
06-04-2004, 01:38 AM
You're gonna need an Api call to end another running process check out All Api (http://www.allapi.net) like sscheife said.

Later James

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum