| :: How to Unload the Windows Task Bar and the Desktop... |
Author |
Andrea Tincani |
Language |
VB5, VB6 |
Operating
Systems |
Windows 95, 98 and NT |
| API
Declarations |
Private Declare Function PostMessage Lib "user32.dll" Alias
"PostMessageA" (ByVal hWnd As Long, ByVal wMsg As Long, ByVal wParam As Long,
ByVal lParam As Long) As Long
Private Declare Function FindWindow Lib "user32.dll" Alias "FindWindowA" (ByVal
lpClassName As String, ByVal lpWindowName As String) As Long |
| Module |
Public Sub KillApplicationBar()
Dim hWnd As Long
hWnd = FindWindow("Shell_TrayWnd", "")
PostMessage hWnd, 2, 0, 0
End Sub'Note: be careful,
I don't know how to restore the Application Bar and the Desktop without rebooting the
system! |
|
 |
|
 |