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