473,810 Members | 3,102 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Full control over user, how?

Hi there,

How to prevent a user from rebooting computer, invoking Task Manager,
activating Task Bar , etc.
API? Any available tools, classes? Any ideas ?

Regards,
Sergey Muschin
Nov 13 '05 #1
1 1977

Hi Sergey,

I think there are many ways for you to control windows in programming. And
the windows APIs are very powerful.
For your question:
1) Preventing a user from rebooting computer:
You can process WM_QUERRYENDSES SION message
in your window's wndproc. Return false if you do not want to reboot.

2) Invoke Task Manager:
The task manager is a application named "taskmgr.ex e" in
C:\windows\syst em32\
directory, you can invoke this exe with some windows api function such as
shellexecute().

3) Activating Task bar:
You may use FindWindow("She ll_TrayWnd", null) to find the task bar's
handle, then you can
use the ShowWindow() function to show or hide the task bar.

And just as Star Fleet Admiral Q said , the Group Policy Editor provided by
Microsoft Windows is powerful too. You can type "gpedit.msc " in "Run"
dialog to invoke it.

Hope it helps.

Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

--------------------
| Reply-To: "Sergey Muschin" <Se************ @tonservices.co m>
| From: "Sergey Muschin" <Se************ @tonservices.co m>
| Subject: Full control over user, how?
| Date: Thu, 17 Jul 2003 16:20:44 -0600
| Lines: 10
| Organization: TONS
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
| Message-ID: <uY************ **@TK2MSFTNGP11 .phx.gbl>
| Newsgroups: microsoft.publi c.dotnet.langua ges.csharp
| NNTP-Posting-Host: 204.110.225.254
| Path: cpmsftngxa06.ph x.gbl!TK2MSFTNG P08.phx.gbl!TK2 MSFTNGP11.phx.g bl
| Xref: cpmsftngxa06.ph x.gbl microsoft.publi c.dotnet.langua ges.csharp:1700 20
| X-Tomcat-NG: microsoft.publi c.dotnet.langua ges.csharp
|
| Hi there,
|
| How to prevent a user from rebooting computer, invoking Task Manager,
| activating Task Bar , etc.
| API? Any available tools, classes? Any ideas ?
|
| Regards,
| Sergey Muschin
|
|
|

Nov 13 '05 #2

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

Similar topics

0
1258
by: John Gossett | last post by:
I have written an application in vb.net to reset user passwords in active directory. If I run the application as a user with full contol of the AD object I can reset the password. If I run the application as a user with just reset password permission on the account I cannot reset the password and get an error about access denied. At the same time I can run Active Directory Users and Computers and reset the account password. Any...
6
7581
by: Nicky | last post by:
hi,all We are going to develop a program and when it is running, we need it full screen and also, user can not switch to other place before exit our program. I am thinking, we can make a window full screen, but how to avoid user switching to other program or windows? And also, there are many hot keys, how to capture or disable these things? Thanks
7
1911
by: Jason Reichenbach | last post by:
I've GOT to be missing something painfully obvious, here... I need to programmatically get the full human name of the current user on a local system, the same system upon which the app is running. Using C#.NET MSDEV2003. OS will be Win2K or WinXP. I've found numerous ways to get the user name, but have yet to find the way to get the human name.
3
7188
by: Vibhu | last post by:
Hello All, I have a input box on the HTML page with the type set to file. What I want is that when the value changes in the file textbox, it should give me the full file path. I have even tried passing the value to a hidden control but all it does is passes only the File Name and not the file path. How do I go about it. I tried checking GMAIL service (Compose Mail) but all I could get is that they are passing the window and the file...
4
5487
by: Neil | last post by:
Just found out that the Microsoft Rich Textbox does not support full text justification, since it's based on Version 1.0 of the RichEdit Window Class, and full text justification is only available in versions 3.0 or later of the class. However, also just found out that the new Rich Text property in Access 2007 ALSO does not support full text justification! This seems incredible, that MS would create a brand new application, and not...
5
4816
by: =?Utf-8?B?S1A=?= | last post by:
I have an asp.net application that I've installed on several of my customers laptops (they run a localized IIS). I've been doing this for years without and issue. Today I attempted to install this application on a laptop that belonged to a contractor (i.e. not supplied by us). I brought it onto the domain, installed what I needed to, and everything seemed fine. However, when I run the app (i.e. access the default.aspx page via IE), I...
6
6522
by: Alfonso2968 | last post by:
Hello, If someone can help plz. I have searched everything and all I can find is how to drag and drop within a form from panel to panel. What I need to do is Drag an image from the desktop or from an open folder to a panel on my form. This will be done for a few images and then on Buttonclik I need to save each image in its own folder.
1
1489
by: Piotr Nowak | last post by:
Hi, Currently im skimming throgh Web Client Software Factory (http://www.codeplex.com/websf). I know, it could be great for complex apps, but i have one problem. I use Telerik Controls (www.telerik.com) where i can ajaxify every control by using telerik features and their controls. I found that my client doesnt want any page reload at all, whole site
0
9722
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
9603
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
10644
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...
1
10393
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
7664
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5550
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...
0
5690
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3863
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3015
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.