What I want to do is to prevent the user from terminating this program by
pressing CTRL-ALT_DELETE and choosing End Task.
Any comments would be appreciated.
Thanks in advance
Richard
You likely want a service running as an administrator on your
machine. Of course, this presumes it is NT you are running.
--
Dan Evens
(Standard disclaimers etc. No spam please.)
dan....@hydro.on.ca
exactly! i have had the same problem of finding code to hide my win95
apps from the tasklist. but i have been unsuccessful. this is not a
very publicized action. Most people mistakenly assume it would only be
used for bad when i have come upon the need for it in many real,
non-mailicious applications of my own.
If someone knows a way, please inform me. I'd appreciate it.
Chris
dc...@one-eleven.net
icq-12532242
Public Declare Function RegisterServiceProcess Lib "kernel32" (ByVal _
ProcessID As Long, ByVal ServiceFlags As Long) As Long
Public Declare Function GetCurrentProcessId Lib "kernel32" () As Long
RegisterServiceProcess GetCurrentProcessId, 1 ' To hide
RegisterServiceProcess GetCurrentProcessId, 0 ' To Show
'---------
galen
Qane <dc...@one-eleven.net> wrote in message
news:36d2eaa2....@news.moultrie.com...
msnews.microsoft.com wrote in message ...
>I have written a program that sits in the background and monitors certain
>events that occur in the system.
>
>What I want to do is to prevent the user from terminating this program by
>pressing CTRL-ALT_DELETE and choosing End Task.
>
RegisterServiceProcess GetCurrentProcessId, 1 (Hide app) or 0 (zero,
unregister service)
HTH,
Bodi
William ADAM <wa...@n-soft.com> wrote in message
news:OuoGW18X#GA....@uppssnewspub05.moswest.msn.net...