Solved

How to prevent user and other apps killing my app?

Posted on 2002-06-24
6
980 Views
Last Modified: 2013-12-03
My question separates two parts:

1. I want to prevent user killing my app.
I use RegisterServiceProcess() on Win9x, it works ok.
I use SetEntriesInAcl() and SetSecurityInfo() to remove the PROCESS_TERMINATE permission from my app, it works on WinNT/2000, but doesn't work on WinXP :-(

2. I want to prevent other apps killing my app.
I have no idea about this now, maybe hook api is a choice, but I want a clean method, if you have thought something, please help me.

Best Regards,
Fengtao
0
Comment
Question by:fengtao2000
6 Comments
 
LVL 86

Expert Comment

by:jkr
ID: 7103407
>>I want to prevent other apps killing my app

The only *reliable* way I know is to use your own (dummy) KMode driver and hold a call to that driver pending. But, be careful, if you cannot release that lock, even shutting down might be a problem :o)
0
 

Expert Comment

by:weicco
ID: 7106876
I've seen some rootkit that somehow managed to hide processes it started. I've heard that it is done by somehow changing the process id so that OS thinks that process is system process.
0
 
LVL 9

Accepted Solution

by:
BeyondWu earned 200 total points
ID: 7109527
If you can accept a none clean choice, you can go to http://www.internals.com/.
The StickyApp32 is what you wanted.

God Day!
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

This article shows a few slightly more advanced techniques for Windows 7 gadget programming, including how to save and restore user settings for your gadget and how to populate the "details" panel that is displayed in the Windows 7 gadget gallery.  …
zlib is a free compression library (a DLL) on which the popular gzip utility is built.  In this article, we'll see how to use the zlib functions to compress and decompress data in memory; that is, without needing to use a temporary file.  We'll be c…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

759 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now