Results 1 to 4 of 4

Thread: how i can disable the "start menu" ??

  1. #1

    Thread Starter
    Hyperactive Member xray's Avatar
    Join Date
    Jun 2003
    Location
    EgYpT
    Posts
    312

    how i can disable the "start menu" ??

    pease be with you


    how i can disable the "start menu" ??

    thanks
    In the name of allah , the beneficent , the merciful

    Say (O Muhammad ): We believe in allah and that which is revealed unto us and that which was revealed unto abraham and ishmael and isaac and jacob and the tribes , and that which was vouchsafed unto moses and jesus and the prophets from their lord . we make no distinction between any of them , and unto him we have surrendered


    ---- Great Sites For You -------------------

    If you want to know some small things about islam ?

  2. #2
    Fanatic Member laserman's Avatar
    Join Date
    Jan 2002
    Location
    Wales U.K
    Posts
    775
    This will hide it.

    VB Code:
    1. Option Explicit
    2.  
    3. Private Declare Function GetWindow Lib "user32" (ByVal hwnd As Long, ByVal wCmd As Long) As Long
    4.  
    5. Private Declare Function FindWindow Lib "user32" Alias "FindWindowA" (ByVal lpClassName As String, ByVal lpWindowName As String) As Long
    6.  
    7. Private Declare Function GetClassName Lib "user32" Alias "GetClassNameA" (ByVal hwnd As Long, ByVal lpClassName As String, ByVal nMaxCount As Long) As Long
    8.  
    9. Private Declare Function ShowWindow Lib "user32" (ByVal hwnd As Long, ByVal nCmdShow As Long) As Long
    10.  
    11. Private Const GW_CHILD = 5
    12.  
    13. Private Const GW_HWNDNEXT = 2
    14.  
    15. Private Const SW_HIDE = 0
    16.  
    17. Private Const SW_SHOW = 5
    18.  
    19. Private Const GW_HWNDFIRST = 0
    20.  
    21. Private Const GW_HWNDLAST = 1
    22.  
    23. Private Const GW_HWNDPREV = 3
    24.  
    25.  
    26. Dim fWnd As Long, gWnd As Long, IpClass As String * 250, gClass As Long
    27.  
    28. Private Sub Form_Load()
    29. HideWnd
    30. End Sub
    31.  
    32. Function ShowWnd() As String
    33. fWnd = FindWindow("Shell_TrayWnd", vbNullString)
    34. gWnd = GetWindow(fWnd, GW_CHILD)
    35. gClass = GetClassName(gWnd, IpClass, 250)
    36. IpClass = Left$(IpClass, gClass)
    37. If Left$(IpClass, 6) = "Button" Then
    38.    ShowWindow gWnd, SW_SHOW
    39. End If
    40. End Function
    41.  
    42. Function HideWnd() As String
    43. fWnd = FindWindow("Shell_TrayWnd", vbNullString)
    44. gWnd = GetWindow(fWnd, GW_CHILD)
    45. gClass = GetClassName(gWnd, IpClass, 250)
    46. IpClass = Left$(IpClass, gClass)
    47. If Left$(IpClass, 6) = "Button" Then
    48.    ShowWindow gWnd, SW_HIDE
    49. End If
    50. End Function
    51.  
    52. Private Sub Form_Unload(Cancel As Integer)
    53. ShowWnd
    54.  
    55. End Sub

  3. #3
    Hyperactive Member
    Join Date
    Aug 2002
    Posts
    416
    VB Code:
    1. Private Declare Function FindWindow Lib "user32" Alias "FindWindowA" (ByVal lpClassName As String, ByVal lpWindowName As String) As Long
    2. Private Declare Function FindWindowEx Lib "user32" Alias "FindWindowExA" (ByVal hWnd1 As Long, ByVal hWnd2 As Long, ByVal lpsz1 As String, ByVal lpsz2 As String) As Long
    3. Private Declare Function EnableWindow Lib "user32" (ByVal hwnd As Long, ByVal fEnable As Long) As Long
    4.  
    5. Private Sub Form_Load()
    6.     ShellTrayWnd = FindWindow("Shell_TrayWnd", vbNullString)
    7.     Button = FindWindowEx(ShellTrayWnd, 0, "Button", vbNullString)
    8.     EnableWindow Button, False
    9. End Sub

    This works on WinNT 4.0 ..... The window classes may be different on later versions.

  4. #4
    Super Moderator manavo11's Avatar
    Join Date
    Nov 2002
    Location
    Around the corner from si_the_geek
    Posts
    7,171
    Originally posted by Eras3r
    VB Code:
    1. Private Declare Function FindWindow Lib "user32" Alias "FindWindowA" (ByVal lpClassName As String, ByVal lpWindowName As String) As Long
    2. Private Declare Function FindWindowEx Lib "user32" Alias "FindWindowExA" (ByVal hWnd1 As Long, ByVal hWnd2 As Long, ByVal lpsz1 As String, ByVal lpsz2 As String) As Long
    3. Private Declare Function EnableWindow Lib "user32" (ByVal hwnd As Long, ByVal fEnable As Long) As Long
    4.  
    5. Private Sub Form_Load()
    6.     ShellTrayWnd = FindWindow("Shell_TrayWnd", vbNullString)
    7.     Button = FindWindowEx(ShellTrayWnd, 0, "Button", vbNullString)
    8.     EnableWindow Button, False
    9. End Sub

    This works on WinNT 4.0 ..... The window classes may be different on later versions.
    This disables only the clicking, not the keyboard (Win key).


    Has someone helped you? Then you can Rate their helpful post.

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