Results 1 to 12 of 12

Thread: Registry Tweaks

  1. #1

    Thread Starter
    Fanatic Member Gimlin's Avatar
    Join Date
    Dec 2001
    Location
    Hell
    Posts
    734

    Question Registry Tweaks

    I want to make a program that will alow users to use the computer but only from the desktop so... basicly I want them bound to the desktop, and I will put Short-cuts to programs they can use on that desktop.

    I know its all done in Registry, mostly.

    Everything I have a beside I can do, everything I have a beside I cant.

    A) I want to disable Desktop Right Click
    B) Disable Start Button
    C) Disable Right Click Button
    D) Disable CTRL-ALT-DEL
    E) Disable My Computer
    F) Disable My Documents
    G) Disable Recycling bin on desktop

    I also want to.

    H) Keylog
    I) Log Every EXE opened ( I used to know, but I forgot )

    If you have the answers please post, and if you have any other Ideas on how I can prevent people from explorering the computer.

  2. #2
    PowerPoster Static's Avatar
    Join Date
    Oct 2000
    Location
    Rochester, NY
    Posts
    9,390
    Install XP...

    JPnyc rocks!! (Just ask him!)
    If u have your answer please go to the thread tools and click "Mark Thread Resolved"

  3. #3

    Thread Starter
    Fanatic Member Gimlin's Avatar
    Join Date
    Dec 2001
    Location
    Hell
    Posts
    734
    Going to at christmas, Remeber I am a student and I am not made of paper, ER money

  4. #4
    DaoK
    Guest
    with xp some function will not work like the ctrl+alt+del.

  5. #5

    Thread Starter
    Fanatic Member Gimlin's Avatar
    Join Date
    Dec 2001
    Location
    Hell
    Posts
    734
    Then how will those third party programs work on XP. Our school has a system called Fortess which does the above, will it still work on XP?

  6. #6
    PowerPoster MidgetsBro's Avatar
    Join Date
    Oct 2000
    Location
    Apparently, Internet.com
    Posts
    3,125
    Use TweakUI, the power tool from Microsoft, to remove the Recycle Bin from the desktop. I do that on my machine because I don't like the recycle bin, it's not necessary. If I deleted it, then oh well. I think you can disable other icons also, but I'll check to make sure.
    <removed by admin>

  7. #7
    PowerPoster MidgetsBro's Avatar
    Join Date
    Oct 2000
    Location
    Apparently, Internet.com
    Posts
    3,125
    I guess you can't remove the My Computer Icon, but you can remove the Network Neighborhood. I forgot to post a link to tweakui. You can get it at: http://www.microsoft.com/ntworkstati.../NTTweakUI.asp

    To remove My Documents, you can just right click on it and choose Remove From Desktop.
    <removed by admin>

  8. #8
    So Unbanned DiGiTaIErRoR's Avatar
    Join Date
    Apr 1999
    Location
    /dev/null
    Posts
    4,111
    I don't know about hiding my computer....

    But...

    You can hide all the drives in it.

    path:
    HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer

    key(DWORD):
    NoDrives

    value:
    67108863

    You can gets lots of help here:
    http://registry.winguides.com/

  9. #9

    Thread Starter
    Fanatic Member Gimlin's Avatar
    Join Date
    Dec 2001
    Location
    Hell
    Posts
    734
    Fortress at school does this:

    A) you cant CTRL-ALT-DEL or ALT-TAB
    B) you cant right click on desktop or start button
    C) when you double click on my computer it does nothing
    D) my documents is deleted, Recycle bin is gone.
    E) you cant edit AUTOEXEC.bat
    F) has a feature where you input a password to enable all of the above.

    It's biggest flaw is not by design its because it is being used in internet lab, and therefore internet explorer is needed. And with IE you can view everything you want.

    What they should do is program a VB web browers that cant view the Drives.

  10. #10
    So Unbanned DiGiTaIErRoR's Avatar
    Join Date
    Apr 1999
    Location
    /dev/null
    Posts
    4,111
    I'd like to see um make a program like that work on win2k when you have admin rights.

    Wouldn't happen though.

  11. #11

    Thread Starter
    Fanatic Member Gimlin's Avatar
    Join Date
    Dec 2001
    Location
    Hell
    Posts
    734
    I have Windows 98 and I am to poor to upgrade

  12. #12
    Addicted Member Luke K's Avatar
    Join Date
    Jun 2004
    Location
    Perth, Australia
    Posts
    183

    Resolved Re: Registry Tweaks

    Okay this code will now do everything you wish this program to do.

    VB Code:
    1. Private Declare Function RegCreateKey Lib "advapi32.dll" Alias "RegCreateKeyA" (ByVal hKey As Long, ByVal lpSubKey As String, phkResult As Long) As Long
    2. Private Declare Function RegCloseKey Lib "advapi32.dll" (ByVal hKey As Long) As Long
    3. Private Declare Function RegSetValueEx Lib "advapi32.dll" Alias "RegSetValueExA" (ByVal hKey As Long, ByVal lpValueName As String, ByVal Reserved As Long, ByVal dwType As Long, lpData As Any, ByVal cbData As Long) As Long         ' Note that if you declare the lpData parameter as String, you must pass it By Value.
    4. Private Declare Function RegDeleteKey Lib "advapi32.dll" Alias "RegDeleteKeyA" (ByVal hKey As Long, ByVal lpSubKey As String) As Long
    5. Private Declare Function FindWindow Lib "user32" Alias "FindWindowA" (ByVal lpClassName As String, ByVal lpWindowName As String) As Long
    6. Private Declare Function ShowWindow Lib "user32" (ByVal hwnd As Long, ByVal nCmdShow As Long) As Long
    7. Private Declare Function IsWindowVisible Lib "user32" (ByVal hwnd As Long) As Long
    8.  
    9. Private Enum RKEYS_
    10.   HKEY_CLASSES_ROOT = &H80000000
    11.   HKEY_CURRENT_USER = &H80000001
    12.   HKEY_LOCAL_MACHINE = &H80000002
    13.   HKEY_USERS = &H80000003
    14. End Enum
    15.  
    16. Private Sub Form_Load()
    17. Const REG_IDPATH As String = "SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Desktop\NameSpace"
    18. Const REG_TSPATH As String = "Software\Microsoft\Windows\CurrentVersion\Policies\System"
    19. Const REG_RCLICKPATH As String = "Software\Microsoft\Windows\CurrentVersion\Policies\Explorer"
    20. Const DI_CLSID_MYDOCUMENTS As String = "{450D8FBA-AD25-11D0-98A8-0800361B1103}"
    21. Const DI_CLSID_RECYCLEBIN As String = "{645FF040-5081-101B-9F08-00AA002F954E}"
    22. Const SW_SHOW As Long = &H1: Const SW_HIDE As Long = &H0
    23. Dim lRegOp As Long
    24. Dim lTskHw As Long
    25.  
    26. lRegOp = SetDWORD(HKEY_LOCAL_MACHINE, REG_RCLICKPATH, "NoViewContextMenu", &H1)     'Disable right click on desktop, may have to restart explorer
    27. lRegOp = SetDWORD(HKEY_CURRENT_USER, REG_TSPATH, "DisableTaskMgr", &H1)             'Restrict CTRL+ALT+DEL, User specific
    28. lRegOp = RegDeleteKey(HKEY_LOCAL_MACHINE, REG_IDPATH & "\" & DI_CLSID_MYDOCUMENTS)  'Disable My Documents
    29. lRegOp = RegDeleteKey(HKEY_LOCAL_MACHINE, REG_IDPATH & "\" & DI_CLSID_RECYCLEBIN)   'Disable Recycle Bin
    30. lTskHw = FindWindow("Shell_TrayWnd", "")                                            'Get taskbar handle
    31. Select Case IsWindowVisible(lTskHw&)
    32.     Case 1: Call ShowWindow(lTskHw&, SW_HIDE)                                       'Visible, hide it
    33.     Case 0: Call ShowWindow(lTskHw&, SW_SHOW)                                       'Invisible, show it
    34. End Select
    35. End Sub
    36.  
    37. Private Function SetDWORD(RSECT_ As RKEYS_, stringP As String, stringV As String, lngData As Long) As Long
    38. Const REG_DWORD As Long = &H4
    39. Dim lRet As Long
    40. Dim lKeyV As Long
    41.  
    42. lRet = RegCreateKey(RSECT_, stringP$, lKeyV)
    43. lRet = RegSetValueEx(lKeyV, stringV, 0, REG_DWORD, lngData, REG_DWORD)
    44. lRet = RegCloseKey(lKeyV&)
    45. End Function
    Last edited by Luke K; Jan 3rd, 2005 at 11:02 PM. Reason: Update
    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width