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
Private Declare Function EnableWindow Lib "user32" (ByVal hwnd As Long, ByVal fEnable As Long) As Long
Private Function Enable_WindowsXP_StartButton(Status as Boolean)
Dim zhWnd As Long
zhWnd = FindWindowEx(0&, 0&, "Shell_TrayWnd", vbNullString): zhWnd = FindWindowEx(zhWnd, 0&, "Button", vbNullString)
Call EnableWindow(zhWnd, Status)
End Function
'Use this Function Like This
Call Enable_WindowsXP_StartButton(False) 'To Disable Start Menu
Call Enable_WindowsXP_StartButton(True) 'To Disable Start Menu
If this code is used in a project of your give credit to the coder "ME!"
just put start menu function by dweidner@ctelcom.net in your readme
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.