|
-
Feb 1st, 2005, 09:26 PM
#1
Thread Starter
Addicted Member
Desktop Double Click While Hidden
Hello All,
I'm writing a program aimed at school PC desktops, so this is not a virus related question. It locks down the PC and only gives the kids access to what their teachers want them to be able to open. However, after I have hidden the shell, double clicking on the desktop will cause the start menu to open, why is this? It does not open while the shell isnt hidden.
I'v considered killing explorer instead of just hiding it, then re-run it on demand but I would rather just hide it.
Any Ideas? Thanks in advance.
Artificial Intelligence At War! - The best game of its genre
Program your own robot and watch it fight in 3d!
Droidarena 3
If I have been useful, please Rate My Post
Support FireFox - 
Microsoft Visual Studio .NET Professional 2003
Microsoft Visual Studio 6, Enterprise Edition
Microsoft Windows XP Professional, Service Pack 2
-
Feb 1st, 2005, 09:28 PM
#2
Addicted Member
Re: Desktop Double Click While Hidden
Could you post some code so that I have some idea of what is going on?
Sherminator ~ I'll be back.
-
Feb 1st, 2005, 09:34 PM
#3
Thread Starter
Addicted Member
Re: Desktop Double Click While Hidden
VB Code:
Public Sub boolSetRestr(uFlag As Long)
Const KEY_TSKMGR As String = "Software\Microsoft\Windows\CurrentVersion\Policies\System"
Const KEY_DISRCL As String = "Software\Microsoft\Windows\CurrentVersion\Policies\Explorer"
Dim longReg As Long
Dim longKey As Long
Dim longTskHw As Long
Dim longShlHw As Long
longReg = SetDWORD(HKEY_CURRENT_USER, KEY_TSKMGR, "DisableTaskMgr", uFlag&)
longReg = SetDWORD(HKEY_CURRENT_USER, KEY_DISRCL, "NoViewContextMenu", uFlag&)
longTskHw = FindWindowEx(0, 0&, "Progman", vbNullString)
longShlHw = FindWindowEx(0&, 0, "Shell_TrayWnd", vbNullString)
Select Case uFlag
Case &H0: Call ShowWindow(longTskHw, &H1): Call ShowWindow(longShlHw, &H1)
Case &H1: Call ShowWindow(longTskHw, &H0): Call ShowWindow(longShlHw, &H0)
End Select
End Sub
Artificial Intelligence At War! - The best game of its genre
Program your own robot and watch it fight in 3d!
Droidarena 3
If I have been useful, please Rate My Post
Support FireFox - 
Microsoft Visual Studio .NET Professional 2003
Microsoft Visual Studio 6, Enterprise Edition
Microsoft Windows XP Professional, Service Pack 2
-
Feb 2nd, 2005, 09:20 PM
#4
Thread Starter
Addicted Member
Re: Desktop Double Click While Hidden
Artificial Intelligence At War! - The best game of its genre
Program your own robot and watch it fight in 3d!
Droidarena 3
If I have been useful, please Rate My Post
Support FireFox - 
Microsoft Visual Studio .NET Professional 2003
Microsoft Visual Studio 6, Enterprise Edition
Microsoft Windows XP Professional, Service Pack 2
-
Feb 2nd, 2005, 10:24 PM
#5
Re: Desktop Double Click While Hidden
that isn't a lot of code to go on. you are saying that when the system is locked down, and you double click on the desktop, the start menu opens?
I saw code that hides the start menu in the Chit Chat forum. It's size was set to 0,0. Maybe you want something like that?
I woul just open a full-screen form that has a menu or a few icons on it, so that the actual desktop is not in sight.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|