borderAndreaVB free resources for Visual Basic developersborder

AndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2008 Andrea Tincani
:: 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!

:: Navigation

Home

Miscellaneous API Tips

Previous Tip

Next Tip

:: Search this site
Google
:: Related Topics
icon 09-12-2007 Re: Creating a application that no one can remove and terminate by aredz
icon 16-11-2005 Re: Detecting Unload by steve_w
icon 06-09-2005 Re: hide shutdown,...? by admin
icon 13-02-2004 Re: desktop boundaries by fabulous
icon 13-01-2004 ShowInTaskBar behavior at Runtime by fabulous
Partners: Il portale per lui e lei | Download Actual Software | Free Software Download
borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2008 Andrea Tincaniborder