473,387 Members | 1,705 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Preventing app shutdown

Hi all

Is there any way to prevent a user from closing down an application (via
task manager)?

Thanks
Kev
May 8 '06 #1
3 1726
On Mon, 8 May 2006 15:55:22 +0100, Mantorok wrote:
Is there any way to prevent a user from closing down an application (via
task manager)?


No.

If the application is a Windows Service, only administrators will be able
to shut it down though (but a Windows Service can not have a UI).

There might be some security settings in Windows that could prevent certain
groups of users from using the task manager. Your network administrator
might be able to configure that.
May 8 '06 #2
> On Mon, 8 May 2006 15:55:22 +0100, Mantorok wrote:
Is there any way to prevent a user from closing down an application
(via task manager)?
No.


Thanks, thought as much.
If the application is a Windows Service, only administrators will be
able to shut it down though (but a Windows Service can not have a UI).

There might be some security settings in Windows that could prevent
certain groups of users from using the task manager. Your network
administrator might be able to configure that.


Unfortunately some of these users are domain administrators....

Thanks
Kev
May 8 '06 #3
"Mantorok" <sp******@spam.com> wrote in message
news:cb**************************@news.rmplc.co.uk ...
On Mon, 8 May 2006 15:55:22 +0100, Mantorok wrote:
Is there any way to prevent a user from closing down an application
(via task manager)?

No.


Thanks, thought as much.
If the application is a Windows Service, only administrators will be
able to shut it down though (but a Windows Service can not have a UI).

There might be some security settings in Windows that could prevent
certain groups of users from using the task manager. Your network
administrator might be able to configure that.


Unfortunately some of these users are domain administrators....

Thanks
Kev

You could have a sentinal program that looked for you application and if it
was killed, restarted it - or do you have to really stop it being closed in
the first place?

Regards

Richard Blewett - DevelpMentor
http://www.dotnetconsult.co.uk/weblog
http://www.dotnetconsult.co.uk
May 8 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Allan Bredahl | last post by:
Hi All I am trying to construct an application that is able to cancel a machine shutdown, reboot or logoff. And after performing some stuff to perform the original shutdown order :...
3
by: Senthil | last post by:
Hi, I would like to know the code for reboot and shutdown windows xp professional using VB.Net. thanx Senthil
1
by: Haim | last post by:
Anybody knows how to prevent a shutdown command? (on Win XP). Or just a way to let my application close itself rather then being killed by the restart command. I have been working in my...
4
by: Chris Tanger | last post by:
Context: C# System.Net.Sockets Socket created with constructor prarmeters Internetwork, Stream and TCP everything else is left at the default parameters and options except linger may be changed...
2
by: Brian Worth | last post by:
I have just upgraded from VB 4.0 to VB .NET 2002. One program under VB 4.0 was able to shut down or restart the (windows XP) machine using a series of API calls. (Getlasterror, GetCurrentProcess,...
0
by: dan kisting | last post by:
Hello, I have written this C# application that is causing Windows to not shut down. That is not the intention of course. Cicking Shutdown on Windows causes the app to quit, but you have to hit...
7
by: Mark | last post by:
It is possible from a .NET application to prevent Windows from shutting down? I understand that a .NET application can "know" that windows is initiating the process of to shutting down - but...
5
by: Phil Tusa | last post by:
Greetings to all .... I have a need to issue a shutdown and/or Restart Windows XP inside my application. Any help or example code would be appreciated! -- Phil
2
by: mikemiller.innova | last post by:
I developed a C# Windows App that requires a user to input their real name and what they did to the server while they were online. I am going to launch the app att shutdown via a logoff script. ...
3
by: Bill Davidson | last post by:
All: I have a problem in which a worker thread in my (.dll) assembly isn't allowing the main (.exe) assembly from terminating. Here's the scenario: 1) App.Exe is launched. 2) App.Exe calls...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.