Results 1 to 2 of 2

Thread: windows api

  1. #1
    nirmal2k
    Guest

    Angry windows api

    how do i disable the windows start menu key from my applicatin and again restore it without restarting

  2. #2
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333
    VB Code:
    1. 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
    2. Private Declare Function EnableWindow Lib "user32" (ByVal hwnd As Long, ByVal fEnable As Long) As Long
    3.  
    4. Private Sub Command1_Click()
    5. Static bEnabled As Boolean
    6.     Dim lhWnd As Long
    7.  
    8.     lhWnd = FindWindowEx(0&, 0&, "Shell_TrayWnd", vbNullString)
    9.     lhWnd = FindWindowEx(lhWnd, 0&, "Button", vbNullString)
    10.     Call EnableWindow(lhWnd, bEnabled)
    11.     bEnabled = Not bEnabled
    12.  
    13. End Sub

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