Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Running a program without it being displayed in the Task List

0 views
Skip to first unread message

msnews.microsoft.com

unread,
Feb 23, 1999, 3:00:00 AM2/23/99
to
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.

Any comments would be appreciated.

Thanks in advance

Richard

Jacques Exelrud

unread,
Feb 23, 1999, 3:00:00 AM2/23/99
to
Why not run it as a service ?
Jacques

msnews.microsoft.com wrote in message ...

Dan Evens

unread,
Feb 23, 1999, 3:00:00 AM2/23/99
to
msnews.microsoft.com <rgou...@humber.ac.uk> wrote in article
<OUwlPNxX#GA....@uppssnewspub04.moswest.msn.net>...

> 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.

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


Qane

unread,
Feb 23, 1999, 3:00:00 AM2/23/99
to
>Of course, this presumes it is NT you are running.

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


galen nickerson

unread,
Feb 23, 1999, 3:00:00 AM2/23/99
to
Take care, this code works only for win 95/98.

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...

William ADAM

unread,
Feb 24, 1999, 3:00:00 AM2/24/99
to
To avoid people ending the task (or press the upper right cross) you can
look around SetConsoleCtrlHandler (for console program), i assume that it's
possible to do it on GUI programm.
William ADAM
N-SOFT Company
wa...@n-soft.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.
>

Jedi

unread,
Feb 25, 1999, 3:00:00 AM2/25/99
to
Both API's can be found in API Viewer

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...

0 new messages