473,795 Members | 2,410 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1746
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
1911
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 : Shutdown/reboot/logoff. I have tried this : AddHandler Microsoft.Win32.SystemEvents.SessionEnding, AddressOf
3
1189
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
1559
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 organization on an application that sometimes gets killed by an installation that restarts the computer. I want to prevent this from happening and display my own message box that asks for reboot - or as i said, simply give my application time to close...
4
18137
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 as I find appropriate. I am using the socket asynchronously by calling the BeingSend and BeginReceive calls. I would like to be able to call shutdown and close asynchronously if possible.
2
11417
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, OpenProcessToken, LookupPrivilegeValue, AdjustTokenPrivilegese, ExitWindowsEx. I am trying to avoid using any API calls if possible and to use managed code instead. I couldn't find any easy way of doing this but searching the Internet with...
0
1218
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 start-shutdown again to shut down. Couple things of note: I am overriding the WndProc method and on shutdown, it is definitley
7
4271
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 what about *preventing* that shutdown? (and yes - I know the user can always unplug the machine) Thanks.
5
17414
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
8424
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. I want to prevent the computer from logging off or shutting down until the app is closed. The best example I have is when you have an unsaved notepad.exe document open and logoff or shutdown, an End Program dialog pops up
3
3284
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 into my .dll (Sub.Dll)
0
9672
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9519
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10437
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10001
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9042
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5437
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4113
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3723
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2920
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.