Go Back   Computer Forums > General Computing > Software and Operating Systems
Click Here to Login
Join Computer forums Today

Thread Tools Search this Thread Display Modes
Old 08-13-2010, 02:13 PM   #1
Solid State Member
Join Date: Apr 2008
Posts: 8
Default How to keep a thread from terminating

I have a program and want to make the thread/program to where it cant be terminated on its own. Like if you try to terminate it, moreless says access is denied kinda like certain threads that are needed to run windows.

But I would also like to have a way where I can terminate if i want to.

I run windows xp sp3.

Is this possible?

mkm2175 is offline   Reply With Quote
Old 08-14-2010, 06:24 PM   #2
Site Team
berry120's Avatar
Join Date: Jul 2009
Location: England, UK
Posts: 3,425
Default Re: How to keep a thread from terminating

As far as I know it's not - I'm pretty sure the "system" threads like this are ones specifically marked as such in the kernel. Without patching the kernel there's no way that I know of to create such a process.

It'd help if you gave a few more specifics - what don't you want users closing, and why? The "normal" thing to do here would be to convert such a program into a service then stop non-privileged users from being able to stop services at all.
Save the whales, feed the hungry, free the mallocs.
berry120 is offline   Reply With Quote

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

All times are GMT -5. The time now is 08:00 PM.

Powered by vBulletin® Version 3.8.8 Beta 4
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Search Engine Friendly URLs by vBSEO 3.6.0