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_QUERRYENDSESSION 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.exe" in
C:\windows\system32\
directory, you can invoke this exe with some windows api function such as
shellexecute().
3) Activating Task bar:
You may use FindWindow("Shell_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.com>
| From: "Sergey Muschin" <Se************@tonservices.com>
| 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.public.dotnet.languages.csharp
| NNTP-Posting-Host: 204.110.225.254
| Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTN GP11.phx.gbl
| Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.languages.csharp:170020
| X-Tomcat-NG: microsoft.public.dotnet.languages.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
|
|
|